lib/pact_broker/badges/service.rb in pact_broker-2.63.0 vs lib/pact_broker/badges/service.rb in pact_broker-2.64.0

- old
+ new

@@ -31,12 +31,12 @@ status = badge_status(pseudo_branch_verification_status) color = badge_color(pseudo_branch_verification_status) build_shield_io_uri(title, status, color) end - def can_i_deploy_badge_url(pacticipant_name, tag, environment_tag, label, deployable) - title = label || "Can I deploy #{tag} #{pacticipant_name} to #{environment_tag}?" - status = deployable ? "yes" : "no" + def can_i_deploy_badge_url(tag, environment_tag, label, deployable) + title = label || "can-i-deploy" + status = "#{tag} to #{environment_tag}" color = deployable ? "brightgreen" : "red" build_shield_io_uri(title, status, color) end def error_badge_url(left_text, right_text)