Skip to content

Commit 44ccc9c

Browse files
ahrzbclaude
andauthored
ci: post reviews to the PR + drop debug log flag (#6)
* ci: let review agent read the plugin cache (fixes code-review skill) The requesting-code-review skill reads code-reviewer.md from the plugin cache (~/.claude/plugins), which claude-code-action's repo-only sandbox blocks. Grant read access via project settings (settingSources: project), loaded without touching the workflow file. Track the shared settings file via a .gitignore negation instead of force-add. Verified: review ran full (21 turns, is_error:false) on this branch. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * ci: allow the agent App bot to trigger PR review Agents push feature branches as claude-agent-ahrzb (App identity), which claude-code-action blocks by default. Scope allowed_bots to that bot only (not '*') so only our agents' pushes trigger a review. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * ci: drop show_full_output debug flag from review workflow Public repo — show_full_output publishes the review agent's full transcript to public Actions logs. It was a temporary capture flag; remove it so the merge to master also clears it there. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * ci: post the review to the PR (track_progress + sticky comment) The review agent produced its findings as final text but never called a GitHub comment tool, and every auto-post flag was off, so nothing landed on the PR. track_progress posts the report as a tracking comment; use_sticky_comment keeps it to one comment per PR across pushes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * ci: actually post the review — grant comment tools + instruct posting track_progress alone was not enough. Per Anthropic's canonical pr-review-comprehensive.yml example, the agent needs the comment tools granted in --allowedTools (mcp__github_inline_comment + gh pr comment) and an explicit instruction to post; otherwise it reviews and exits without writing anything to the PR. Drop use_sticky_comment (not in the recipe). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent ff4beac commit 44ccc9c

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

.github/workflows/claude-review.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,23 @@ jobs:
2828
allowed_bots: claude-agent-ahrzb # agents push feature branches as this App bot
2929
plugin_marketplaces: https://github.com/anthropics/claude-plugins-official.git
3030
plugins: superpowers@claude-plugins-official
31-
claude_args: --model claude-sonnet-5 --max-turns 20
32-
show_full_output: true
31+
# Grant the comment tools — without these the agent has no way to
32+
# write anything back to the PR (this was the "nothing gets posted" bug).
33+
claude_args: >-
34+
--model claude-sonnet-5 --max-turns 30
35+
--allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"
36+
track_progress: true # tracking comment + PR context
3337
prompt: |
34-
Review this pull request.
38+
Review this pull request. Use the superpowers:requesting-code-review
39+
skill for the review methodology, diffing the PR branch against
40+
${{ github.event.pull_request.base.ref }}.
3541
36-
Use the superpowers:requesting-code-review skill and follow it exactly.
37-
Diff the PR branch against ${{ github.event.pull_request.base.ref }}.
42+
Then POST the review to GitHub — a review that isn't posted is useless:
43+
- inline comments (mcp__github_inline_comment__create_inline_comment)
44+
for specific, line-level issues
45+
- one top-level PR comment (`gh pr comment`) for the overall summary
46+
and assessment
3847
3948
Report only what you verified in the diff. No speculative findings, no
40-
style nits. If nothing needs changing, say so in one line.
49+
style nits. If nothing needs changing, post a one-line top-level
50+
comment saying so.

0 commit comments

Comments
 (0)