summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2019-02-27 10:52:19 +0000
committerNick Thomas <nick@gitlab.com>2019-02-27 10:52:19 +0000
commitf497c0f236fdb4714eade2054c48fa60f4d91791 (patch)
tree034ae28cf9fa369b305b31c491e44f14439d866a
parentb7a3c8f6404ba2890409e0e79697fa34354cf46e (diff)
downloadgitlab-ce-f497c0f236fdb4714eade2054c48fa60f4d91791.tar.gz
Danger ignores gitlab.pot
-rw-r--r--lib/gitlab/danger/helper.rb1
-rw-r--r--spec/lib/gitlab/danger/helper_spec.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/danger/helper.rb b/lib/gitlab/danger/helper.rb
index d3c86fdb629..d2b7ca015d4 100644
--- a/lib/gitlab/danger/helper.rb
+++ b/lib/gitlab/danger/helper.rb
@@ -123,6 +123,7 @@ module Gitlab
# Files that don't fit into any category are marked with :none
%r{\A(ee/)?changelogs/} => :none,
+ %r{\Alocale/gitlab\.pot\z} => :none,
# Fallbacks in case the above patterns miss anything
%r{\.rb\z} => :backend,
diff --git a/spec/lib/gitlab/danger/helper_spec.rb b/spec/lib/gitlab/danger/helper_spec.rb
index 00cb1e6446a..66cd8171c12 100644
--- a/spec/lib/gitlab/danger/helper_spec.rb
+++ b/spec/lib/gitlab/danger/helper_spec.rb
@@ -265,6 +265,7 @@ describe Gitlab::Danger::Helper do
'changelogs/foo' | :none
'ee/changelogs/foo' | :none
+ 'locale/gitlab.pot' | :none
'FOO' | :unknown
'foo' | :unknown