Small change to pact v1.x to support publishing pacts with branches.
I was updating the pact-go-workshop and wanted to get it to the latest of pact-go v1, with the supported workflow of branches over tags, and recording deployments, over using tags for environments, before migrating over to pact-go v2.
Tested locally
🕙12:57:56 ❯ make publish
--- 📝 Publishing Pacts
go run consumer/client/pact/publish.go
Publishing Pact files to broker /Users/yousaf.nabi/dev/pact-foundation/pact-workshop-go/pacts test.pactflow.io
2024/01/19 12:58:33 [INFO] Updated GoAdminService version 1.0.0 with branch master
2024/01/19 12:58:33 [INFO] Pact successfully republished for GoAdminService version 1.0.0 and provider GoUserService with no content changes.
2024/01/19 12:58:33 [INFO] View the published pact at https://test.pactflow.io/pacts/provider/GoUserService/consumer/GoAdminService/version/1.0.0
2024/01/19 12:58:33 [INFO] Events detected: contract_published
2024/01/19 12:58:33 [INFO] No enabled webhooks found for the detected events
Pact contract publishing complete!
coverage: 77.323% (-0.07%) from 77.392%
when pulling 89ef96975af6781b62f1a81a4d31f27ead329f35 on feat/v1.x.x-publish-branch
into fcfa5c528a7bfddcc7b4166d701ec83497d88268 on v1.x.x.
Small change to pact v1.x to support publishing pacts with branches.
I was updating the pact-go-workshop and wanted to get it to the latest of pact-go v1, with the supported workflow of branches over tags, and recording deployments, over using tags for environments, before migrating over to pact-go v2.
Tested locally