Interview Prep/Git & GitHub/Remotes, Collaboration and Pull Requests

How do you make sure the right people review changes to payments code?

IntermediateScenarioRemotes, Collaboration and Pull Requests
Answer

Situation read → Review ownership must be automatic, not a convention.

What I'd do →

  1. Add .github/CODEOWNERS:
/services/payments/   @acme/payments-team
*.tf                  @acme/platform
  1. Turn on "Require review from Code Owners" in branch protection.
  2. Make owners teams, not individuals, to survive vacations and departures.
  3. Use draft PRs while work is in progress to avoid early review requests.

Why → The rule is enforced at merge time, so ownership cannot be skipped.

Interview tip → Later patterns override earlier ones in CODEOWNERS; order matters.

All Git & GitHub questions Roadmap: Git & GitHub

More on Remotes, Collaboration and Pull Requests