<#749 Add support for publishing pacts with branch...
# pact-js-development
g
#749 Add support for publishing pacts with branches Issue created by bethesque Feature description Support publishing pacts with branches and a build_url. This may not be necessary if the js "wrapper" bit of the publishing is being removed, but thought I'd raise it anyway for discussion. Use case See https://github.com/pact-foundation/docs.pact.io/blob/feat/deployments-and-releases/website/blog/2021-07-04-why-we-are-getting-rid-of-tags.md Details • To the user facing Pact API, add: • String
branch
• String
buildUrl
• Boolean
autoDetectVersionProperties
• Pass the new properties through to the pact-ruby-standalone publish command as: •
branch
as the
--branch
property •
buildUrl
as`--build-url` •
autoDetectVersionProperties
as
--auto-detect-version-properties
only if autoDetectVersionProperties is true • To verify that this is working: • publish a pact with a branch to a Pact Broker version 2.86.0+ • Open the index page • Click on the integration • You should see the pact that you have just published with a branch slug next to the consumer version number • The build URL is currently only used in the webhook - as long as you can see it being passed through to the CLI, this should be sufficient. pact-foundation/pact-js