Chris
03/27/2024, 10:26 PMcan-i-merge
with monorepos, where that monorepo contains consumers and providers, and each consumer & provider has its own build pipeline? Our usual pattern is for work to be done on both ends out of the one branch. The problem comes when we run can-i-merge
on the the answer is always no because the provider work (part of the same branch) is not yet merged to the main branch.Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
The problem comes when we runI assume you meant âthe consumerâ? If so, do you really need to use theon the theâŚcan-i-merge
can-i-merge
check? That seems less relevant, given the code is always in the same branch.
can-i-merge
is a relatively new command, one of the use cases it was created for was PactFlowâs BDCT featureChris
03/28/2024, 6:35 AMChris
03/28/2024, 6:40 AMYousaf Nabi (pactflow.io)
Chris
04/02/2024, 2:44 AMcontract-requiring-verification-published
broker webhook setup and run can-i-merge with the retry-while-unknown
flags.
Is there an endpoint on the broker I can call/curl to get compatibility results for a consumer & producer pair for a particular version or branch? (apologies if you've already documented this).
If this exists then I could alternatively check that the PR works against main or that the PR works against itself.Chris
04/04/2024, 4:42 AMChris
04/04/2024, 5:32 AMpact_version_sha
required for calls to this? https://github.com/pact-foundation/pact_broker/blob/master/lib/pact_broker/api.rb#L48C1-L49C1Yousaf Nabi (pactflow.io)
curl <http://localhost:9292/pacts/provider/Example%20API> | jq '._links|."pb:pacts"
curl <http://localhost:9292/pacts/provider/Example%20API/consumer/Example%20App/version/5556b8149bf8bac76bc30f50a8a2dd4c22c85f30> | jq '._links|."pb:latest-verification-results"'
curl <http://localhost:9292/pacts/provider/Example%20API/consumer/Example%20App/pact-version/cc79bbc141aa53a4fd45d155d705cbb243dec4b6/verification-results/latest> | jq .
Yousaf Nabi (pactflow.io)
Chris
04/04/2024, 10:39 PM