PRs pass CI but main breaks after merging. What process fix do you apply?
AdvancedProductionBranch protection, rulesets, CODEOWNERS and review at scale
Answer
This is a semantic merge conflict from two PRs that were each green against an older base. Turn on merge queue (or require branches to be up to date for critical repos), have the queue run the full required checks on the combined candidate, and make the merge_group trigger part of every required workflow. Track queue wait time so engineers do not circumvent it.
More on Branch protection, rulesets, CODEOWNERS and review at scale
What branch protection settings do you enable on `main` by default?BeginnerWhy do rulesets win over classic branch protection for an organisation?IntermediateHow do you roll out a new org-wide ruleset without breaking 300 repos?AdvancedHow do you protect release tags from being moved or deleted?IntermediateHow do you structure CODEOWNERS for a large org?IntermediateCODEOWNERS says three teams own a path but PRs stall waiting for any one of them. How do you fix it?Advanced