Anthropic Claude Code 团队推出 Claude Ship,自动处理 PR 审查、修复与审批
Claude Code 团队推出 Claude Ship(beta),可将 PR 走完审查、修复和基于团队策略的审批决策。
同一件事,精选收录的是《Anthropic 推出 Claude Ship 测试版,自动完成 PR 审查、修复与审批》
Introducing Claude Ship! 🚀 Claude can take a PR through review, fixes and an approval decision based on your team's policy.
If you've ever opened a PR, you know the flow: You open a PR and move on to your next task, then you get the review and you go back and fix something and you wait for the review to rerun and then you have to go find an approver. That's how it's designed to work: Most teams want a human to approve changes, and if you're writing code line by line, that's feasible. But many developers are already writing code with agents.
As the Claude Code team, we write most of our code with Claude. But we wanted post-PR to move just as quickly as the pre-PR part. Claude Ship evaluates your PRs, works on fixes, and determines when they can be merged based on policies that you define for your team. It is comprised of three components: Code Review (generally available): Performs a multi-faceted, in-depth review of a PR against your codebase. It collects findings, adversarially verifies them, classifies them, and posts comments on your PR.
You select from a tiered review depth for each repo: Quick, Standard, or Deep.
PR Steward (beta): Works to keep a PR green by responding to failing CI checks, merge conflicts, and comments from Code Review, other review tools, or reviewers. After every push it posts comments detailing what it did and how to revert those actions. You direct it with Claude comments or stop to have it step back. PR Steward is not designed to approve or merge PRs.
Claude Approvals (beta): Applies a policy that your team writes as a file in the repo. You can think of it as a smarter CODEOWNERS that approves routine changes autonomously if your policy allows it, or asks for human approval in specific situations. Claude can take into account Code Review findings and your own natural language classifiers. For most teams, we recommend starting in observe-only mode to gain confidence before enabling it as a required check in your branch protection configuration.
You can use Claude Ship in two ways: As a developer, upgrade your local CLI to the latest version of Claude Code and type /ship when you're ready to push a change.
Claude pushes the change, creates the PR, reviews it, and responds to feedback or failing checks. Whether the change can be merged is determined by your permissions and your repo's branch protection rules. As an admin or engineering lead, you can enable Claude Ship on a repo-by-repo basis and have it run automatically across your team's PRs. You turn on Code Review and PR Steward per repo, and Claude Approvals starts when a connected repo has a policy file on the default branch. You can leverage your existing branch protection and required checks.
You decide what review depth to use, when reviews run, and your spend limits, enabling a gradual rollout and pace of adoption.
Claude Ship is available for repos on GitHub on the Team and Enterprise plans. Costs are billed by tokens and will vary based on the number of PRs it touches, the review depth, and the effort put in by PR Steward. As an admin, you can set spend limits for Code Review and PR Steward.
Hope it's useful!
在 X 查看被引用的帖子Introducing Claude Ship (beta): Claude can review your pull requests, work on fixes, and approve the ones your team's policy allows.
The goal is to help you ship code as fast as you can write it.
来源:Addy Osmani · x.com