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
fc6cbcbb
Commit
fc6cbcbb
authored
Feb 21, 2019
by
Winnie Hellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spec/frontend/ to frontend roulette
parent
3de4c8d0
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
+2
-2
spec/lib/gitlab/danger/helper_spec.rb
spec/lib/gitlab/danger/helper_spec.rb
+2
-0
No files found.
lib/gitlab/danger/helper.rb
View file @
fc6cbcbb
...
...
@@ -106,13 +106,13 @@ module Gitlab
%r{
\A
(ee/)?app/(assets|views)/}
=>
:frontend
,
%r{
\A
(ee/)?public/}
=>
:frontend
,
%r{
\A
(ee/)?spec/
javascripts
/}
=>
:frontend
,
%r{
\A
(ee/)?spec/
(javascripts|frontend)
/}
=>
:frontend
,
%r{
\A
(ee/)?vendor/assets/}
=>
:frontend
,
%r{
\A
(jest
\.
config
\.
js|package
\.
json|yarn
\.
lock)
\z
}
=>
:frontend
,
%r{
\A
(ee/)?app/(?!assets|views)[^/]+}
=>
:backend
,
%r{
\A
(ee/)?(bin|config|danger|generator_templates|lib|rubocop|scripts)/}
=>
:backend
,
%r{
\A
(ee/)?spec/(?!javascripts)[^/]+}
=>
:backend
,
%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
,
...
...
spec/lib/gitlab/danger/helper_spec.rb
View file @
fc6cbcbb
...
...
@@ -217,6 +217,7 @@ describe Gitlab::Danger::Helper do
'app/views/foo'
|
:frontend
'public/foo'
|
:frontend
'spec/javascripts/foo'
|
:frontend
'spec/frontend/bar'
|
:frontend
'vendor/assets/foo'
|
:frontend
'jest.config.js'
|
:frontend
'package.json'
|
:frontend
...
...
@@ -225,6 +226,7 @@ describe Gitlab::Danger::Helper do
'ee/app/assets/foo'
|
:frontend
'ee/app/views/foo'
|
:frontend
'ee/spec/javascripts/foo'
|
:frontend
'ee/spec/frontend/bar'
|
:frontend
'app/models/foo'
|
:backend
'bin/foo'
|
:backend
...
...
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