One policy decides what a breaking change does to your pull request
A breaking change in a pull request now leaves a comment naming the teams granted the operation it affects. Whether that comment is advice or a gate comes from one setting in your organisation's governance policy — and changing it re-decides pull requests that are already open.
A check that fails tells you to worry. A check that fails and names who it breaks tells you what to do next. That comment is now posted on the pull request, and whether it blocks the merge is one setting, in one place.
It is the breaking-change section of your organisation’s governance policy — the same policy that already decides what may be published. Nothing in the repository can change it, which is the point: a gate an admin sets should not be something anyone with commit access can remove by adding a line to a file.
- Three modes.
Offreports nothing.Warnreports in full without blocking.Blockfails the check, which — combined with a required status check — is what stops the merge. Warnis the default, so an organisation that has never configured governance does not meet Spec0 by finding its merge button red. Nothing is hidden inWarn: every finding is still annotated and still commented on.- You can change your mind on a pull request that is already open. The policy is read each time the check runs, so switch to
Warn, re-run the check, and a blocked pull request stops being blocked — the comment rewrites itself to say the finding does not block merging. No commit, and no new pull request. - A deliberate break is still accepted with a label, which keeps every annotation and records who decided.
- If the policy cannot be read, the finding is reported and the gate is dropped rather than failing your pull request. An outage on our side should not turn your work red.
The comment
One comment per pull request, edited in place on every push, so three pushes leave one comment showing where things stand rather than three showing how they got there. It names consumers by the grants they hold on the exact operation that changed, and says plainly how many other consumers of the same API are unaffected.
It knows at the endpoint, not the field: if a change touches one property of a response, it names the teams granted that operation rather than the subset reading that property. And it says nothing at all when there is nothing to say — a pull request that changes a watched spec without producing a finding gets no comment, and one that touches no spec is not checked in the first place.
Read more in the GitHub checks guide and Governance.
Also
- Spec0’s own site states the problem in terms of microservices rather than mechanism, asks about a pilot once instead of twice, and fits a phone screen.
