ci: auto-approve durable streams PRs from its sole maintainer#4693
Merged
Conversation
PRs authored by @balegas that only touch packages/durable-streams-rust/ are auto-approved by github-actions[bot] to satisfy the 1-review branch protection. Uses pull_request_target so the workflow definition always comes from main, and dismisses its own approval if a later push brings in out-of-scope files. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
balegas
requested review from
KyleAMathews,
alco,
icehaunter,
kevin-dp,
magnetised,
msfstef,
paulharter,
robacourt,
samwillis and
thruflo
as code owners
July 7, 2026 11:55
icehaunter
approved these changes
Jul 7, 2026
Contributor
Author
Human @balegas doesn't approve his agent's language |
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.
Why
I'm the only developer working on the durable streams project, so PRs that only touch that package have no natural reviewer. This adds a scoped exception so those PRs can merge without waiting on a teammate, while everything else in the repo keeps requiring a human review.
What
Adds a workflow that auto-approves a PR when both hold:
@balegas(and not a draft), andpackages/durable-streams-rust/.The approval comes from
github-actions[bot], so it satisfies the existing 1-approval branch protection (an author's own approval never would). Details:pull_request_target, so the workflow definition always runs frommain— a PR can't modify the logic that's about to approve it.dismiss_stale_reviewsoff, so a stale approval would otherwise survive the push).scopesarray, easy to extend if the project grows to more packages.🤖 Generated with Claude Code