Skip to content

Commit 1c5bc29

Browse files
AnnatarHeclaude
andcommitted
ci(workflows): update GitHub Actions dependencies and Claude configuration
- Update actions/checkout from v4 to v5 across all workflows - Update Claude workflow to use new configuration format: - Change direct_prompt to prompt in code review workflow - Replace allowed_tools with claude_args using --allowedTools syntax - Remove trailing whitespace in workflow files 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 466d369 commit 1c5bc29

4 files changed

Lines changed: 22 additions & 23 deletions

File tree

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

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ jobs:
1717
# github.event.pull_request.user.login == 'external-contributor' ||
1818
# github.event.pull_request.user.login == 'new-developer' ||
1919
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
20-
20+
2121
runs-on: ubuntu-latest
2222
permissions:
2323
contents: read
2424
pull-requests: read
2525
issues: read
2626
id-token: write
27-
27+
2828
steps:
2929
- name: Checkout repository
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@v5
3131
with:
3232
fetch-depth: 1
3333

@@ -39,40 +39,39 @@ jobs:
3939

4040
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
4141
# model: "claude-opus-4-20250514"
42-
42+
4343
# Direct prompt for automated review (no @claude mention needed)
44-
direct_prompt: |
44+
prompt: |
4545
Please review this pull request and provide feedback on:
4646
- Code quality and best practices
4747
- Potential bugs or issues
4848
- Performance considerations
4949
- Security concerns
5050
- Test coverage
51-
51+
5252
Be constructive and helpful in your feedback.
5353
5454
# Optional: Use sticky comments to make Claude reuse the same comment on subsequent pushes to the same PR
5555
# use_sticky_comment: true
56-
56+
5757
# Optional: Customize review based on file types
5858
# direct_prompt: |
5959
# Review this PR focusing on:
6060
# - For TypeScript files: Type safety and proper interface usage
6161
# - For API endpoints: Security, input validation, and error handling
6262
# - For React components: Performance, accessibility, and best practices
6363
# - For tests: Coverage, edge cases, and test quality
64-
64+
6565
# Optional: Different prompts for different authors
6666
# direct_prompt: |
67-
# ${{ github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' &&
67+
# ${{ github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' &&
6868
# 'Welcome! Please review this PR from a first-time contributor. Be encouraging and provide detailed explanations for any suggestions.' ||
6969
# 'Please provide a thorough code review focusing on our coding standards and best practices.' }}
70-
70+
7171
# Optional: Add specific tools for running tests or linting
7272
# allowed_tools: "Bash(npm run test),Bash(npm run lint),Bash(npm run typecheck)"
73-
73+
7474
# Optional: Skip review for certain conditions
7575
# if: |
7676
# !contains(github.event.pull_request.title, '[skip-review]') &&
7777
# !contains(github.event.pull_request.title, '[WIP]')
78-

.github/workflows/claude.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
actions: read # Required for Claude to read CI results on PRs
2727
steps:
2828
- name: Checkout repository
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@v5
3030
with:
3131
fetch-depth: 1
3232

@@ -39,26 +39,26 @@ jobs:
3939
# This is an optional setting that allows Claude to read CI results on PRs
4040
additional_permissions: |
4141
actions: read
42-
42+
4343
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
4444
# model: "claude-opus-4-20250514"
45-
45+
4646
# Optional: Customize the trigger phrase (default: @claude)
4747
# trigger_phrase: "/claude"
48-
48+
4949
# Optional: Trigger when specific user is assigned to an issue
5050
# assignee_trigger: "claude-bot"
51-
51+
5252
# Optional: Allow Claude to run specific commands
53-
allowed_tools: "Bash(npm:*),Bash(go:*),Bash(git:*)"
54-
53+
claude_args: |
54+
--allowedTools Bash,Edit,Read,Write
55+
5556
# Optional: Add custom instructions for Claude to customize its behavior for your project
5657
# custom_instructions: |
5758
# Follow our coding standards
5859
# Ensure all new code has tests
5960
# Use TypeScript for new files
60-
61+
6162
# Optional: Custom environment variables for Claude
6263
# claude_env: |
6364
# NODE_ENV: test
64-

.github/workflows/pr-check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout code
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v5
2222
with:
2323
fetch-depth: 0
2424

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
token: ${{ secrets.GITHUB_TOKEN }}
2121
release-type: go
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v5
2323
with:
2424
fetch-depth: 0
2525
- run: git fetch --force --tags

0 commit comments

Comments
 (0)