Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 31 additions & 2 deletions .github/workflows/claude-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,35 @@ jobs:
with:
fetch-depth: 1

- name: Setup uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true

- name: Cache uv tools
uses: actions/cache@v4
with:
path: ~/.local/share/uv/tools
key: ${{ runner.os }}-uv-tools-serena
restore-keys: |
${{ runner.os }}-uv-tools-

- name: Install Serena
run: uv tool install --from git+https://github.com/oraios/serena serena-agent

- name: Create Serena cache key
id: serena-cache-hash
run: echo "hash=${{ runner.os }}-serena-cache-${{ hashFiles('**/*.swift', 'Tuist/**/*', 'Projects/**/*.swift') }}" >> $GITHUB_OUTPUT

- name: Cache Serena data
uses: actions/cache@v4
id: cache-serena
with:
path: .serena
key: ${{ steps.serena-cache-hash.outputs.hash }}
restore-keys: |
${{ runner.os }}-serena-cache-

- name: Run Claude Code Review
id: claude-review
uses: anthropics/claude-code-action@v1
Expand All @@ -53,5 +82,5 @@ jobs:

# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
# or https://docs.claude.com/en/docs/claude-code/cli-reference for available options
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:*)"'

claude_args: |
--allowed-tools "mcp__serena__*, 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:*)"
32 changes: 31 additions & 1 deletion .github/workflows/claude.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,35 @@ jobs:
with:
fetch-depth: 1

- name: Setup uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true

- name: Cache uv tools
uses: actions/cache@v4
with:
path: ~/.local/share/uv/tools
key: ${{ runner.os }}-uv-tools-serena
restore-keys: |
${{ runner.os }}-uv-tools-

- name: Install Serena
run: uv tool install --from git+https://github.com/oraios/serena serena-agent

- name: Create Serena cache key
id: serena-cache-hash
run: echo "hash=${{ runner.os }}-serena-cache-${{ hashFiles('**/*.swift', 'Tuist/**/*', 'Projects/**/*.swift') }}" >> $GITHUB_OUTPUT

- name: Cache Serena data
uses: actions/cache@v4
id: cache-serena
with:
path: .serena
key: ${{ steps.serena-cache-hash.outputs.hash }}
restore-keys: |
${{ runner.os }}-serena-cache-

- name: Run Claude Code
id: claude
uses: anthropics/claude-code-action@v1
Expand All @@ -46,5 +75,6 @@ jobs:
# Optional: Add claude_args to customize behavior and configuration
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
# or https://docs.claude.com/en/docs/claude-code/cli-reference for available options
# claude_args: '--allowed-tools Bash(gh pr:*)'
claude_args: |
--allowed-tools "mcp__serena__*,Bash(gh pr:*)"

Loading