Skip to content

chore(ci): Claude Code 全自动 PR + 自动合并 - #2

Merged
mrhy7176 merged 3 commits into
masterfrom
chore/claude-automerge
Oct 29, 2026
Merged

mrhy7176 merged 3 commits into
masterfrom
chore/claude-automerge

Conversation

@mrhy7176

Copy link
Copy Markdown
Owner

安装/更新 Claude Code GitHub Action 全自动流程:

  • .github/workflows/claude.yml:mrhy7176 在 issue 里 @claude → Claude 改代码、跑现有测试、自己 gh pr create 并 gh pr merge --squash --delete-branch,在 issue 里回报 PR 链接和合并结果;handoff job 在 Claude 跑完后把分支交给兜底流程。
  • .github/workflows/claude-automerge.yml:兜底。对 claude/issue-* / claude/pr-* 分支、作者为 claude[bot] / mrhy7176 / github-actions[bot] 的 PR,等其它检查通过后 squash 合并并删分支;Claude 没开 PR 时补开。

仓库设置:开启 delete_branch_on_merge;允许 GitHub Actions 创建 PR(兜底补开 PR 需要)。不改其它文件。

@mrhy7176
mrhy7176 merged commit c41c5c1 into master Oct 29, 2026
1 check passed
@mrhy7176
mrhy7176 deleted the chore/claude-automerge branch October 29, 2026 05:35
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