Guys, why my webhook is always Not Run??? I change...
# general
j
Guys, why my webhook is always Not Run??? I changed the contract, and I can also manually kick off wehook, how come my webhook status is always Not Run? And it is not automatically triggered either. Anyone can give me some clue? Thanks in advance.
b
what event are you using for the webhook @Jay Li?
j
@Basu Silviu I am using contract_requiring_verification_published, but not sure why, webhook always not getting triggered, so frustrating lol
Actually thanks for your reminder:) I just changed it to contract_published, it works
b
you are welcome Jay 😉
m
If it wasn't firing before but is now, maybe it didn't need to fire in the first place? I.e. it didn't require verification?
y
https://docs.pact.io/pact_broker/webhooks#using-webhooks-with-the-contract_requiring_verification_published-event I would check the list of pre-reqs
Use of this webhook requires that:
• the provider's main branch is configured
• verification results are published with the branch property or you are tagging with the branch name and have automatic branch creation turned on (even if you use trunk based development, and only ever use one branch)
• the exact commit of a provider version can be determined from the version number used to publish the verification results (ie. it either is the commit, or contains the commit as per the Pact Broker version number guidelines)
• any deployments and releases are recorded using the `record-deployment` and `record-release` commands.