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
a4791192
Commit
a4791192
authored
Nov 28, 2019
by
Paul Gascou-Vaillancourt
Committed by
Rémy Coutable
Nov 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable changelog check on docs-only MRs
parent
71c398d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
danger/changelog/Dangerfile
danger/changelog/Dangerfile
+5
-1
No files found.
danger/changelog/Dangerfile
View file @
a4791192
...
...
@@ -29,6 +29,10 @@ def ce_port_changelog?(changelog_path)
helper
.
ee?
&&
!
ee_changelog?
(
changelog_path
)
end
def
docs_only_change?
helper
.
changes_by_category
.
keys
==
[
:docs
]
end
def
check_changelog
(
path
)
yaml
=
YAML
.
safe_load
(
File
.
read
(
path
))
...
...
@@ -55,7 +59,7 @@ def sanitized_mr_title
gitlab
.
mr_json
[
"title"
].
gsub
(
/^WIP: */
,
''
).
gsub
(
/`/
,
'\\\`'
)
end
changelog_needed
=
(
gitlab
.
mr_labels
&
NO_CHANGELOG_LABELS
).
empty?
changelog_needed
=
!
docs_only_change?
&&
(
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