Commit 08db805
ci: auto-approve durable streams PRs from its sole maintainer (#4693)
## 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](https://claude.com/claude-code)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent c259e7b commit 08db805
1 file changed
Lines changed: 59 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
0 commit comments