Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/workflows/claude-documentation-reviewer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,19 @@ jobs:

Do not review or comment on any other files (e.g., .js, .ts, .json, etc.). Focus exclusively on the documentation changes in the markdown files listed above.

Write your complete review to /tmp/review.md. The last line of /tmp/review.md must be exactly:
To apply fixes, reply with `@claude` followed by your instructions (e.g. `@claude fix all issues` or `@claude fix only the spelling errors`).

Then post it with:
gh pr comment ${{ github.event.pull_request.number }} --body-file /tmp/review.md
Write your complete review to /tmp/review.md.

claude_args: |
--model claude-sonnet-4-5-20250929
--allowedTools "Write,Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr comment:*)"
--allowedTools "Write,Bash(gh pr diff:*),Bash(gh pr view:*)"
--append-system-prompt "${{ steps.read-prompt.outputs.prompt }}"

- name: Append closing lines and post review
if: steps.changed-files.outputs.count > 0
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "" >> /tmp/review.md
echo "To apply fixes, reply with \`@claude\` followed by your instructions (e.g. \`@claude fix all issues\` or \`@claude fix only the spelling errors\`)." >> /tmp/review.md
echo "Note: automated fixes are only available for branches in this repository, not forks." >> /tmp/review.md
gh pr comment ${{ github.event.pull_request.number }} --body-file /tmp/review.md
Loading