Skip to content

Commit e322bce

Browse files
committed
Cleanup claude workflows
1 parent 2fd7fd5 commit e322bce

File tree

3 files changed

+34
-30
lines changed

3 files changed

+34
-30
lines changed

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

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,9 @@ name: Claude Code Review
33
on:
44
pull_request:
55
types: [opened, synchronize]
6-
# Optional: Only run on specific file changes
7-
# paths:
8-
# - "src/**/*.ts"
9-
# - "src/**/*.tsx"
10-
# - "src/**/*.js"
11-
# - "src/**/*.jsx"
126

137
jobs:
148
claude-review:
15-
# Optional: Filter by PR author
16-
# if: |
17-
# github.event.pull_request.user.login == 'external-contributor' ||
18-
# github.event.pull_request.user.login == 'new-developer' ||
19-
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
209

2110
runs-on: ubuntu-latest
2211
permissions:
@@ -31,11 +20,21 @@ jobs:
3120
with:
3221
fetch-depth: 1
3322

23+
- name: Setup Python and Serena MCP
24+
run: |
25+
sudo apt-get update
26+
sudo apt-get install -y python3 python3-pip
27+
pip3 install uv
28+
3429
- name: Run Claude Code Review
3530
id: claude-review
3631
uses: anthropics/claude-code-action@v1
32+
env:
33+
CONTEXT7_API_KEY: ${{ secrets.CONTEXT7_API_KEY }}
3734
with:
3835
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
36+
use_commit_signing: true
37+
3938
prompt: |
4039
Please review this pull request and provide feedback on:
4140
- Code quality and best practices
@@ -44,11 +43,8 @@ jobs:
4443
- Security concerns
4544
- Test coverage
4645
47-
Use the repository's CLAUDE.md for guidance on style and conventions. Be constructive and helpful in your feedback.
48-
49-
Use `gh pr comment` with your Bash tool to leave your review as a comment on the PR.
50-
51-
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
52-
# or https://docs.anthropic.com/en/docs/claude-code/sdk#command-line for available options
53-
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+
Be constructive and helpful in your feedback.
5447
48+
claude_args: |
49+
--mcp-config ".github/workflows/mcp-config.json"
50+
--allowedTools mcp__context7__resolve-library-id,mcp__context7__get-library-docs,mcp__sequential-thinking__sequentialthinking,mcp__serena__list_dir,mcp__serena__find_file,mcp__serena__search_for_pattern,mcp__serena__get_symbols_overview,mcp__serena__find_symbol,mcp__serena__find_referencing_symbols,mcp__serena__replace_symbol_body,mcp__serena__insert_after_symbol,mcp__serena__insert_before_symbol,mcp__serena__write_memory,mcp__serena__read_memory,mcp__serena__list_memories,mcp__serena__delete_memory,mcp__serena__activate_project,mcp__serena__check_onboarding_performed,mcp__serena__onboarding,mcp__serena__think_about_collected_information,mcp__serena__think_about_task_adherence,mcp__serena__think_about_whether_you_are_done

.github/workflows/claude.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,24 @@ jobs:
3030
with:
3131
fetch-depth: 1
3232

33+
- name: Setup Python and Serena MCP
34+
run: |
35+
sudo apt-get update
36+
sudo apt-get install -y python3 python3-pip
37+
pip3 install uv
38+
3339
- name: Run Claude Code
3440
id: claude
3541
uses: anthropics/claude-code-action@v1
42+
env:
43+
CONTEXT7_API_KEY: ${{ secrets.CONTEXT7_API_KEY }}
3644
with:
3745
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
38-
39-
# This is an optional setting that allows Claude to read CI results on PRs
46+
use_commit_signing: true
47+
4048
additional_permissions: |
4149
actions: read
42-
43-
# Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it.
44-
# prompt: 'Update the pull request description to include a summary of changes.'
45-
46-
# Optional: Add claude_args to customize behavior and configuration
47-
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
48-
# or https://docs.anthropic.com/en/docs/claude-code/sdk#command-line for available options
49-
# claude_args: '--model claude-opus-4-1-20250805 --allowed-tools Bash(gh pr:*)'
50-
50+
51+
claude_args: |
52+
--mcp-config ".github/workflows/mcp-config.json"
53+
--allowedTools mcp__context7__resolve-library-id,mcp__context7__get-library-docs,mcp__sequential-thinking__sequentialthinking,mcp__serena__list_dir,mcp__serena__find_file,mcp__serena__search_for_pattern,mcp__serena__get_symbols_overview,mcp__serena__find_symbol,mcp__serena__find_referencing_symbols,mcp__serena__replace_symbol_body,mcp__serena__insert_after_symbol,mcp__serena__insert_before_symbol,mcp__serena__write_memory,mcp__serena__read_memory,mcp__serena__list_memories,mcp__serena__delete_memory,mcp__serena__activate_project,mcp__serena__check_onboarding_performed,mcp__serena__onboarding,mcp__serena__think_about_collected_information,mcp__serena__think_about_task_adherence,mcp__serena__think_about_whether_you_are_done

Thinktecture.EntityFrameworkCore.slnx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@
1212
<File Path="icon.png" />
1313
<File Path="LICENSE.md" />
1414
<File Path="README.md" />
15-
<File Path=".github\copilot-instructions.md" />
1615
<File Path="CLAUDE.md" />
1716
</Folder>
17+
<Folder Name="/assets/.github/">
18+
<File Path=".github\copilot-instructions.md" />
19+
<File Path=".github\workflows\main.yml" />
20+
<File Path=".github\workflows\claude.yml" />
21+
<File Path=".github\workflows\claude-code-review.yml" />
22+
</Folder>
1823
<Folder Name="/samples/">
1924
<Project Path="samples/Thinktecture.EntityFrameworkCore.Benchmarks/Thinktecture.EntityFrameworkCore.Benchmarks.csproj" />
2025
<Project Path="samples/Thinktecture.EntityFrameworkCore.Sqlite.Samples/Thinktecture.EntityFrameworkCore.Sqlite.Samples.csproj" />

0 commit comments

Comments
 (0)