Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @caffeinelabs/team-caffeine @automation-sa-sre
* @caffeinelabs/team-caffeine
8 changes: 2 additions & 6 deletions .github/workflows/ai-pr-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
);

Expand Down
Loading