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/:

  • feature.md - Feature PRs

    小蔥技能有更好的技能skills外掛。

  • 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