diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-03 21:33:57 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-03 21:33:57 +0000 |
commit | b97109263112a40beefc758c360f3aa8c8848719 (patch) | |
tree | 67b88b8e974ccfef28ee991bf5803b998a03ccba /lib | |
parent | 739f6fecbf4faeac17024be1def340bf9636c235 (diff) | |
download | gitlab-ce-b97109263112a40beefc758c360f3aa8c8848719.tar.gz |
Add latest changes from gitlab-org/gitlab@12-6-stable-ee
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/danger/helper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gitlab/danger/helper.rb b/lib/gitlab/danger/helper.rb index cd7d617509b..90cef384a1b 100644 --- a/lib/gitlab/danger/helper.rb +++ b/lib/gitlab/danger/helper.rb @@ -174,6 +174,12 @@ module Gitlab labels - current_mr_labels end + def security_mr? + return false unless gitlab_helper + + gitlab_helper.mr_json['web_url'].include?('/gitlab-org/security/') + end + private def has_database_scoped_labels?(current_mr_labels) |