Interview Prep/Git & GitHub/Protection, Hooks and Policy

You are the only maintainer, but the rule requires one approval. How do you work?

IntermediateScenarioProtection, Hooks and Policy
Answer

Situation read → A strict rule locks out a team of one.

What I'd do →

  1. Keep required checks and linear history; they still protect you.
  2. Set required approvals to 0 for a personal repo, or add a second trusted reviewer.
  3. If you need review for compliance, add an admin bypass restricted to PRs only.
  4. Use a bot or self-review checklist in the PR template.

Why → Control should match risk. A rule nobody can meet becomes a bypass habit.

Interview tip → GitHub does not let authors approve their own PRs.

All Git & GitHub questions Roadmap: Git & GitHub

More on Protection, Hooks and Policy