Skip to content

ref(ci): Skip PR review reminders for changes-requested PRs#21526

Merged
mydea merged 1 commit into
developfrom
feat/pr-reminder-skip-changes-requested
Jun 15, 2026
Merged

ref(ci): Skip PR review reminders for changes-requested PRs#21526
mydea merged 1 commit into
developfrom
feat/pr-reminder-skip-changes-requested

Conversation

@mydea

@mydea mydea commented Jun 15, 2026

Copy link
Copy Markdown
Member

Summary

Adjusts the PR review-reminder job (scripts/pr-review-reminder.mjs) so it stops pinging reviewers on PRs that are blocked on the author.

  • Draft PRs are already ignored (if (pr.draft) continue;) — no change needed, documented for clarity.
  • New: skip PRs that have an outstanding "changes requested" review. In that state the ball is in the author's court, so nagging the reviewers is just noise. This mirrors the existing "skip if already approved" guard.

Handling re-requests correctly

A change-request only suppresses reminders while it's still outstanding. When the author addresses the feedback and re-requests a review, that reviewer reappears in listRequestedReviewers (the pending list), which supersedes their earlier change-request — so we ignore change-requests from currently-pending reviewers and they keep getting reminded. Dismissed reviews report state DISMISSED (not CHANGES_REQUESTED), so they don't count either.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 962cdb5. Configure here.

Comment thread scripts/pr-review-reminder.mjs Outdated
The review-reminder job already skips draft PRs, bot PRs, and approved PRs.
Also skip PRs that have an *outstanding* "changes requested" review: in that
state the PR is waiting on the author, so nagging the reviewers is just noise.

Change-requests from reviewers who were re-requested (and so are back in the
pending-reviewer list) are ignored, so the author re-requesting a review still
results in reminders. Dismissed reviews report state `DISMISSED`, so they no
longer count either.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mydea mydea force-pushed the feat/pr-reminder-skip-changes-requested branch from 962cdb5 to 602ee85 Compare June 15, 2026 10:01
@mydea mydea self-assigned this Jun 15, 2026
@mydea mydea marked this pull request as ready for review June 15, 2026 11:24
@mydea mydea requested a review from andreiborza June 15, 2026 11:24
Comment thread scripts/pr-review-reminder.mjs

@andreiborza andreiborza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks!

@mydea mydea merged commit 1d74cc0 into develop Jun 15, 2026
42 checks passed
@mydea mydea deleted the feat/pr-reminder-skip-changes-requested branch June 15, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants