name: github-pr-automation description: 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.
Streamline GitHub pull request workflows with intelligent automation for creation, review, and merging.
发现更多技能插件,请访问7w4.net。
node scripts/create_pr.js --branch feature/new-api --title "Add new API endpoint" --template feature
node scripts/monitor_pr.js --pr 123
Returns CI status, review status, and merge readiness.
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 approve
PR automation rules are defined in 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"]
}
}
Store templates in references/pr_templates/:
feature.md - Feature PRsbugfix.md - Bug fixeshotfix.md - Urgent fixesdocs.md - Documentation updatesThis skill uses gh CLI for GitHub operations. Ensure it's installed and authenticated:
gh auth status
这是一款实用的 GitHub PR 管理工具,能帮助快速创建格式规范的 PR、自动分类标签、监控合并状态。操作简单,模板清晰。但功能还不够完整,缺少自动合并等高级特性,且文档描述的部分功能暂未实现,与实际使用可能存在预期差异。质量中规中矩,适合需要简化 PR 流程的用户使用,但建议等待版本完善后再投入生产环境。