Greg Tyler
06/15/2023, 10:21 AMcool-new-feature
. The provider verification checks it as a pending pact and finds it absolutely cannot comply. So, sadly, I close my branch. But the provider doesn’t know this, and on each build keeps trying to check if it can now match `cool-new-feature`’s interactions.
Can/should I tell Pact broker that the branch has closed and the pact doesn’t need verifying?
Should I be doing --include-wip-pacts-since={TODAY}
so it only looks at the most recently updated stuff?
Am I completely misusing pending/WIP pacts?Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Greg Tyler
06/15/2023, 11:39 AMTimothy Jones
06/15/2023, 12:34 PMGreg Tyler
06/15/2023, 1:45 PMMatt (pactflow.io / pact-js / pact-go)
Is there a documented way to do that? I’m imagining I need a GitHub Action that runs on branch/PR close (not merge) and sends an HTTP DELETE to the broker targeting all pacts tagged with that branch name?we would love to build an SCM integration for exactly this purpose - purge/delete dead branches based on closed PRs, deleted branches etc.
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
/pacts/provider/provider_name/consumer/:consumer_name/branch/:branch_name
But you should probably navigate to it using the HAL relations