Skip to content

ci: auto-approve durable streams PRs from its sole maintainer#4693

Merged
balegas merged 1 commit into
mainfrom
balegas/auto-approve-durable-streams
Jul 7, 2026
Merged

ci: auto-approve durable streams PRs from its sole maintainer#4693
balegas merged 1 commit into
mainfrom
balegas/auto-approve-durable-streams

Conversation

@balegas

@balegas balegas commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

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:

  • the PR is authored by @balegas (and not a draft), and
  • every changed file is inside packages/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:

  • Uses pull_request_target, so the workflow definition always runs from main — a PR can't modify the logic that's about to approve it.
  • If a later push brings in files outside the package, the workflow dismisses its own approval (the repo has dismiss_stale_reviews off, so a stale approval would otherwise survive the push).
  • The scoped paths live in a scopes array, easy to extend if the project grows to more packages.
  • No repo settings changes needed: "Allow GitHub Actions to create and approve pull requests" is already enabled.

🤖 Generated with Claude Code

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

balegas commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

I'm the only developer working on the durable streams project

Human @balegas doesn't approve his agent's language

@balegas
balegas merged commit 08db805 into main Jul 7, 2026
13 checks passed
@balegas
balegas deleted the balegas/auto-approve-durable-streams branch July 7, 2026 14:14
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