Repository navigation
Commit fc0cba9
fix(claude-review): keep the caller job green when the review is skipped (#5)
## 概要
`claude-review.yml` のレビュー対象外ケース(main への push,furedea-agent 以外の bot の
PR,fork PR)で,呼び出し側ジョブ `claude-review / Claude review` が `skipped`
になり,`all-green` が失敗する問題を修正します.
- 常に成功する `should-review` ジョブを追加(secrets なし,`permissions:
{}`,`timeout-minutes: 1`,no-op ステップ 1 つ).
- レビュー対象かどうかの判定は,元の `if` 式をそのままジョブの `outputs.run` に移したもの(スクリプトや env
変数なし).
- `review` ジョブは `needs: should-review` とし,`outputs.run == 'true'`
のときだけ実行.
- 内側のジョブが 1 つ成功するため,レビューを skip しても呼び出し側ジョブは success になる.
- 呼び出し側(`ci.yml`,`all-green`)と README は変更なし.P0/P1
ゲート,失敗ヒント,concurrency,model,effort も変更なし.
## 検証
- `actionlint` 通過.
- 本 PR の CI で `all-green` を含む全チェックが成功.`Review pull request`
ステップが実行されており(skipped ではない),式の出力が文字列 `true` として `review` の `if`
と一致することを確認.
- Claude review の指摘は 0 件.
- main への push の場合は,マージ後に親セッションが確認する.
Closes #4
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: furedea <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>1 parent 5f1413f commit fc0cba9
1 file changed
Lines changed: 20 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
30 | 43 | | |
31 | 44 | | |
32 | 45 | | |
| |||
0 commit comments