Skip to content

Commit 712d016

Browse files
committed
chore: Make claude review update a single comment
1 parent 1996e17 commit 712d016

File tree

2 files changed

+43
-6
lines changed

2 files changed

+43
-6
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: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,44 @@ Increment `versionCode` and `versionName` in `app/build.gradle.kts`, then run:
134134
APK is generated in `app/build/outputs/apk/_flavor_/release`. (`_flavor_` can be any of 'dev', 'mainnet', 'tnet').
135135
Example for dev: `app/build/outputs/apk/dev/release`
136136

137+
## Contributing
138+
139+
### AI Code Review with Claude
140+
141+
This repository has Claude Code integrated for on-demand AI assistance on issues and pull requests.
142+
143+
#### How to Use
144+
145+
Mention `@claude` in any PR comment, issue, or review to trigger Claude:
146+
147+
| Command | Description |
148+
|---------|-------------|
149+
| `@claude review` | Request a code review of the PR |
150+
| `@claude /review` | Same as above (slash command) |
151+
| `@claude review focus on security` | Review with specific focus |
152+
| `@claude explain this change` | Ask questions about the code |
153+
| `@claude fix the null pointer issue` | Request Claude to implement a fix |
154+
| `@claude /help` | Show available commands |
155+
156+
#### Notes
157+
158+
- Claude follows the project guidelines defined in `CLAUDE.md`
159+
- Reviews are triggered **manually only** — no automatic reviews on PR creation
160+
- Claude can read CI results to provide context-aware feedback
161+
- For implementation requests, Claude will create commits on your branch
162+
163+
#### Example
164+
165+
```
166+
@claude review
167+
168+
Please focus on:
169+
- Kotlin idioms and best practices
170+
- Potential memory leaks
171+
- Thread safety in coroutines
172+
```
173+
137174
## License
138175

139-
This project is licensed under the MIT License.
176+
This project is licensed under the MIT License.
140177
See the [LICENSE](./LICENSE) file for more details.

0 commit comments

Comments
 (0)