Block a publish on failing contracts
Publishing a version can now be stopped by your Pact contracts. See block a publish on failing contracts.
- A new
contracts.publishPolicyin the deploy-gate policy sets what a failing contract does to a publish:off,warn(the default) orblock. - Under
block, a version whose can-i-deploy verdict is "not deployable" is refused. Force publish with a reason goes past it, and is recorded in the audit trail. - The publish dialog gains a Contracts card with the failing rows. A verification that is still missing shows as pending and never blocks.
GET …/versions/{tenant}/{project}/{revision}/contracts-publish-gatepreviews the result without publishing. OpenAPI 1.694.0.
Last updated: November 27, 2026
