From 6bb48db09da54c8e6e3691e8da13e22ff3ee377a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Coutable?= Date: Wed, 17 Apr 2019 17:49:34 +0200 Subject: Support files under .gitlab/ci/ in the reviewer roulette MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémy Coutable --- lib/gitlab/danger/helper.rb | 3 ++- spec/lib/gitlab/danger/helper_spec.rb | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/gitlab/danger/helper.rb b/lib/gitlab/danger/helper.rb index d347f3c13a4..d7b45cd2734 100644 --- a/lib/gitlab/danger/helper.rb +++ b/lib/gitlab/danger/helper.rb @@ -136,7 +136,8 @@ module Gitlab %r{\A(ee/)?spec/(?!javascripts|frontend)[^/]+} => :backend, %r{\A(ee/)?vendor/(?!assets)[^/]+} => :backend, %r{\A(ee/)?vendor/(languages\.yml|licenses\.csv)\z} => :backend, - %r{\A(Dangerfile|Gemfile|Gemfile.lock|Procfile|Rakefile|\.gitlab-ci\.yml)\z} => :backend, + %r{\A(Dangerfile|Gemfile|Gemfile.lock|Procfile|Rakefile)\z} => :backend, + %r{\A(\.gitlab-ci\.yml|\.gitlab/ci/.+)\z} => :backend, %r{\A[A-Z_]+_VERSION\z} => :backend, %r{\A(ee/)?db/} => :database, diff --git a/spec/lib/gitlab/danger/helper_spec.rb b/spec/lib/gitlab/danger/helper_spec.rb index 66cd8171c12..2416cfa6448 100644 --- a/spec/lib/gitlab/danger/helper_spec.rb +++ b/spec/lib/gitlab/danger/helper_spec.rb @@ -253,6 +253,7 @@ describe Gitlab::Danger::Helper do 'Procfile' | :backend 'Rakefile' | :backend '.gitlab-ci.yml' | :backend + '.gitlab/ci/global.gitlab-ci.yml' | :backend 'FOO_VERSION' | :backend 'ee/FOO_VERSION' | :unknown -- cgit v1.2.1