Skip to content

Commit 11919f3

Browse files
authored
🟠 [claude] Add Claude Code GitHub Workflow (#2)
* "Update Claude PR Assistant workflow" * "Update Claude Code Review workflow" * restore global permission
1 parent a14cbaa commit 11919f3

File tree

2 files changed

+10
-23
lines changed

2 files changed

+10
-23
lines changed

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

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Claude Code Review
22

33
on:
44
pull_request:
5-
types: [opened, synchronize]
5+
types: [opened, synchronize, ready_for_review, reopened]
66
# Optional: Only run on specific file changes
77
# paths:
88
# - "src/**/*.ts"
@@ -20,14 +20,14 @@ jobs:
2020
# github.event.pull_request.user.login == 'external-contributor' ||
2121
# github.event.pull_request.user.login == 'new-developer' ||
2222
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
23-
23+
2424
runs-on: ubuntu-latest
2525
permissions:
2626
contents: read
2727
pull-requests: read
2828
issues: read
2929
id-token: write
30-
30+
3131
steps:
3232
- name: Checkout repository
3333
uses: actions/checkout@v4
@@ -39,22 +39,9 @@ jobs:
3939
uses: anthropics/claude-code-action@v1
4040
with:
4141
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
42-
prompt: |
43-
REPO: ${{ github.repository }}
44-
PR NUMBER: ${{ github.event.pull_request.number }}
45-
46-
Please review this pull request and provide feedback on:
47-
- Code quality and best practices
48-
- Potential bugs or issues
49-
- Performance considerations
50-
- Security concerns
51-
- Test coverage
52-
53-
Use the repository's CLAUDE.md for guidance on style and conventions. Be constructive and helpful in your feedback.
54-
55-
Use `gh pr comment` with your Bash tool to leave your review as a comment on the PR.
56-
42+
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
43+
plugins: 'code-review@claude-code-plugins'
44+
prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'
5745
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
58-
# or https://docs.claude.com/en/docs/claude-code/sdk#command-line for available options
59-
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:*)"'
46+
# or https://code.claude.com/docs/en/cli-reference for available options
6047

‎.github/workflows/claude.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
uses: anthropics/claude-code-action@v1
3939
with:
4040
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
41-
41+
4242
# This is an optional setting that allows Claude to read CI results on PRs
4343
additional_permissions: |
4444
actions: read
@@ -48,6 +48,6 @@ jobs:
4848

4949
# Optional: Add claude_args to customize behavior and configuration
5050
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
51-
# or https://docs.claude.com/en/docs/claude-code/sdk#command-line for available options
52-
# claude_args: '--model claude-opus-4-1-20250805 --allowed-tools Bash(gh pr:*)'
51+
# or https://code.claude.com/docs/en/cli-reference for available options
52+
# claude_args: '--allowed-tools Bash(gh pr:*)'
5353

0 commit comments

Comments
 (0)