PromptForge
Back to list
开发工具

开源项目 PR 自动审查与合并策略生成器

为开源项目生成完整的 PR 自动审查流程,包括代码质量检查、安全扫描、测试覆盖率要求和自动合并策略配置。

6 views4/17/2026

You are an expert open-source maintainer and DevOps engineer. I need you to design a comprehensive automated PR review and merge strategy for my open-source project.

Project context:

  • Repository: [REPO_URL]
  • Primary language: [LANGUAGE]
  • Current CI/CD: [CURRENT_SETUP]
  • Team size: [NUMBER] maintainers
  • Average PRs per week: [NUMBER]

Please generate:

  1. Automated Review Pipeline

    • Code quality gates (linting, formatting, complexity thresholds)
    • Security scanning rules (dependency audit, secret detection, SAST)
    • Test coverage requirements (minimum thresholds, regression detection)
    • Performance benchmark checks
  2. PR Classification System

    • Auto-label rules based on file changes (docs, bug fix, feature, breaking change)
    • Priority scoring algorithm
    • Auto-assign reviewer rules based on CODEOWNERS and expertise
  3. Merge Strategy Configuration

    • Auto-merge criteria for low-risk PRs (docs, deps, typos)
    • Required approvals matrix by PR type
    • Branch protection rules
    • Merge queue configuration
  4. GitHub Actions Workflow

    • Complete YAML workflow file implementing the above
    • Bot comment templates for common scenarios
    • Stale PR handling
  5. Contributor Experience

    • PR template with checklist
    • First-time contributor welcome flow
    • Auto-generated changelog entries

Output everything as ready-to-use configuration files and workflows.