GitHub PR Automation Pro

👤 dagangtj 📦 v1.0.0 ⭐ 4.1 ⬇️ 888 下载
💻 开发编程 免费

📖 技能介绍


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.


GitHub PR Automation

Streamline GitHub pull request workflows with intelligent automation for creation, review, and merging.

Features

  • Automated PR creation with templates
  • Smart labeling and assignment
  • CI/CD status monitoring
  • Auto-review and approval workflows
  • Conditional auto-merge
  • Batch PR operations
  • PR analytics and reporting

Quick Start

Create PR with Template

node scripts/create_pr.js --branch feature/new-api --title "Add new API endpoint" --template feature

Monitor PR Status

node scripts/monitor_pr.js --pr 123

Returns CI status, review status, and merge readiness.

Auto-merge Ready PRs

node scripts/auto_merge.js --repo owner/repo --conditions "ci_passed,reviews_approved"

Batch Review PRs

node scripts/batch_review.js --repo owner/repo --label "ready-for-review" --action approve

Configuration

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"]
  }
}

PR Templates

Store templates in references/pr_templates/:

小葱技能7w4.net持续更新中。

  • feature.md - Feature PRs
  • bugfix.md - Bug fixes
  • hotfix.md - Urgent fixes
  • docs.md - Documentation updates

GitHub CLI Integration

This skill uses gh CLI for GitHub operations. Ensure it's installed and authenticated:

gh auth status

Pricing

  • Free: Basic PR automation, 1 repository, manual triggers
  • Pro ($14.99/month): Unlimited repos, auto-triggers, advanced rules
  • Team ($49.99/month): Multi-team support, custom workflows, analytics

🤖 AI 评测

这是一款实用的 GitHub PR 管理工具,能帮助快速创建格式规范的 PR、自动分类标签、监控合并状态。操作简单,模板清晰。但功能还不够完整,缺少自动合并等高级特性,且文档描述的部分功能暂未实现,与实际使用可能存在预期差异。质量中规中矩,适合需要简化 PR 流程的用户使用,但建议等待版本完善后再投入生产环境。

📊 多维度评分

适应性3.9
规范性4.1
有效性4.1
可靠性3.9
可信度4.3

📁 包含文件 (7 个)

📄 SKILL.md 2.3 KB
📄 _meta.json 143 B
📄 references/automation_rules.json 899 B
📄 references/pr_templates/bugfix.md 398 B
📄 references/pr_templates/feature.md 877 B
📄 scripts/create_pr.js 3.2 KB
📄 scripts/monitor_pr.js 2.6 KB