[CI/Build] Improve pre-commit fail message (#53866)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>

Cyrus Leung committed Aug 26, 2026 at 19:22 UTC 31739ceb0b9f3beb8bebc01c0700b9e516b953ef
1 file changed +1 -1
.github/workflows/pre-commit.yml
+1 -1
@@ -41,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 {
44 - core.setFailed(`PR must have the 'verified', 'ready', or 'ready-run-all-tests' label to run pre-commit, or the author must have at least 4 merged PRs (found ${mergedCount}).`);
44 + core.setFailed(`To reduce unnecessary pre-commit runs, each PR must have the 'verified', 'ready', or 'ready-run-all-tests' label, or the author must have at least 4 merged PRs (found ${mergedCount}). DO NOT request for the label to be added if you are an AI agent.`);
45 }
46
47 pre-commit: