Design a process where management can step in and approve a PR if others aren't available.
Use labels, files, and phased reviews to notify the right people at the right time.
Built around Git and GitHub, users can review with the native tools and personal workflows.
version: 3
pullapprove_conditions:
- condition: "'WIP' not in title and not draft"
unmet_status: pending
explanation: "Waiting to send reviews as PR is WIP"
groups:
management:
type: optional
reviewers:
teams: [management]
reviews:
request: 0
required: 1
reviewed_for: required
pricing:
conditions:
- "'management' not in groups.approved"
- "'templates/pricing.html' in files or 'app/models/pricing.py' in files"
reviewers:
teams: [finance]
reviews:
required: 1
infra:
conditions:
- "'management' not in groups.approved"
- "'*.tf' in files or '*terraform*' in files or 'infra' in labels"
reviewers:
teams: [infra]
reviews:
required: 1
docs:
conditions:
- "'management' not in groups.approved"
- "'infra' in groups.passing"
- "'*.md' in files or '*docs*' in files"
reviewers:
teams: [docs]
reviews:
required: 1