A branch is a named development stream that associates Pact artifacts with related code changes. In a pull-request workflow, it prevents a provider from verifying an unfinished consumer contract against unrelated provider changes. section 10.2.2 section 10.5
Matching consumer and provider work
A WebConsumer feature branch publishes a contract distinct from the contract merged to main. MoviesAPI then verifies the contract from the matching branch as well as the main-branch contract, avoiding false failures while both teams develop the same feature. section 10.2.2
Configure branches in a CI/CD workflow by:
- Use the same branch name when consumer and provider teams collaborate on one feature. section 10.5





