Skip to content
Merged
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
25 changes: 19 additions & 6 deletions .github/workflows/pr-review-policy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,24 @@ permissions:
statuses: write
jobs:
policy:
# Only comments this controller actually reads can change an outcome: a bot
# receipt or an author's attestation. Its own comments, coverage bots and
# human discussion cannot, and were most of the runs it caused.
# Only comments this controller actually reads can change an outcome, and a
# comment it reads only matters for what it carries. CodeRabbit never
# approves — measured over 75 recent pull requests, every one of its
# receipts arrived as a comment and none as a review — so its completion
# marker and its rate-limit notice have to be heard. It keeps one comment
# per pull request and edits it in place, so once it has reviewed once that
# body carries the marker for ever and its later edits still wake the
# controller: the saving is on pull requests it has not reviewed yet or
# skips entirely. thepastaclaw is the mirror image: its receipt is always a
# review, which arrives on its own event, and nothing reads its comments.
#
# Narrowing this costs latency and never correctness: comments are read from
# the pull request when a run happens, not from the event that started it,
# so a comment that starts no run is still seen by the next one.
if: >-
github.event_name != 'issue_comment' ||
contains(fromJSON('["coderabbitai", "coderabbitai[bot]", "thepastaclaw"]'), github.event.comment.user.login) ||
contains(github.event.comment.body, '/self-reviewed')
uses: dashpay/stale_prs_are_bad/.github/workflows/pr-review-reusable.yml@1ef768028f88b7f662fb260d9f8ba33fc0e48a44
contains(github.event.comment.body, '/self-reviewed') ||
(contains(fromJSON('["coderabbitai", "coderabbitai[bot]"]'), github.event.comment.user.login) &&
(contains(github.event.comment.body, 'final_review_risk_coverage') ||
contains(github.event.comment.body, 'rate limited by coderabbit.ai')))
uses: dashpay/stale_prs_are_bad/.github/workflows/pr-review-reusable.yml@17ce8d20f2ba1ac7103d01fcf2aea15ac7f1c01f
Loading