diff --git a/lib/pact_broker/api/decorators/pacticipant_decorator.rb b/lib/pact_broker/api/decorators/pacticipant_decorator.rb index 5b24dba8f..546c5b10f 100644 --- a/lib/pact_broker/api/decorators/pacticipant_decorator.rb +++ b/lib/pact_broker/api/decorators/pacticipant_decorator.rb @@ -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,