Hi all, how can we pass a particular consumer tag ...
# pact-js
h
Hi all, how can we pass a particular consumer tag in the create-webhook command, so that whenever there is any consumer contract published to the broker with a certain tag, the webhook triggers the provider tests, thus enabling the provider to fetch the contract with that specific tag from the broker? How can we achieve this?
m
I don’t believe you can do that at the moment, or at least, you don’t set it up in the way you described: • Webhook guide: https://docs.pact.io/pact_broker/webhooks#introduction • These are the variables you can have in the webook template: https://github.com/pact-foundation/pact_broker/blob/master/lib/pact_broker/doc/views/webhooks.markdown#dynamic-variable-substitution You wouldn’t likely want to create a webhook for each tag, but you can have the webhook pass through the tag (see
${pactbroker.consumerVersionTags}
)
h
Yes Matt, I am looking for something like
${pactbroker.consumerVersionTags
this only, but how to pass this variable in the create-webhook command? Can you please share any example?