From 65f776a6eeae647952fa76396111e0ee30734675 Mon Sep 17 00:00:00 2001 From: Kamil Listopad Date: Thu, 19 Nov 2026 21:45:56 +0100 Subject: [PATCH] chore: drop automation-sa-sre from CODEOWNERS and the AI review workflow Co-Authored-By: Claude Opus 5.5 --- .github/CODEOWNERS | 2 +- .github/workflows/ai-pr-review.yml | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index ae1dda76..7d8e412b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* @caffeinelabs/team-caffeine @automation-sa-sre +* @caffeinelabs/team-caffeine diff --git a/.github/workflows/ai-pr-review.yml b/.github/workflows/ai-pr-review.yml index 6d1914e1..c3eb1f19 100644 --- a/.github/workflows/ai-pr-review.yml +++ b/.github/workflows/ai-pr-review.yml @@ -7,8 +7,7 @@ name: AI PR review # count toward branch protection — so a required-approval rule can be # satisfied by either a human or this workflow; any other verdict dismisses # still-active automated approvals from previous runs. The App's API rate -# budget is shared only with the few repos that use it, unlike the org-wide -# service-account PAT this used before. +# budget is shared only with the few repos that use it. # CHANGES_REQUESTED reviews are never submitted — REQUEST_CHANGES fails the job # (red X) instead, so a human approval can override a false positive without # dismissing a bot review. When the App is not configured, the review degrades @@ -465,12 +464,9 @@ jobs: core.warning(`Could not list reviews, so no automated approval was submitted: ${error.message}`); return; } - // Also matches the service-account PAT that approved before the - // switch to the App, so its approvals are still dismissed. - const approverLogins = [reviewerLogin, "automation-sa-sre"]; const botApprovals = reviews.filter((review) => review.state === "APPROVED" && - approverLogins.includes((review.user || {}).login) && + (review.user || {}).login === reviewerLogin && (review.body || "").includes(marker) );