From 14148a343d68a73f953fb3a378f3f74332a70165 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Thu, 29 Feb 2024 18:43:36 +1100 Subject: [PATCH] fix: use for_all_tag_heads instead of latest_by_consumer_tag when fetching wip by branch --- lib/pact_broker/pacts/pacts_for_verification_repository.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pact_broker/pacts/pacts_for_verification_repository.rb b/lib/pact_broker/pacts/pacts_for_verification_repository.rb index 5c226812b..4f72dc455 100644 --- a/lib/pact_broker/pacts/pacts_for_verification_repository.rb +++ b/lib/pact_broker/pacts/pacts_for_verification_repository.rb @@ -230,7 +230,7 @@ def find_wip_pact_versions_for_provider_by_provider_branch(provider_name, provid wip_start_date = options.fetch(:include_wip_pacts_since) potential_wip_by_consumer_branch = PactPublication.for_provider(provider).created_after(wip_start_date).for_all_branch_heads - potential_wip_by_consumer_tag = PactPublication.for_provider(provider).created_after(wip_start_date).latest_by_consumer_tag + potential_wip_by_consumer_tag = PactPublication.for_provider(provider).created_after(wip_start_date).for_all_tag_heads log_debug_for_wip do log_pact_publications_from_query("Potential WIP pacts for provider branch #{provider_version_branch} created after #{wip_start_date} by consumer branch", potential_wip_by_consumer_branch)