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
6d69307d
Commit
6d69307d
authored
Jul 10, 2020
by
Marcel Amirault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update label automation to avoid docs linting changes
parent
0fdd4a31
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/gitlab/danger/helper.rb
lib/gitlab/danger/helper.rb
+1
-1
spec/lib/gitlab/danger/helper_spec.rb
spec/lib/gitlab/danger/helper_spec.rb
+1
-1
No files found.
lib/gitlab/danger/helper.rb
View file @
6d69307d
...
...
@@ -102,7 +102,7 @@ module Gitlab
}.
freeze
# First-match win, so be sure to put more specific regex at the top...
CATEGORIES
=
{
%r{
\A
doc/}
=>
:docs
,
%r{
\A
doc/
.*(
\.
(md|png|gif|jpg))
\z
}
=>
:docs
,
%r{
\A
(CONTRIBUTING|LICENSE|MAINTENANCE|PHILOSOPHY|PROCESS|README)(
\.
md)?
\z
}
=>
:docs
,
%r{
\A
(ee/)?app/(assets|views)/}
=>
:frontend
,
...
...
spec/lib/gitlab/danger/helper_spec.rb
View file @
6d69307d
...
...
@@ -167,7 +167,7 @@ RSpec.describe Gitlab::Danger::Helper do
describe
'#categories_for_file'
do
where
(
:path
,
:expected_categories
)
do
'doc/foo
'
|
[
:docs
]
'doc/foo
.md'
|
[
:docs
]
'CONTRIBUTING.md'
|
[
:docs
]
'LICENSE'
|
[
:docs
]
'MAINTENANCE.md'
|
[
:docs
]
...
...
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