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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
235fe67b
Commit
235fe67b
authored
Feb 07, 2019
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the ee? helper method into the helper
parent
f034a352
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
danger/changelog/Dangerfile
danger/changelog/Dangerfile
+1
-5
danger/plugins/helper.rb
danger/plugins/helper.rb
+5
-0
No files found.
danger/changelog/Dangerfile
View file @
235fe67b
...
...
@@ -16,16 +16,12 @@ consider adding any of the %<labels>s labels.
#{
SEE_DOC
}
MSG
def
ee?
ENV
[
'CI_PROJECT_NAME'
]
==
'gitlab-ee'
||
File
.
exist?
(
'../../CHANGELOG-EE.md'
)
end
def
ee_changelog?
(
changelog_path
)
changelog_path
=~
/unreleased-ee/
end
def
ce_port_changelog?
(
changelog_path
)
ee?
&&
!
ee_changelog?
(
changelog_path
)
helper
.
ee?
&&
!
ee_changelog?
(
changelog_path
)
end
def
check_changelog
(
path
)
...
...
danger/plugins/helper.rb
View file @
235fe67b
...
...
@@ -31,6 +31,11 @@ module Danger
.
sort
end
# @return [Boolean]
def
ee?
ENV
[
'CI_PROJECT_NAME'
]
==
'gitlab-ee'
||
File
.
exist?
(
'../../CHANGELOG-EE.md'
)
end
# @return [Hash<String,Array<String>>]
def
changes_by_category
all_changed_files
.
inject
(
Hash
.
new
{
|
h
,
k
|
h
[
k
]
=
[]
})
do
|
hsh
,
file
|
...
...
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