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
1 change: 1 addition & 0 deletions .github/workflows/claude-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
permissions:
contents: read
pull-requests: write
issues: write
steps:
# Check out the code to allow git diff operations
- name: Checkout code
Expand Down
22 changes: 21 additions & 1 deletion .github/workflows/claude-comment-response.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,33 @@ jobs:
contents: write
pull-requests: write
issues: write
discussions: write
id-token: write
statuses: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch full history for accurate diffs

# If running on a PR comment, we need to explicitly check out the PR branch
- name: Checkout PR branch if needed
if: github.event.issue.pull_request
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Get the PR number from the issue object
PR_NUMBER="${{ github.event.issue.number }}"

echo "Checking out PR #${PR_NUMBER}"

# Use GitHub CLI to checkout the PR
# This handles both internal branches and forks automatically
gh pr checkout ${PR_NUMBER}

echo "Current branch: $(git branch --show-current)"
git status

- name: Claude Response
uses: anthropics/claude-code-action@beta
with:
Expand Down Expand Up @@ -49,7 +70,6 @@ jobs:
GlobTool # Find files by pattern
GrepTool # Search file contents
BatchTool # Run multiple tools in parallel


# Timeout after 20 minutes
timeout_minutes: 20
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/claude-pr-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
contents: write
pull-requests: write
issues: write
discussions: write
id-token: write
statuses: write
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
Loading