Commit eefed58
chore(ci): emit claude:review:passed/failed label from automated PR review [PYSDK-105]
Adds a machine-readable verdict from the automated Claude PR review so
branch-protection rules can gate `auto-merge` on the review outcome
without human intervention.
Changes:
* `.github/labels.yml`: two new mutually-exclusive labels
- `claude:review:passed` (green) — no blocking findings on current head
- `claude:review:failed` (red) — blocking findings on current head
* `.github/workflows/claude-code-automation-pr-review.yml`: extend prompt
with a mandatory "Machine-Readable Verdict" final step. Claude must
emit PASS or FAIL based on the existing CRITICAL CHECKS criteria
(test markers, coverage ≥85%, lint clean, conventional commits,
architecture/security) and apply the corresponding label via
`gh pr edit --add-label ... --remove-label ...`. The opposite label
is always removed, so the labels stay mutually exclusive across
re-reviews on subsequent pushes.
Re-emission: every push to a PR re-runs the review (existing
`synchronize` trigger), so the verdict is always tied to the current
head commit — stale verdicts cannot persist.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent daf15a0 commit eefed58
2 files changed
Lines changed: 51 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
120 | 128 | | |
121 | 129 | | |
122 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
217 | 260 | | |
218 | 261 | | |
219 | 262 | | |
| |||
0 commit comments