We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 565d439 commit 145ac3eCopy full SHA for 145ac3e
Dangerfile
@@ -668,6 +668,16 @@ else
668
end
669
670
671
+commits = git.commits.size
672
+if commits > 1
673
+ warn(
674
+ "danger check: pull request contains #{commits} commits while most of the cases it should have only one.\n"\
675
+ "If it's not a special case you should squash commits into single one.\n"\
676
+ "You can read how to do it here: https://davidwalsh.name/squash-commits-git\n"\
677
+ "But be careful because **it can destroy** all your changes!"
678
+ )
679
+end
680
+
681
all_checks_passed = violation_report[:errors].empty? && violation_report[:warnings].empty? && violation_report[:messages].empty?
682
if all_checks_passed
683
message(
0 commit comments