We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65ee22c commit 4a398dcCopy full SHA for 4a398dc
Dangerfile
@@ -686,6 +686,13 @@ if commits > 1
686
end
687
688
689
+if github.branch_for_head !~ /^gh[0-9]+_/
690
+ warn("danger check: branch '#{github.branch_for_head}' does not comply with our best practices.\n"\
691
+ "Branch name should use the following scheme: `ghXXX_meaningful-name` where `XXX` is an issue number.\n"\
692
+ "Next time, please, use this scheme :)"
693
+ )
694
+end
695
+
696
all_checks_passed = violation_report[:errors].empty? && violation_report[:warnings].empty? && violation_report[:messages].empty?
697
if all_checks_passed
698
message(
0 commit comments