Hi, is there a way to retrieve the version (git commit hash) of a provided tag on the provider side?
I have tagged “deployed-prod” on my provider for a specific old commit on Pact Broker and now I want to retrieve that commit hash so that I can build the provider from that commit hash to perform contract verification.
m
Matt (pactflow.io / pact-js / pact-go)
03/21/2024, 11:16 PM
Is there a reason you’re not using branches and environments?
Because we are using older version of pact and I believe it only supports tag. But it there a way to retrieve the version (git commit hash) of a provided tag on the provider side?
m
Matt (pactflow.io / pact-js / pact-go)
03/22/2024, 1:02 PM
What are you trying to actually achieve?
m
Marcus Hsu
03/22/2024, 3:18 PM
I have tagged “deployed-prod” on my provider for a specific old commit on Pact Broker and now I want to retrieve that commit hash so that I can build the provider from that commit hash to perform contract verification.
Marcus Hsu
03/22/2024, 3:19 PM
Just found that I can retrieve that info from pact-broker: /pacticipants/{some-provier}/latest-version/deployed-prod