Commit 2cb63935 authored by Ash McKenzie's avatar Ash McKenzie

Allow Danger to detect if running local

parent 86fa2fe1
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment