Skip to content

ReviewSLA: don't re-request a review from a new assignee who already approved - #51

Merged
willson556 merged 1 commit into
mainfrom
review-sla-no-rerequest
Oct 15, 2026
Merged

willson556 merged 1 commit into
mainfrom
review-sla-no-rerequest

Conversation

@willson556

@willson556 willson556 commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

When ReviewSLA hands an out-of-office assignee's reviews to someone else, it also requests a review from the new assignee on every PR they take over, even ones they've already approved. On StaflSystems/StaflLib#2393, willson556 approved at 18:18. At 18:40 he replaced thebhef as assignee and got a fresh review request, and he approved again at 18:48.

Fix: reassign() still makes them assignee, but only requests their review on PRs where they don't already have a standing approval.

Tests: 1 new test in run.test.js: the new assignee had already approved the bottom PR of a two-PR stack, so only the top PR gets a request. It fails on the old code. node --test passes all 110 tests.

Stacked on #50, which adds the standing-approval rules this relies on.

🤖 Generated with Claude Code

willson556 commented Oct 15, 2026 •

Copy link
Copy Markdown
Member Author

@willson556
willson556 marked this pull request as ready for review October 15, 2026 18:49
@staflsystemsci
staflsystemsci Bot requested review from a team, fcheein, gretl-silva-stafl, mament0, mns4595, mzhu48, nehalkpatel and thebhef and removed request for a team October 15, 2026 18:49

willson556 commented Oct 15, 2026 •

Copy link
Copy Markdown
Member Author

Merge activity

  • Oct 15, 8:19 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Oct 15, 8:20 PM UTC: Graphite rebased this pull request as part of a merge.
  • Oct 15, 8:20 PM UTC: @willson556 merged this pull request with Graphite.

@willson556
willson556 changed the base branch from review-sla-standing-approval to graphite-base/51 October 15, 2026 20:19
@willson556
willson556 changed the base branch from graphite-base/51 to main October 15, 2026 20:19
…approved

On an out-of-office reassignment, the new assignee was requested as a
reviewer on every PR they took over, including ones they had already
approved. On StaflLib#2393 that asked willson556 to review again 22
minutes after his approval. Skip the request where their approval
stands; they're still made assignee.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@willson556
willson556 force-pushed the review-sla-no-rerequest branch from 18660bf to d21e267 Compare October 15, 2026 20:19
@willson556
willson556 merged commit 7cb7acd into main Oct 15, 2026
2 checks passed
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.

3 participants