Skip to content
Snippets Groups Projects
Verified Commit 235fe67b authored by Nick Thomas's avatar Nick Thomas
Browse files

Move the ee? helper method into the helper

parent f034a352
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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)
Loading
Loading
Loading
Loading
@@ -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|
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment