Skip to content

Commit 710dae6

Browse files
committed
chore: Make claude review update a single comment
1 parent 4b9083d commit 710dae6

File tree

2 files changed

+47
-5
lines changed

2 files changed

+47
-5
lines changed

.github/workflows/claude-code-review.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
runs-on: ubuntu-latest
2222
permissions:
2323
contents: read
24-
pull-requests: read
25-
issues: read
24+
pull-requests: write
25+
issues: write
2626
id-token: write
2727

2828
steps:
@@ -36,6 +36,8 @@ jobs:
3636
uses: anthropics/claude-code-action@v1
3737
with:
3838
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
39+
use_sticky_comment: true
40+
additional_permissions: "actions:read"
3941
prompt: |
4042
REPO: ${{ github.repository }}
4143
PR NUMBER: ${{ github.event.pull_request.number }}
@@ -49,9 +51,7 @@ jobs:
4951
5052
Use the repository's CLAUDE.md for guidance on style and conventions. Be constructive and helpful in your feedback.
5153
52-
Use `gh pr comment` with your Bash tool to leave your review as a comment on the PR.
53-
5454
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
5555
# or https://docs.claude.com/en/docs/claude-code/cli-reference for available options
56-
claude_args: '--allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"'
56+
claude_args: '--allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"'
5757

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,45 @@ This installs a pre-commit hook that lints Swift files with SwiftFormat.
9494
### Xcode Previews
9595

9696
Due to the Rust dependencies in the project, Xcode previews are only compatible with iOS 17 and below.
97+
98+
## Contributing
99+
100+
### AI Code Review with Claude
101+
102+
This repository has Claude Code integrated for on-demand AI assistance on issues and pull requests.
103+
104+
#### How to Use
105+
106+
Mention `@claude` in any PR comment, issue, or review to trigger Claude:
107+
108+
| Command | Description |
109+
|---------|-------------|
110+
| `@claude review` | Request a code review of the PR |
111+
| `@claude /review` | Same as above (slash command) |
112+
| `@claude review focus on security` | Review with specific focus |
113+
| `@claude explain this change` | Ask questions about the code |
114+
| `@claude fix the null pointer issue` | Request Claude to implement a fix |
115+
| `@claude /help` | Show available commands |
116+
117+
#### Notes
118+
119+
- Claude follows the project guidelines defined in `CLAUDE.md`
120+
- Reviews are triggered **manually only** — no automatic reviews on PR creation
121+
- Claude can read CI results to provide context-aware feedback
122+
- For implementation requests, Claude will create commits on your branch
123+
124+
#### Example
125+
126+
```
127+
@claude review
128+
129+
Please focus on:
130+
- Kotlin idioms and best practices
131+
- Potential memory leaks
132+
- Thread safety in coroutines
133+
```
134+
135+
## License
136+
137+
This project is licensed under the MIT License.
138+
See the [LICENSE](./LICENSE) file for more details.

0 commit comments

Comments
 (0)