Automate GitHub pull request workflows including creation, review, merging, and monitoring. Handles PR templates, auto-labeling, CI/CD integration, and review automation. Use when users need to create PRs with proper formatting and templates, automate PR reviews and approvals, monitor PR status and CI checks, auto-merge PRs based on conditions, batch process multiple PRs, or track PR metrics and performance.
通过智能自动化简化 GitHub 拉取请求工作流程,涵盖创建、审查和合并。
bash
node scripts/create_pr.js --branch feature/new-api --title 添加新 API 端点 --template feature
bash
node scripts/monitor_pr.js --pr 123
返回 CI 状态、审查状态及合并就绪情况。
bash
node scripts/automerge.js --repo owner/repo --conditions cipassed,reviews_approved
bash
node scripts/batch_review.js --repo owner/repo --label ready-for-review --action approve
PR 自动化规则定义在 references/automation_rules.json 中:
json
{
auto_label: {
bug: [fix, bugfix],
feature: [feat, feature],
docs: [docs, documentation]
},
auto_merge: {
enabled: true,
conditions: [cipassed, reviewsapproved, no_conflicts]
},
reviewers: {
backend: [@backend-team],
frontend: [@frontend-team]
}
}
将模板存储在 references/pr_templates/ 目录中:
本技能使用 gh CLI 执行 GitHub 操作。请确保已安装并完成身份验证:
bash
gh auth status
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 github-pr-automation-pro-1776193684 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 github-pr-automation-pro-1776193684 技能
skillhub install github-pr-automation-pro-1776193684
文件大小: 6.02 KB | 发布时间: 2026-4-17 14:56