Claude Code GitHub Action v0.5.6
Features
- Process PR and issue comments with different prefixes to trigger specific behaviors
- Get AI-powered code analysis and suggestions
- Create GitHub-compatible suggested changes that can be applied with one click
- Automatically analyze issues and create fix PRs
- Provide rich context about PRs and issues to Claude
- Simple setup with minimal configuration
- Uses GitHub CLI and Claude Code CLI for reliability
Quick Start
1. Add Claude to Your Repository
Create a workflow file to integrate Claude with your repository:
File: .github/workflows/claude-code.yml
name: Claude Code Integration
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
jobs:
claude-integration:
uses: fractureinc/claude-code-github-action/.github/workflows/claude-full.yml@v0.5.6
with:
issue-label: 'claude-fix' # Optional: customize the trigger label
secrets:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}Example Queries
PR Comments
claude: Explain the changes in this PRclaude: Suggest improvements for the code qualityclaude: Identify potential security issuesclaude: Is this implementation optimal?claude-suggest: Refactor this code to be more maintainableclaude-suggest: Add error handling for edge cases
PR Code Review Comments
claude: What's the purpose of this function?claude: Is there a potential bug here?claude-suggest: Fix this loop to handle empty arraysclaude-suggest: Optimize this database query
Issue Comments
claude: What might be causing this bug?claude: Analyze this error log and suggest potential fixesclaude: How would you implement this feature?claude-fix: Implement proper error handling for division by zeroclaude-fix: Fix the memory leak in the connection pool