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
46403788
Commit
46403788
authored
Dec 10, 2019
by
Paul Gascou-Vaillancourt
Committed by
Rémy Coutable
Dec 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consider :none as docs only change
parent
3832a8ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
danger/changelog/Dangerfile
danger/changelog/Dangerfile
+3
-3
No files found.
danger/changelog/Dangerfile
View file @
46403788
...
...
@@ -29,8 +29,8 @@ def ce_port_changelog?(changelog_path)
helper
.
ee?
&&
!
ee_changelog?
(
changelog_path
)
end
def
docs_only_change
?
helper
.
changes_by_category
.
keys
==
[
:docs
]
def
categories_need_changelog
?
(
helper
.
changes_by_category
.
keys
-
%i[docs none]
).
any?
end
def
check_changelog
(
path
)
...
...
@@ -59,7 +59,7 @@ def sanitized_mr_title
gitlab
.
mr_json
[
"title"
].
gsub
(
/^WIP: */
,
''
).
gsub
(
/`/
,
'\\\`'
)
end
changelog_needed
=
!
docs_only_change
?
&&
(
gitlab
.
mr_labels
&
NO_CHANGELOG_LABELS
).
empty?
changelog_needed
=
categories_need_changelog
?
&&
(
gitlab
.
mr_labels
&
NO_CHANGELOG_LABELS
).
empty?
changelog_found
=
git
.
added_files
.
find
{
|
path
|
path
=~
%r{
\A
(ee/)?(changelogs/unreleased)(-ee)?/}
}
if
git
.
modified_files
.
include?
(
"CHANGELOG.md"
)
...
...
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