开源项目 PR 自动审查与合并策略生成器
为开源项目生成完整的 PR 自动审查流程,包括代码质量检查、安全扫描、测试覆盖率要求和自动合并策略配置。
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.
如何使用这条提示词
- 1复制上方完整提示词。
- 2在对应模型中替换主题、人物或风格变量。
- 3生成后记录有效调整,形成自己的版本。


