Repository navigation
[Fix] PR stuck at awaiting-author when a third party re-requests review - #2027
Merged
edelauna merged 1 commit intoOct 12, 2026
Merged
Conversation
Contributor
|
Important Review skippedThis PR was authored by a bot without an assigned CodeRabbit review seat. Ask an organization administrator to assign a seat to the bot. See the seat-assignment guide. After the seat is assigned, request a review again. ⚙️ Run configuration
You can disable this status message by setting the
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
edelauna
marked this pull request as ready for review
October 12, 2026 19:02
edelauna
requested review from
JamesRobert20,
edelauna and
taltas
as code owners
October 12, 2026 19:02
edelauna
approved these changes
Oct 12, 2026
edelauna
enabled auto-merge
October 12, 2026 19:05
edelauna
deleted the
fix/any-requester-clears-maintainer-block-2n14ny7jy6smn
branch
October 12, 2026 19:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related GitHub Issue
Closes: #2026
Description
A maintainer CHANGES_REQUESTED review is a durable block in the PR label workflow. Before this change, only two re-requests cleared the block: the PR author re-requesting the blocking maintainer, or the blocking maintainer re-requesting themselves. A re-request from anyone else, for example another maintainer, left the PR stuck at
awaiting-author.This PR removes the actor check in the
review_requestedloop in.github/workflows/label-pr-review-state.yml. Now anyreview_requestedtimeline event that names the blocking maintainer clears that block, no matter who made the request.These rules do not change:
requested_reviewer).review_request_removedevents never clear a block.No new label code is needed. When the block clears and CI passes, the existing flow adds
awaiting-coderabbitandcoderabbit-review-active, or moves the PR toawaiting-maintainerwhen automated review is already complete.Trade-off, noted in the issue: any user with request rights can now clear a maintainer block. A maintainer-only rule would need a
permissionForcheck on the timeline actor. This PR implements the proposal as written.Test Procedure
awaiting-coderabbitandcoderabbit-review-activeare added after a third-party re-request clears the block.pnpm exec vitest run services/__tests__/pr-review-state-workflow.test.tsfromsrc/: 196 tests pass.pnpm testfrom the repository root: all 13 turbo tasks pass (10,436 tests passed, 39 skipped).Pre-Submission Checklist
Documentation Updates
Additional Notes
The open question from the issue is out of scope here: this change lets any requester clear the block, not only maintainers. Reviewers may want to decide if a follow-up should restrict clearing to maintainers through a
permissionForcheck on the request actor.Get in Touch
roomote