Commit 97b87392 authored by Stan Hu's avatar Stan Hu

Merge branch 'ali/update-danger-label-for-feature-shared-examples' into 'master'

Danger bot: Apply test label for files related to feature specs

See merge request gitlab-org/gitlab!38804
parents 67e235bd 5bd7aa01
...@@ -172,9 +172,13 @@ module Gitlab ...@@ -172,9 +172,13 @@ module Gitlab
%r{\Atooling/} => :engineering_productivity, %r{\Atooling/} => :engineering_productivity,
%r{(CODEOWNERS)} => :engineering_productivity, %r{(CODEOWNERS)} => :engineering_productivity,
%r{\A(ee/)?spec/features/} => :test,
%r{\A(ee/)?spec/support/shared_examples/features/} => :test,
%r{\A(ee/)?spec/support/shared_contexts/features/} => :test,
%r{\A(ee/)?spec/support/helpers/features/} => :test,
%r{\A(ee/)?app/(?!assets|views)[^/]+} => :backend, %r{\A(ee/)?app/(?!assets|views)[^/]+} => :backend,
%r{\A(ee/)?(bin|config|generator_templates|lib|rubocop)/} => :backend, %r{\A(ee/)?(bin|config|generator_templates|lib|rubocop)/} => :backend,
%r{\A(ee/)?spec/features/} => :test,
%r{\A(ee/)?spec/} => :backend, %r{\A(ee/)?spec/} => :backend,
%r{\A(ee/)?vendor/} => :backend, %r{\A(ee/)?vendor/} => :backend,
%r{\A(Gemfile|Gemfile.lock|Rakefile)\z} => :backend, %r{\A(Gemfile|Gemfile.lock|Rakefile)\z} => :backend,
......
...@@ -225,6 +225,15 @@ RSpec.describe Gitlab::Danger::Helper do ...@@ -225,6 +225,15 @@ RSpec.describe Gitlab::Danger::Helper do
'ee/spec/foo' | [:backend] 'ee/spec/foo' | [:backend]
'ee/spec/foo/bar' | [:backend] 'ee/spec/foo/bar' | [:backend]
'spec/features/foo' | [:test]
'ee/spec/features/foo' | [:test]
'spec/support/shared_examples/features/foo' | [:test]
'ee/spec/support/shared_examples/features/foo' | [:test]
'spec/support/shared_contexts/features/foo' | [:test]
'ee/spec/support/shared_contexts/features/foo' | [:test]
'spec/support/helpers/features/foo' | [:test]
'ee/spec/support/helpers/features/foo' | [:test]
'generator_templates/foo' | [:backend] 'generator_templates/foo' | [:backend]
'vendor/languages.yml' | [:backend] 'vendor/languages.yml' | [:backend]
'vendor/licenses.csv' | [:backend] 'vendor/licenses.csv' | [:backend]
......
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