lib/pact_broker/domain/pacticipant.rb in pact_broker-2.85.1 vs lib/pact_broker/domain/pacticipant.rb in pact_broker-2.86.0
- old
+ new
@@ -74,9 +74,13 @@
end
def branch_head_for(branch_name)
branch_heads.find{ | branch_head | branch_head.branch_name == branch_name }
end
+
+ def label?(name)
+ labels.any? { |label| label.name == name }
+ end
end
end
end
# Table: pacticipants