summaryrefslogtreecommitdiff
path: root/danger
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-10-28 12:08:40 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-10-28 12:08:40 +0000
commit24e7d185395af41290e5622cad160b7efe230145 (patch)
tree61c2c5d429caf996bb71c2b617273c04e7946218 /danger
parenta2ee63d924727701913f1fc9572f1182f40fda23 (diff)
downloadgitlab-ce-24e7d185395af41290e5622cad160b7efe230145.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'danger')
-rw-r--r--danger/documentation/Dangerfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/danger/documentation/Dangerfile b/danger/documentation/Dangerfile
index 37fad668521..240c374435c 100644
--- a/danger/documentation/Dangerfile
+++ b/danger/documentation/Dangerfile
@@ -5,7 +5,9 @@ def gitlab_danger
end
def feature_mr?
- (gitlab.mr_labels & %w[feature::addition feature::enhancement]).any?
+ return false unless helper.gitlab_helper&.mr_labels
+
+ (helper.gitlab_helper.mr_labels & %w[feature::addition feature::enhancement]).any?
end
DOCUMENTATION_UPDATE_MISSING = <<~MSG