Allow Danger to detect if running local
This commit is contained in:
parent
86fa2fe1fd
commit
2cb6393595
1 changed files with 5 additions and 1 deletions
|
@ -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…
Reference in a new issue