Skip to content

Commit

Permalink
feat: add link to the pact content version
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Nov 19, 2020
1 parent 0be6e8e commit 8eefba5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/pact_broker/api/decorators/pact_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ def to_hash(options = {})
}
end

link :'pb:pact-version' do | options |
{
title: "Pact content version permalink",
name: represented.pact_version_sha,
href: pact_version_url(represented, options.fetch(:base_url))
}
end

link :'pb:latest-pact-version' do | options |
{
title: "Latest version of this pact",
Expand Down

0 comments on commit 8eefba5

Please sign in to comment.