diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2019-08-27 11:05:50 +0300 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2019-09-06 03:56:47 +0300 |
commit | 2cb6393595a68c0b3e3fd91b89339637d576baad (patch) | |
tree | 4fec971ba41f49a1e28d5b191408001341106541 /lib/gitlab | |
parent | 86fa2fe1fdee8414f2938f16e364fe40b42d476d (diff) |
Allow Danger to detect if running local
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/danger/helper.rb | 6 |
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 |