]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
.github/workflows/releng-audit: add support for queue label 70130/head
authorPatrick Donnelly <pdonnell@ibm.com>
Sat, 11 Jul 2026 15:43:57 +0000 (11:43 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Sun, 12 Jul 2026 13:13:45 +0000 (09:13 -0400)
This allows trigger a new audit on a mass batch of PRs instead of
individually.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
.github/workflows/releng-audit.yaml

index 4cbcfaa039d173dc7fd8551b7a38cac7a65dda57..f8fc8c14e204f555a184f1062cb664f87edbf91a 100644 (file)
@@ -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}.`);