Skip to content

Commit

Permalink
chore: add url for pacts by tag
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Dec 1, 2020
1 parent b87ea70 commit 551507d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/pact_broker/api/pact_broker_urls.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ def pact_versions_url consumer_name, provider_name, base_url = ""
"#{base_url}/pacts/provider/#{url_encode(provider_name)}/consumer/#{url_encode(consumer_name)}/versions"
end

def tagged_pact_versions_url consumer_name, provider_name, tag, base_url = ""
"#{base_url}/pacts/provider/#{url_encode(provider_name)}/consumer/#{url_encode(consumer_name)}/tag/#{url_encode(tag)}"
end

def integration_url consumer_name, provider_name, base_url = ""
"#{base_url}/integrations/provider/#{url_encode(provider_name)}/consumer/#{url_encode(consumer_name)}"
end
Expand Down

0 comments on commit 551507d

Please sign in to comment.