From: Patrick Donnelly Date: Sat, 11 Jul 2026 15:43:57 +0000 (-0400) Subject: .github/workflows/releng-audit: add support for queue label X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b7fa210f043ba9f6624e5ef6e59954bd9dcfcadd;p=ceph.git .github/workflows/releng-audit: add support for queue label This allows trigger a new audit on a mass batch of PRs instead of individually. Signed-off-by: Patrick Donnelly --- diff --git a/.github/workflows/releng-audit.yaml b/.github/workflows/releng-audit.yaml index 4cbcfaa039d..f8fc8c14e20 100644 --- a/.github/workflows/releng-audit.yaml +++ b/.github/workflows/releng-audit.yaml @@ -119,8 +119,9 @@ jobs: const hasFailLabel = payload.pull_request?.labels.some(l => l.name === 'releng-audit-fail'); const hasPassLabel = payload.pull_request?.labels.some(l => l.name === 'releng-audit-pass'); const hasOverrideLabel = payload.pull_request?.labels.some(l => l.name === 'releng-audit-override'); + const hasQueueLabel = payload.pull_request?.labels.some(l => l.name === 'releng-audit-queue'); - core.info(`[Router] Current labels - Fail: ${hasFailLabel}, Pass: ${hasPassLabel}, Override: ${hasOverrideLabel}`); + core.info(`[Router] Current labels - Fail: ${hasFailLabel}, Pass: ${hasPassLabel}, Override: ${hasOverrideLabel}, Queue: ${hasQueueLabel}`); // --- SYNCHRONIZE (New Commits) --- if (eventName === 'pull_request_target' && payload.action === 'synchronize') { @@ -188,6 +189,20 @@ jobs: const labelName = payload.label.name; core.info(`[Router] Processing labeled event for label: ${labelName} by actor: ${actor}`); + if (labelName === 'releng-audit-queue') { + core.info(`[Router] Detected releng-audit-queue label. Removing label and triggering audit.`); + try { + await github.rest.issues.removeLabel({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + name: 'releng-audit-queue' + }); + } catch (e) {} + core.setOutput('run_audit', 'true'); + return; + } + // Block humans from applying machine labels if (!isBot && (labelName === 'releng-audit-pass' || labelName === 'releng-audit-fail')) { core.warning(`[Router] User @${actor} cannot manually apply ${labelName}.`);