CI: claude code review only comments when issues found (#31727)

This commit is contained in:
andig 2026-07-12 15:41:38 +02:00 • committed by GitHub
parent 5b77c109c1
commit a903a19f82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -113,9 +113,16 @@ jobs:
allowed_bots: "dependabot[bot]"
plugin_marketplaces: "https://github.com/anthropics/claude-code.git"
plugins: "code-review@claude-code-plugins"
# --comment makes the plugin post its findings (or a "no issues" summary)
# to the PR; without it the review only prints to the hidden CI log.
prompt: "/code-review:code-review ${{ github.repository }}/pull/${{ needs.gate.outputs.number }} --comment"
# --comment lets the plugin post to the PR; without it the review only
# prints to the hidden CI log. By default the plugin also posts a "No
# issues found" summary on clean reviews - the override below drops that
# so a comment appears only when there are actual findings.
prompt: |
/code-review:code-review ${{ github.repository }}/pull/${{ needs.gate.outputs.number }} --comment
Only post a PR comment if you find issues. If the review is clean with
no findings, do not post any comment - skip the "No issues found"
summary and stop silently.
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
# or https://code.claude.com/docs/en/cli-reference for available options