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:
authorAsh McKenzie <amckenzie@gitlab.com>2019-08-27 11:05:50 +0300
committerAsh McKenzie <amckenzie@gitlab.com>2019-09-06 03:56:47 +0300
commit2cb6393595a68c0b3e3fd91b89339637d576baad (patch)
tree4fec971ba41f49a1e28d5b191408001341106541
parent86fa2fe1fdee8414f2938f16e364fe40b42d476d (diff)
Allow Danger to detect if running local
-rw-r--r--lib/gitlab/danger/helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/gitlab/danger/helper.rb b/lib/gitlab/danger/helper.rb
index 17ad07bfc0c..702c73e8e4d 100644
--- a/lib/gitlab/danger/helper.rb
+++ b/lib/gitlab/danger/helper.rb
@@ -38,8 +38,12 @@ module Gitlab
ENV['CI_PROJECT_NAME'] == 'gitlab-ee' || File.exist?('../../CHANGELOG-EE.md')
end
+ def gitlab_helper
+ gitlab if respond_to?(:gitlab)
+ end
+
def release_automation?
- gitlab.mr_author == RELEASE_TOOLS_BOT
+ gitlab_helper&.mr_author == RELEASE_TOOLS_BOT
end
def project_name