Unfreezing Single PRs Through the API, Simplified

May 31, 2024

During a freeze, the branch API lets you let individual pull requests through with the unblocked_prs parameter. Until now, how that worked depended on the frozen parameter, and it was easy to get wrong.

What Was Confusing

Unblocking PRs only worked if you also sent frozen: true. If you sent frozen: false along with a list of PRs, Merge Freeze unfroze the whole branch instead of just those PRs.

What’s Changed

When you send unblocked_prs, Merge Freeze now only updates the PRs in the list. The branch stays frozen whatever you send for frozen, or if you leave it out.

curl -X POST "https://www.mergefreeze.com/api/branches/your-org/your-repo/main" \
  -d access_token=YOUR_TOKEN \
  -d "unblocked_prs=[1234, 1240]"
  • PRs in the list are let through.
  • PRs you let through earlier but left out of the list are frozen again.
  • To freeze or unfreeze the whole branch, send frozen without unblocked_prs.

PR numbers can be sent as numbers or as strings, such as "1234".

Questions?

See the web API docs or reach out at hello@mergefreeze.com.