New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow consumer version tags to be specified for webhooks #224
Comments
@bethesque Do you think it should like this? {
"consumer": {
"name": "Bar",
"tags": "a_tag", "another_tag"
},
"events": [{
"name": "contract_content_changed"
}],
"request": {
}
}
} Or, if the consumer name is not specified: {
"consumer": {
"tags": "a_tag", "another_tag"
},
"events": [{
"name": "contract_content_changed"
}],
"request": {
}
}
} Or perhaps it should be limited to one tag? |
@bethesque This is exactly the feature I'm looking for so that I can have a webhook per feature branch triggering the corresponding provider build (on the same feature branch, if it exists) hence keeping the master build green and at the same time giving a feedback on the CI pipeline when working on a new version of the Pact. |
I started on this, and got blocked by some issues with a dependency. It's not high on the list, so I would recommend having an intermediate build in the meantime where you can perform this logic and trigger the right downstream build. |
Thanks @bethesque, at the moment I'm triggering a provider build on the same feature branch as the consumer bypassing webhooks completely. |
It hasn't been a high priority because there is a work around of creating an intermediate build from which you can trigger a downstream build with the right tags. You're right that it is highly desirable to put it in the broker. I'm afraid I haven't had much time to code recently, but I will see if it can be one of the first things I pick up when I have more space. |
Thank you very much for your answer @bethesque, looking forward for this feature! |
This would only trigger a webhook if the changed pact belonged to a consumer version with the specified tag.
The text was updated successfully, but these errors were encountered: