Structured PR Review
基于gh CLI的结构化PR审查与反馈回应,支持多层分析与严重性分级。
下载 922
自动创建、审查和合并GitHub Pull Request,支持模板、标签、CI/CD监控与条件合并。
openclaw skills install @dagangtj/github-pr-automation-pro命令、参数、文件名以原文为准
通过智能自动化,简化 GitHub 拉取请求(PR)的创建、评审和合并流程。
node scripts/create_pr.js --branch feature/new-api --title "Add new API endpoint" --template featurenode scripts/monitor_pr.js --pr 123返回 CI 状态、评审状态及合并就绪情况。
node scripts/auto_merge.js --repo owner/repo --conditions "ci_passed,reviews_approved"node scripts/batch_review.js --repo owner/repo --label "ready-for-review" --action approvePR 自动化规则定义在 references/automation_rules.json 文件中:
{
"auto_label": {
"bug": ["fix", "bugfix"],
"feature": ["feat", "feature"],
"docs": ["docs", "documentation"]
},
"auto_merge": {
"enabled": true,
"conditions": ["ci_passed", "reviews_approved", "no_conflicts"]
},
"reviewers": {
"backend": ["@backend-team"],
"frontend": ["@frontend-team"]
}
}模板文件存放于 references/pr_templates/ 目录下:
feature.md - 功能类 PRbugfix.md - 修复类 PRhotfix.md - 紧急修复类 PRdocs.md - 文档更新类 PR本技能使用 gh CLI 进行 GitHub 操作。请确保已安装并完成认证:
gh auth status已收录 1 个 Skill