Commit 7b6ecd4
chore: restore self-applying caller so PRs produce the required status check
Branch protection on main requires the `claude-review / run-review` status
check, but no workflow in this repo produces it. The caller that used to
produce it (.github/workflows/claude-code-review.yml) was removed in commit
52e688b as part of the v1 rename, and nothing was added back. Since then
every PR (#33–#36, #39) has been BLOCKED on main's branch protection and
only mergeable via `--admin`, losing both the enforcement and the
dogfooding of the reusable workflow on its own changes.
Add .github/workflows/self-review.yml, a minimal caller that:
- Triggers on pull_request (opened/synchronize/ready_for_review/reopened)
- Invokes the reusable workflow via LOCAL path (./.github/workflows/...)
so PR branches review their proposed changes to the reusable workflow
against themselves before release. A tag-pinned reference (@v1) would
run the released version instead and miss bugs introduced in the PR.
- Names the calling job `claude-review`, matching the required status
check name `claude-review / run-review` in branch protection.
- Passes repo-specific extra_instructions flagging the sensitive surfaces
in this repo: shell-injection in PR-data interpolation, verdict contract
stability, allowed-tools broadening, and the escape-hatch regex (which
just bit us in #38).
No functional changes to the reusable workflow itself.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 13bb616 commit 7b6ecd4
1 file changed
Lines changed: 38 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 | + | |
0 commit comments