Skip to content

Conversation

@suryaprakash0010
Copy link

Add Claude Code GitHub Action Workflow

Overview

This PR introduces automated Claude Code integration via a new workflow claude-code.yml.
Claude will now run on every pull request (and pushes to main/master) to provide AI-powered code review, documentation suggestions, and quality checks.

Key Changes

  • Added .github/workflows/claude-code.yml
    • Triggers on PR events (opened, synchronize, reopened) and direct pushes.
    • Uses anthropics/claude-code-action@v1.
    • Requires repository secret ANTHROPIC_API_KEY.
  • Default settings left minimal; advanced claude_args section is commented for future tuning.

Setup Required

  1. In Repo → Settings → Secrets and variables → Actions, add
    ANTHROPIC_API_KEY = <your-Anthropic-API-key>.
  2. Merge this PR.
  3. Open / update a PR or push to main to see Claude comments appear.

How to Test

  1. Fork/clone this branch locally.
  2. Push a dummy commit or open a test PR – GitHub Actions should run the new Claude Code job.
  3. Confirm that the workflow completes without error and that Claude posts a review or log in the Actions tab.

Acceptance Criteria

  • Workflow file exists and is valid YAML.
  • Pipeline triggers on PR events and pushes to main/master.
  • Job finishes successfully on CI.
  • Claude output visible in PR conversation or Actions log.

Note: Customize the commented claude_args block in the workflow if you want to pin a model version, change tool permissions, or set max turns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant