Skip to content
Snippets Groups Projects
Unverified Commit 2cb63935 authored by Ash McKenzie's avatar Ash McKenzie
Browse files

Allow Danger to detect if running local

parent 86fa2fe1
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
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