---
title: "Anthropic's Claude Code Action Hits 8K Stars Automating GitHub Pull Requests"
subtitle: "Anthropic's official claude-code-action brings Claude directly into GitHub PRs and issues, letting it review code, fix bugs, and open pull requests on command."
url: "https://alphasignal.ai/news/anthropic-s-claude-code-action-hits-8k-stars-automating-github-pull-requests"
author: "AlphaSignal Newsroom"
author_url: "https://alphasignal.ai/editorial-team"
company: "Anthropic"
company_url: "https://alphasignal.ai/company/anthropicai"
published: "2026-06-19T01:22:34.000Z"
updated: "2026-06-20T08:02:41.937Z"
type: "Repo"
topics:
  - "Development"
  - "Agents"
subtopics:
  - "Code Agents"
  - "Code Agents"
  - "Tool Use"
  - "Computer Use"
upvotes: 3531
source_url: "https://github.com/anthropics/claude-code-action"
comments: 0
truncated: true
---

# Anthropic's Claude Code Action Hits 8K Stars Automating GitHub Pull Requests

> Anthropic's official claude-code-action brings Claude directly into GitHub PRs and issues, letting it review code, fix bugs, and open pull requests on command.

[claude-code-action](https://github.com/anthropics/claude-code-action) is Anthropic's official GitHub Action that drops Claude into your pull request and issue workflow. Mention `@claude` in any comment, and Claude reads your codebase, writes code, runs your tests, and pushes commits back to the branch. It has crossed 8,000 stars and nearly 2,000 forks, making it one of the most-adopted AI coding integrations in the GitHub ecosystem.

## More than a chatbot in a comment box

The action runs the full Claude Code runtime inside a GitHub Actions runner with no local installation required, reading your repository files, git history, and diff context. This is not a wrapper or a thin API call. It is the actual Claude Code runtime. The distinction matters: Claude can actually build, lint, and test your project, not just read files and suggest changes in a comment.

The action intelligently detects when to activate based on your workflow context, whether responding to `@claude` mentions, issue assignments, or executing automation tasks with explicit prompts. That automatic mode detection is new in v1.0 and removes a lot of manual configuration that tripped up earlier adopters.

## Two modes, one action

Automatic mode detection means no more manual mode configuration. The action intelligently determines whether to run in interactive or automation mode based on your setup, with a unified interface where all prompts go through a single `prompt` input and all CLI options through `claude_args`. 

* **Interactive mode** \-- Claude wakes up when someone mentions `@claude` in a PR or issue comment, responds in-thread, and can push commits directly.
* **Automation mode** \-- You supply a `prompt` directly in the workflow YAML. Claude runs immediately on any trigger (PR opened, issue labeled, cron schedule) without waiting for a human mention.

Here is what both look like in a workflow file:

```
# Interactive mode - responds to @claude mentions
- uses: anthropics/claude-code-action@v1
  with:
    anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
# Automation mode - runs immediately with a prompt
- uses: anthropics/claude-code-action@v1
  with:
    prompt: "Review this PR for security issues"
    anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
    claude_args: "--model claude-sonnet-4-6 --max-turns 10"
```

_Preview only. Full text requires an AlphaSignal Pro account._

## Sources

- [anthropics/claude-code-action - GitHub](https://github.com/anthropics/claude-code-action)
- [Capabilities and Limitations - claude-code-action docs](https://github.com/anthropics/claude-code-action/blob/main/docs/capabilities-and-limitations.md)
- [How We Integrated Claude Code Into Our GitHub Workflow - Medium](https://chamith.medium.com/how-we-integrated-claude-code-into-our-github-workflow-97a5db8bcb8e)
- [Claude Code GitHub Actions - Official Docs](https://code.claude.com/docs/en/github-actions)
- [anthropics/claude-code-action Security - StepSecurity](https://www.stepsecurity.io/blog/anthropics-claude-code-action-security-how-to-secure-claude-code-in-github-actions-with-harden-runner)
