From 59b9e4c5ee8126b0e39ca2d06e9398bf49fe23dc Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Thu, 27 Feb 2020 18:37:12 +1100 Subject: [PATCH] fix(webhooks): make consumer_version_tags an array when creating metadata for latest [tagged] pact --- lib/pact_broker/pacts/metadata.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pact_broker/pacts/metadata.rb b/lib/pact_broker/pacts/metadata.rb index f0f62101f..a5f469249 100644 --- a/lib/pact_broker/pacts/metadata.rb +++ b/lib/pact_broker/pacts/metadata.rb @@ -11,7 +11,7 @@ module Metadata def build_metadata_for_latest_pact(pact, selection_parameters) if selection_parameters[:tag] { - consumer_version_tags: selection_parameters[:tag], + consumer_version_tags: [selection_parameters[:tag]], consumer_version_number: pact.consumer_version_number } else