Problem Statement
What keeps main stable before a merge?
Explanation
Protect the branch with required checks and approvals. If any check fails, the merge is blocked.
This policy keeps main deployable at all times.
Code Solution
SolutionRead Only
Require: build, unit, lint, security to pass before merge
