Streamline GitHub pull request workflows with intelligent automation for creation, review, and merging.
bash
node scripts/create_pr.js --branch feature/new-api --title "Add new API endpoint" --template feature
bash
node scripts/monitor_pr.js --pr 123
Returns CI status, review status, and merge readiness.
bash
node scripts/auto_merge.js --repo owner/repo --conditions "ci_passed,reviews_approved"
bash
node scripts/batch_review.js --repo owner/repo --label "ready-for-review" --action approve
PR automation rules are defined in references/automation_rules.json:
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:
bash
gh auth status