Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2019-02-07 17:38:32 +0300
committerNick Thomas <nick@gitlab.com>2019-02-13 19:30:02 +0300
commit235fe67bdbc7f177a6f4b213bb1780f043944246 (patch)
tree21b43545030538c9efa50f4730339d78742de80d /danger/changelog
parentf034a352507f09aca1a656f2bbf88c8dd8af103b (diff)
Move the ee? helper method into the helper
Diffstat (limited to 'danger/changelog')
-rw-r--r--danger/changelog/Dangerfile6
1 files changed, 1 insertions, 5 deletions
diff --git a/danger/changelog/Dangerfile b/danger/changelog/Dangerfile
index 530c6638653..63b2f6f5c5c 100644
--- a/danger/changelog/Dangerfile
+++ b/danger/changelog/Dangerfile
@@ -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)