AI编码
github.com ·
Anthropic 发布 Claude Code Action v1.0:面向 GitHub PR 与 Issue 的通用代码代理
Anthropic 官方仓库 claude-code-action 提供通用 Claude Code GitHub Action,可根据工作流上下文自动判断激活时机,响应 @claude 提及、Issue 指派或显式提示的自动化任务。功能包括交互式代码问答、PR 代码审查与改进建议、简单修复与重构实现、GitHub 评论与 PR 审查集成、进度跟踪和结构化 JSON 输出。支持 Anthropic 直连 API(API key 或工作负载身份联合)、Amazon Bedrock、Google Vertex AI 和 Microsoft Foundry 多种认证,且完全运行在用户自己的 GitHub runner 上。v1.0 简化了配置,提供统一 prompt 与 claude_args 输入,并附迁移指南与多种自动化用例文档。
AI推荐理由 Anthropic 官方发布的 Claude Code GitHub Action v1.0,正文明确列出智能模式检测、PR/Issue 集成、多认证方式(Anthropic API、Bedrock、Vertex AI、Microsoft Foundry)及结构化输出等具体能力,并说明运行在自有 GitHub runner 上,信息密度高、来源为官方仓库。局限在于正文为功能说明与文档导引,未提供实测效果或性能数据,也未给出发布时间证据,故不视为已验证突破。
78
正文
Claude Code Action
A general-purpose Claude Code action for GitHub PRs and issues that can answer questions and implement code changes. This 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. It supports multiple authentication methods including Anthropic direct API (API key or workload identity federation), Amazon Bedrock, Google Vertex AI, and Microsoft Foundry.
Features
🎯 Intelligent Mode Detection: Automatically selects the appropriate execution mode based on your workflow context—no configuration needed
🤖 Interactive Code Assistant: Claude can answer questions about code, architecture, and programming
🔍 Code Review: Analyzes PR changes and suggests improvements
✨ Code Implementation: Can implement simple fixes, refactoring, and even new features
💬 PR/Issue Integration: Works seamlessly with GitHub comments and PR reviews
🛠️ Flexible Tool Access: Access to GitHub APIs and file operations (additional tools can be enabled via configuration)
📋 Progress Tracking: Visual progress indicators with checkboxes that dynamically update as Claude completes tasks
📊 Structured Outputs: Get validated JSON results that automatically become GitHub Action outputs for complex automations
🏃 Runs on Your Infrastructure: The action executes entirely on your own GitHub runner (Anthropic API calls go to your chosen provider)
⚙️ Simplified Configuration: Unified prompt and claude_args inputs provide clean, powerful configuration aligned with Claude Code SDK
📦 Upgrading from v0.x?
See our Migration Guide for step-by-step instructions on updating your workflows to v1.0. The new version simplifies configuration while maintaining compatibility with most existing setups.
Quickstart
The easiest way to set up this action is through Claude Code in the terminal. Just open claude and run /install-github-app.
This command will guide you through setting up the GitHub app and required secrets.
Note:
You must be a repository admin to install the GitHub app and add secrets
This quickstart method is only available for direct Anthropic API users. For AWS Bedrock, Google Vertex AI, or Microsoft Foundry setup, see docs/cloud-providers.md.
📚 Solutions & Use Cases
Looking for specific automation patterns? Check our Solutions Guide for complete working examples including:
🔍 Automatic PR Code Review - Full review automation
📂 Path-Specific Reviews - Trigger on critical file changes
👥 External Contributor Reviews - Special handling for new contributors
📝 Custom Review Checklists - Enforce team standards
🔄 Scheduled Maintenance - Automated repository health checks
🏷️ Issue Triage & Labeling - Automatic categorization
📖 Documentation Sync - Keep docs updated with code changes
🔒 Security-Focused Reviews - OWASP-aligned security analysis
📊 DIY Progress Tracking - Create tracking comments in automation mode
Each solution includes complete working examples, configuration details, and expected outcomes.
Documentation
Solutions Guide - 🎯 Ready-to-use automation patterns
Migration Guide - ⭐ Upgrading from v0.x to v1.0
Setup Guide - Manual setup, custom GitHub apps, and security best practices
Usage Guide - Basic usage, workflow configuration, and input parameters
Custom Automations - Examples of automated workflows and custom prompts
Configuration - MCP servers, permissions, environment variables, and advanced settings
Experimental Features - Execution modes and network restrictions
Cloud Providers - AWS Bedrock, Google Vertex AI, and Microsoft Foundry setup
Capabilities & Limitations - What Claude can and cannot do
Security - Access control, permissions, and commit signing
FAQ - Common questions and troubleshooting
📚 FAQ
Having issues or questions? Check out our Frequently Asked Questions for solutions to common problems and detailed explanations of Claude's capabilities and limitations.
License
This project is licensed under the MIT License—see the LICENSE file for details.
来源报道 · 1 篇 · 以下链接均前往原始媒体
aihot::GitHub Trending
Anthropic 发布 Claude Code Action v1.0:面向 GitHub PR 与 Issue 的通用代码代理
09-26 · 原文发布