Commit 4ba00f14 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch '267599-adjust-the-minimum-word-count-danger-rule' into 'master'

Allow commit messages with less than 3 words (Danger will only warn about it now)

See merge request gitlab-org/gitlab!45259
parents 72546b19 450fd03e
......@@ -127,7 +127,7 @@ def warn_or_fail_commits(failed_linters, default_to_fail: true)
Array(failed_linters).each do |linter|
linter.problems.each do |problem_key, problem_desc|
case problem_key
when :subject_above_warning
when :subject_too_short, :subject_above_warning
warn_commit(linter.commit, problem_desc)
else
self.__send__("#{level}_commit", linter.commit, problem_desc) # rubocop:disable GitlabSecurity/PublicSend
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment