SfSkills Domains Docs GitHub

Home / devops / pr-policy-templates

pr-policy-templates

Enforce change quality via PR templates, required reviews, metadata ownership, and automated checks. NOT for branching model selection — use agentforce/agentforce-prompt-versioning.

Open the skill folder on GitHub


Pull Request Policy Templates

A consistent PR template + CODEOWNERS + required checks shifts quality left. This skill defines a template with sections for scope, test evidence, deploy plan, and risk; a CODEOWNERS matching metadata types to owning teams; and branch-protection rules requiring status checks (validation deploy, test run, scan).

Adoption Signals

Teams >3 people; regulated or production-critical repos.

  1. Write .github/pull_request_template.md with Scope, Test Evidence, Deploy Plan, Rollback, and Risk sections.
  2. Create .github/CODEOWNERS mapping force-app/main/default/flows/ to @flow-team, classes/ to @apex-team, etc.
  3. Enable branch protection: require PR + 1 review + all required checks green + CODEOWNERS approval.
  4. Wire required status checks: validation deploy, Apex test run ≥75%, PMD/Checkmarx scan.
  5. Quarterly: audit merged PRs; measure cycle time and revert rate; tune policy.

Key Considerations

Worked Examples (see references/examples.md)

Common Gotchas (see references/gotchas.md)

Top LLM Anti-Patterns (full list in references/llm-anti-patterns.md)

Official Sources Used

Package files