Commit 5aab86fc authored by Lukas 'Eipi' Eipert's avatar Lukas 'Eipi' Eipert Committed by Lukas Eipert

Danger: Detect frontend within config dir

parent 9a58db06
...@@ -118,10 +118,9 @@ module Gitlab ...@@ -118,10 +118,9 @@ module Gitlab
\.haml-lint_todo.yml | \.haml-lint_todo.yml |
babel\.config\.js | babel\.config\.js |
jest\.config\.js | jest\.config\.js |
karma\.config\.js |
webpack\.config\.js |
package\.json | package\.json |
yarn\.lock | yarn\.lock |
config/.+\.js |
\.gitlab/ci/frontend\.gitlab-ci\.yml \.gitlab/ci/frontend\.gitlab-ci\.yml
)\z}x => :frontend, )\z}x => :frontend,
......
...@@ -175,9 +175,12 @@ describe Gitlab::Danger::Helper do ...@@ -175,9 +175,12 @@ describe Gitlab::Danger::Helper do
'spec/javascripts/foo' | :frontend 'spec/javascripts/foo' | :frontend
'spec/frontend/bar' | :frontend 'spec/frontend/bar' | :frontend
'vendor/assets/foo' | :frontend 'vendor/assets/foo' | :frontend
'babel.config.js' | :frontend
'jest.config.js' | :frontend 'jest.config.js' | :frontend
'package.json' | :frontend 'package.json' | :frontend
'yarn.lock' | :frontend 'yarn.lock' | :frontend
'config/foo.js' | :frontend
'config/deep/foo.js' | :frontend
'ee/app/assets/foo' | :frontend 'ee/app/assets/foo' | :frontend
'ee/app/views/foo' | :frontend 'ee/app/views/foo' | :frontend
......
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