When you freeze a branch that uses GitHub’s merge queue, you expect nothing to merge until you unfreeze. There was a gap: a PR whose merge group was already being built when you froze could still merge.
What Was Happening
With the Push a status update to all PRs freeze method, a freeze updated the mergefreeze status on each open pull request. But a merge queue doesn’t merge the PR’s own commit. It merges a separate merge-group commit that GitHub creates when the PR enters the queue. That commit had already passed mergefreeze, and the freeze didn’t change it.
What’s Changed
A freeze now also updates mergefreeze on every merge-group commit already in the branch’s queue:
- Freeze: PRs already in the queue fail
mergefreeze, and GitHub removes them from the queue instead of merging them. - Unfreeze: merge groups get a passing status again, so a quick freeze and unfreeze doesn’t leave the queue stuck.
- Unfrozen PRs: PRs you’ve let through during a freeze keep their passing status.
Merge-queue entries are updated before regular PRs, because they’re the ones about to merge.
The Toggle a branch protection rule method wasn’t affected and hasn’t changed.
More Reliable Status Updates
GitHub has recently returned intermittent server errors when apps post statuses. Merge Freeze now retries merge queue status updates longer, up to about 16 minutes, which is well within GitHub’s default 60-minute merge queue timeout. Entries are much less likely to wait for a status that never arrives.
Questions?
See the GitHub merge queue docs or reach out at hello@mergefreeze.com.