How would you roll back a bad deploy that came from a merged PR?
IntermediateProductionBranch protection, rulesets, CODEOWNERS and review at scale
Answer
Revert on main with a PR (git revert -m 1 for merge commits, plain revert for squash), run the pipeline, and deploy; in parallel, if the deploy tool supports it, roll back the artifact to the previous digest to restore service faster than a pipeline. The revert PR then becomes the permanent fix record.
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