Skip to content

Commit 1dcfb9d

Browse files
committed
Add artifacts upload and more diagnostics for Claude CLI
1 parent ed93e0b commit 1dcfb9d

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

.github/workflows/claude-issue-fix.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,28 @@ jobs:
2929
git config --global user.email "claude-bot@example.com"
3030
3131
- name: Process issue with Claude Code
32-
uses: fractureinc/claude-code-github-action@v0.3.3
32+
id: claude-process
33+
uses: fractureinc/claude-code-github-action@v0.3.4
3334
with:
3435
mode: 'issue-fix'
3536
issue-number: ${{ github.event.issue.number }}
3637
repo-owner: ${{ github.repository_owner }}
3738
repo-name: ${{ github.event.repository.name }}
3839
branch-prefix: 'fix'
3940
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
40-
github-token: ${{ secrets.GITHUB_TOKEN }}
41+
github-token: ${{ secrets.GITHUB_TOKEN }}
42+
43+
- name: Collect debug information
44+
if: always()
45+
run: |
46+
echo "Collecting debug information..."
47+
mkdir -p /tmp/claude-debug
48+
cp /tmp/claude_* /tmp/claude-debug/ || echo "No claude debug files found"
49+
find /tmp -name "claude_*" -type f -exec ls -la {} \; || echo "No claude files found"
50+
51+
- name: Upload debug artifacts
52+
if: always()
53+
uses: actions/upload-artifact@v3
54+
with:
55+
name: claude-debug-${{ github.event.issue.number }}
56+
path: /tmp/claude-debug/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "claude-code-github-action",
3-
"version": "0.3.3",
3+
"version": "0.3.4",
44
"description": "GitHub action for Claude Code Integration in PR comments, reviews, inline code suggestions, and issue-based fixes",
55
"main": "index.js",
66
"scripts": {

scripts/issue-fix-mode.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ echo "Branch Prefix: ${BRANCH_PREFIX:-fix}"
4646
echo "$GITHUB_TOKEN" | gh auth login --with-token
4747
export ANTHROPIC_API_KEY="$ANTHROPIC_API_KEY"
4848

49+
# Check Claude CLI availability and version
50+
echo "Checking Claude CLI installation..."
51+
which claude || echo "Claude CLI not found in PATH"
52+
claude --version || echo "Failed to get Claude version"
53+
echo "Claude CLI help:"
54+
claude --help || echo "Failed to get Claude help"
55+
4956
# Create temp files with descriptive names for better debugging
5057
RESPONSE_FILE=$(mktemp -t "claude_analysis_XXXXXX")
5158
FIX_DETAILS_FILE=$(mktemp -t "claude_fix_details_XXXXXX")

0 commit comments

Comments
 (0)