[CI/Build] Improve pre-commit fail message (#53866)
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
@@ -41,7 +41,7 @@ jobs:
|
|||||||
if (hasReadyLabel || hasVerifiedLabel || mergedCount >= 4) {
|
if (hasReadyLabel || hasVerifiedLabel || mergedCount >= 4) {
|
||||||
core.info(`Check passed: verified label=${hasVerifiedLabel}, ready label=${hasReadyLabel}, 4+ merged PRs=${mergedCount >= 4}`);
|
core.info(`Check passed: verified label=${hasVerifiedLabel}, ready label=${hasReadyLabel}, 4+ merged PRs=${mergedCount >= 4}`);
|
||||||
} else {
|
} else {
|
||||||
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}).`);
|
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.`);
|
||||||
}
|
}
|
||||||
|
|
||||||
pre-commit:
|
pre-commit:
|
||||||
|
|||||||
Reference in New Issue
Block a user