mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-31 07:45:12 +00:00
fix: preserve Google Gemini 3 cron thinking
This commit is contained in:
@@ -6,7 +6,7 @@ export const MOCK_ONLY_PROOF_LABEL = "triage: mock-only-proof";
|
||||
export const MAINTAINER_TEAM_SLUG = "maintainer";
|
||||
|
||||
export const CLAWSWEEPER_PROOF_VERDICT_STATUS = "clawsweeper_exact_head_pass";
|
||||
const CLAWSWEEPER_BOT_LOGIN = "clawsweeper[bot]";
|
||||
const CLAWSWEEPER_BOT_LOGINS = new Set(["clawsweeper[bot]", "openclaw-clawsweeper[bot]"]);
|
||||
|
||||
const privilegedAuthorAssociations = new Set(["OWNER", "MEMBER", "COLLABORATOR"]);
|
||||
|
||||
@@ -251,10 +251,10 @@ function isTrustedClawSweeperComment(comment) {
|
||||
return true;
|
||||
}
|
||||
// GitHub can omit performed_via_github_app on issue comments while still
|
||||
// returning the reserved App bot identity.
|
||||
// returning a reserved ClawSweeper App bot identity.
|
||||
const login = String(comment?.user?.login ?? "").toLowerCase();
|
||||
const userType = String(comment?.user?.type ?? "");
|
||||
return login === CLAWSWEEPER_BOT_LOGIN && userType === "Bot";
|
||||
return CLAWSWEEPER_BOT_LOGINS.has(login) && userType === "Bot";
|
||||
}
|
||||
|
||||
export function hasClawSweeperExactHeadProof({ pullRequest, comments = [] } = {}) {
|
||||
|
||||
Reference in New Issue
Block a user