Skip to content

fix(claude-review): keep the caller job green when the review is skipped - #5

Merged
furedea merged 2 commits into
mainfrom
fix/keep-the-claude-review-caller-job-green
Nov 6, 2026
Merged

furedea merged 2 commits into
mainfrom
fix/keep-the-claude-review-caller-job-green

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

概要

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

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

Claude review summary: no findings.

I checked the new should-review gate against the if: condition it replaces. It applies the same rules: the event must be pull_request, the head repo must match this repo, and the author must not be a bot unless it is furedea-agent[bot]. Event values are passed through env and never interpolated into the script, so they cannot inject shell commands. The job uses permissions: {} and no secrets.

When review is skipped, should-review still succeeds, so the caller job claude-review reports success and all-green (which fails on skipped) passes. If should-review itself fails, the caller job still fails, so that failure is not hidden.

No blocking findings (P0/P1: 0).

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

Claude review summary

No findings.

  • should-review computes its output from comparisons joined by && and ||, so it always evaluates to true or false. That means needs.should-review.outputs.run == 'true' matches the old job-level if in every case: push, fork PR, PR from a bot other than furedea-agent, and normal PR.
  • When the review is skipped, should-review still succeeds. The calling claude-review job then reports success instead of skipped, so all-green passes.
  • The new job uses permissions: {} and no secrets, so it doesn't widen what the workflow can access. The review job's permissions, gate and failure-explanation steps are unchanged.

Blocking findings (P0/P1): 0

@furedea
furedea merged commit fc0cba9 into main Nov 6, 2026
9 checks passed
@furedea
furedea deleted the fix/keep-the-claude-review-caller-job-green branch November 6, 2026 10:41
furedea pushed a commit that referenced this pull request Nov 8, 2026
🤖 I have created a release *beep* *boop*
---


## 1.0.0 (2026-11-08)


### Bug Fixes

* **claude-review:** keep the caller job green when the review is
skipped ([#5](#5))
([fc0cba9](fc0cba9))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: furedea-release[bot] <353651101+furedea-release[bot]@users.noreply.github.com>
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.

fix(ci): keep the claude-review caller job green when the review is skipped

1 participant