diff options
Diffstat (limited to 'lib/gitlab/danger')
-rw-r--r-- | lib/gitlab/danger/commit_linter.rb | 2 | ||||
-rw-r--r-- | lib/gitlab/danger/helper.rb | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/lib/gitlab/danger/commit_linter.rb b/lib/gitlab/danger/commit_linter.rb index 7b01db125a9..2e469359bdc 100644 --- a/lib/gitlab/danger/commit_linter.rb +++ b/lib/gitlab/danger/commit_linter.rb @@ -191,7 +191,7 @@ module Gitlab end def subject_starts_with_lowercase? - first_char = subject.sub(/\A\[.+\]\s/, '')[0] + first_char = subject.sub(/\A(\[.+\]|\w+:)\s/, '')[0] first_char_downcased = first_char.downcase return true unless ('a'..'z').cover?(first_char_downcased) diff --git a/lib/gitlab/danger/helper.rb b/lib/gitlab/danger/helper.rb index 783a5f1715c..89f21e8bd23 100644 --- a/lib/gitlab/danger/helper.rb +++ b/lib/gitlab/danger/helper.rb @@ -168,7 +168,7 @@ module Gitlab %r{\A(\.gitlab-ci\.yml\z|\.gitlab\/ci)} => :engineering_productivity, %r{\A\.codeclimate\.yml\z} => :engineering_productivity, - %r{\A\.overcommit\.yml\.example\z} => :engineering_productivity, + %r{\Alefthook.yml\z} => :engineering_productivity, %r{\A\.editorconfig\z} => :engineering_productivity, %r{Dangerfile\z} => :engineering_productivity, %r{\A(ee/)?(danger/|lib/gitlab/danger/)} => :engineering_productivity, @@ -190,7 +190,7 @@ module Gitlab %r{\A(ee/)?vendor/} => :backend, %r{\A(Gemfile|Gemfile.lock|Rakefile)\z} => :backend, %r{\A[A-Z_]+_VERSION\z} => :backend, - %r{\A\.rubocop(_todo)?\.yml\z} => :backend, + %r{\A\.rubocop((_manual)?_todo)?\.yml\z} => :backend, %r{\Afile_hooks/} => :backend, %r{\A(ee/)?qa/} => :qa, @@ -200,6 +200,9 @@ module Gitlab %r{\Alocale/gitlab\.pot\z} => :none, %r{\Adata/whats_new/} => :none, + # GraphQL auto generated doc files and schema + %r{\Adoc/api/graphql/reference/} => :backend, + # Fallbacks in case the above patterns miss anything %r{\.rb\z} => :backend, %r{( |