Hi all, question about can-i-deploy. Let's say I have consumer "c" with branch "foo" and provider "p". In the consumer CI pipeline, I would like to check that contract are compatible with the provider using the following logic:
1. IF there is a branch of the provider with matching name, I would like to verify the contract against that branch
2. Else, verify the contract against the main branch of the provider
Is there a way to do this with a single call to can-i-deploy? Or would I have to do it with two separate calls. (I believe the following two would work, using can-i-merge to verify against main branch of providers:)
pact-broker can-i-deploy
--pacticipant c --version ${GIT_COMMIT} \
--pacticipant p --branch foo \
pact-broker can-i-merge
--pacticipant c --version ${GIT_COMMIT} \