Skip to content

Pull Request Guidelines

PRs are the primary mechanism for knowledge sharing, risk reduction, and maintaining consistency.


Size

Keep PRs small and focused. A PR should do one thing.

Large PRs are harder to review, harder to revert, and harder to understand.

If the scope grows while you work, stop and agree the new scope with the owner rather than extending the PR. Park side quests as their own issue.


Writing a Good PR

Every PR starts from an issue. If the organisation also uses a second tracker, the issue has a twin there and each links to the other.

The title follows Commit Message Standards, for example fix(ingest): keep records deleted at source out of the mart. With squash merges the title becomes the commit, so it is the changelog line.

The description, in this order:

  1. Closes #N, plus the link to the ticket in any second tracker
  2. Why the change is needed
  3. What changed
  4. How it was checked
  5. What was left out or not verified

Also:

  • Describe why the change is being made, not just what changed
  • Note anything the reviewer should pay particular attention to
  • Include screenshots or examples for UI or data changes

Reviewing a PR

Review intent before implementation — understand what the PR is trying to achieve before diving into the code.

Focus on: - Correctness — does it do what it claims? - Readability — will someone understand this in six months? - Security — are there any obvious vulnerabilities? - Testability — is the change tested appropriately? - Consistency — does it follow existing patterns?


Checklist for Reviewers

  • [ ] Validate code style is consistent
  • [ ] Tests exist and are meaningful
  • [ ] Data quality is considered (for data changes)
  • [ ] No hardcoded secrets or credentials
  • [ ] Documentation updated where needed

← Delivery Excellence ← Engineering Excellence