Hey, following this documentation <https://docs.pa...
# general
l
Hey, following this documentation https://docs.pact.io/pact_broker/webhooks#example-cicd-and-webhook-configuration there seems to be an approach to providing a webhook that lets the CI know when to make a call to
can-i-deploy;
however, this approach only works when the
contract_requiring_verification_published
event is triggered. it there a way to call a webhook that lets CI call
can-i-deploy
when there is no change to a contract?
m
what are you trying to achieve? as in, what would be the event you want to trigger a
can-i-deploy
call on?
l
so on a verification result event, i would create a pending status in GitHub following this https://docs.pact.io/blog/2018/07/16/publishing-pact-verification-statuses-to-github and once can-i-deploy passes, i would set the status to complete. However im trying to figure out how to set up my CI when we want to skip the verification step. An example would be an event like
pact_not_changed
or something like that which is triggered when
contract_requiring_verification_published
is not
m
There isn’t an event that does the negative i.e. “pact content published but no change” The closest would be https://docs.pact.io/pact_broker/webhooks#the-contract-published-event