Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5aab86fc
Commit
5aab86fc
authored
Feb 14, 2020
by
Lukas 'Eipi' Eipert
Committed by
Lukas Eipert
Mar 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Danger: Detect frontend within config dir
parent
9a58db06
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
lib/gitlab/danger/helper.rb
lib/gitlab/danger/helper.rb
+1
-2
spec/lib/gitlab/danger/helper_spec.rb
spec/lib/gitlab/danger/helper_spec.rb
+3
-0
No files found.
lib/gitlab/danger/helper.rb
View file @
5aab86fc
...
...
@@ -118,10 +118,9 @@ module Gitlab
\.
haml-lint_todo.yml |
babel
\.
config
\.
js |
jest
\.
config
\.
js |
karma
\.
config
\.
js |
webpack
\.
config
\.
js |
package
\.
json |
yarn
\.
lock |
config/.+
\.
js |
\.
gitlab/ci/frontend
\.
gitlab-ci
\.
yml
)
\z
}x
=>
:frontend
,
...
...
spec/lib/gitlab/danger/helper_spec.rb
View file @
5aab86fc
...
...
@@ -175,9 +175,12 @@ describe Gitlab::Danger::Helper do
'spec/javascripts/foo'
|
:frontend
'spec/frontend/bar'
|
:frontend
'vendor/assets/foo'
|
:frontend
'babel.config.js'
|
:frontend
'jest.config.js'
|
:frontend
'package.json'
|
:frontend
'yarn.lock'
|
:frontend
'config/foo.js'
|
:frontend
'config/deep/foo.js'
|
:frontend
'ee/app/assets/foo'
|
:frontend
'ee/app/views/foo'
|
:frontend
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment