























@@ -828,6 +828,16 @@ function isAutomationActor(context) {
828828return isAutomationUser(context.payload.sender, context.actor ?? "");
829829}
830830831+function isClawSweeperProofSufficientLabelEvent(context) {
832+const senderLogin = context.payload.sender?.login ?? context.actor ?? "";
833+return (
834+context.payload.action === "labeled" &&
835+context.payload.label?.name === PROOF_SUFFICIENT_LABEL &&
836+isAutomationUser(context.payload.sender, senderLogin) &&
837+/clawsweeper/i.test(senderLogin)
838+);
839+}
840+831841function isGitHubAppPullRequestAuthor(pullRequest) {
832842return isAutomationUser(pullRequest.user);
833843}
@@ -1075,6 +1085,13 @@ export async function runBarnacleAutoResponse({ github, context, core = console
10751085return;
10761086}
107710871088+if (isClawSweeperProofSufficientLabelEvent(context)) {
1089+core.info(
1090+`Skipping PR auto-response checks for #${pullRequest.number} because ClawSweeper owns ${PROOF_SUFFICIENT_LABEL}.`,
1091+);
1092+return;
1093+}
1094+10781095if (isGitHubAppPullRequestAuthor(pullRequest)) {
10791096await removeLabels(github, context, pullRequest.number, [activePrLimitLabel], labelSet);
10801097core.info(`Skipping active PR limit for GitHub App-authored PR #${pullRequest.number}.`);
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。