hi. I have general question about can-i-deploy. W...
# general
i
hi. I have general question about can-i-deploy. When I run command like:
pact-broker can-i-deploy --pacticipant my-consumer --version 123
it understands that
my-consumer
depends on
my-provider
and is looking for verifications performed agains latests version of
my-provider
but I don't need verifications agains latest version (which is last commit to repository) instead I need verifications with latest main branch version, so is there a way to change such behaviour? I could write can-i-deploy check explicitly like:
pact-broker can-i-deploy --pacticipant my-consumer --version 123 --pacticipant my-provider --branch main
but it means that I need write all dependencies and their branches as part of command which leads to creating script with retrieving all needed participants names from pacts and their main branch names from git and just then generate proper command.
y
there will be a warning printed to your console telling you that you should have an environment in your command for can-i-deploy. You might find can-i-merge suitable
i
not sure how I missed
can-i-merge
command, it looks exactly what I'm asking about, thanks a lot 🙇