Skip to content

Commit

Permalink
fix: use for_all_tag_heads instead of latest_by_consumer_tag when fet…
Browse files Browse the repository at this point in the history
…ching wip by branch
  • Loading branch information
bethesque committed Feb 29, 2024
1 parent 871209e commit 14148a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact_broker/pacts/pacts_for_verification_repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 14148a3

Please sign in to comment.