[CI/Build] Accept ready-run-all-tests label in pre-commit gate (#47897)
Signed-off-by: AmeenP <ameen@primeintellect.ai> Co-authored-by: AmeenP <ameen@primeintellect.ai> Co-authored-by: Claude <noreply@anthropic.com>
Ameen Patel committed
Jul 7, 2026 at 16:18 UTC
aad0fb741b98875e9288487001f27ad1a5d639a6
1 file changed
+3
-2
.github/workflows/pre-commit.yml
+3
-2
@@ -28,7 +28,8 @@ jobs:
28
pull_number: context.payload.pull_request.number,
29
});
30
31
- const hasReadyLabel = pr.labels.some(l => l.name === 'ready');
31
+ const readyLabels = ['ready', 'ready-run-all-tests'];
32
+ const hasReadyLabel = pr.labels.some(l => readyLabels.includes(l.name));
33
const hasVerifiedLabel = pr.labels.some(l => l.name === 'verified');
34
35
const { data: mergedPRs } = await github.rest.search.issuesAndPullRequests({
@@ -40,7 +41,7 @@ jobs:
41
if (hasReadyLabel || hasVerifiedLabel || mergedCount >= 4) {
42
core.info(`Check passed: verified label=${hasVerifiedLabel}, ready label=${hasReadyLabel}, 4+ merged PRs=${mergedCount >= 4}`);
43
} else {
43
- core.setFailed(`PR must have the 'verified' or 'ready' (which also triggers tests) label or the author must have at least 4 merged PRs (found ${mergedCount}).`);
44
+ core.setFailed(`PR must have the 'verified', 'ready', or 'ready-run-all-tests' label (the ready labels also trigger tests) or the author must have at least 4 merged PRs (found ${mergedCount}).`);
45
}
46
47
pre-commit: