Skip to content

Commit

Permalink
feat: add relation for can-i-deploy branch to environment badge
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Mar 4, 2022
1 parent 595e035 commit 6ece8e9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/pact_broker/api/decorators/pacticipant_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@ class PacticipantDecorator < BaseDecorator
}
end

link :'pb:can-i-deploy-branch-to-environment-badge' do | options |
{
title: "Can I Deploy #{represented.name} from branch to environment badge",
href: templated_can_i_deploy_branch_to_environment_badge_url(represented.name, options[:base_url]),
templated: true
}
end

curies do | options |
[{
name: :pb,
Expand Down

0 comments on commit 6ece8e9

Please sign in to comment.