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 流程的使用者使用,但建議等待版本完善後再投入生產環境。