From a903a19f82a1d27512f4d099bfa49facfbbdd4cc Mon Sep 17 00:00:00 2001 From: andig Date: Sun, 12 Jul 2026 15:41:38 +0200 Subject: [PATCH] CI: claude code review only comments when issues found (#31727) --- .github/workflows/claude-code-review-run.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/claude-code-review-run.yml b/.github/workflows/claude-code-review-run.yml index d5184eac0..8e54f588c 100644 --- a/.github/workflows/claude-code-review-run.yml +++ b/.github/workflows/claude-code-review-run.yml @@ -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