github-automation
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGitHub Automation Skill
GitHub自动化技能
Purpose
用途
GitHub workflow automation, PR management, and repository coordination.
GitHub工作流自动化、PR管理及仓库协调。
When to Trigger
触发时机
- Creating pull requests
- Managing issues
- Setting up CI/CD workflows
- Code review automation
- Release management
- 创建拉取请求(PR)
- 管理问题(Issue)
- 设置CI/CD工作流
- 代码审查自动化
- 发布管理
Commands
命令
Create Pull Request
创建拉取请求
bash
gh pr create --title "feat: description" --body "## Summary\n..."bash
gh pr create --title "feat: description" --body "## Summary\n..."Review Code
代码审查
bash
npx claude-flow github review --pr 123bash
npx claude-flow github review --pr 123Manage Issues
管理问题
bash
npx claude-flow github issues list --state open
npx claude-flow github issues create --title "Bug: ..."bash
npx claude-flow github issues list --state open
npx claude-flow github issues create --title "Bug: ..."Setup Workflow
设置工作流
bash
npx claude-flow workflow create --template cibash
npx claude-flow workflow create --template ciRelease Management
发布管理
bash
npx claude-flow deployment release --version 1.0.0bash
npx claude-flow deployment release --version 1.0.0Agent Types
Agent类型
| Agent | Role |
|---|---|
| Pull request lifecycle |
| Automated code review |
| Issue management |
| Release automation |
| GitHub Actions |
| Agent | 角色 |
|---|---|
| 拉取请求生命周期管理 |
| 自动化代码审查 |
| 问题管理 |
| 发布自动化 |
| GitHub Actions管理 |
Best Practices
最佳实践
- Use conventional commits
- Require reviews before merge
- Run CI on all PRs
- Automate release notes
- 使用约定式提交
- 合并前需经过审查
- 对所有PR运行CI
- 自动化发布说明