Skip to content

Release v0.5.6: Initial release

Latest

Choose a tag to compare

@paul-fracture paul-fracture released this 05 Apr 00:17

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 PR
  • claude: Suggest improvements for the code quality
  • claude: Identify potential security issues
  • claude: Is this implementation optimal?
  • claude-suggest: Refactor this code to be more maintainable
  • claude-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 arrays
  • claude-suggest: Optimize this database query

Issue Comments

  • claude: What might be causing this bug?
  • claude: Analyze this error log and suggest potential fixes
  • claude: How would you implement this feature?
  • claude-fix: Implement proper error handling for division by zero
  • claude-fix: Fix the memory leak in the connection pool