diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-04 00:07:49 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-04 00:07:49 +0000 |
commit | 9671f01956bb09cd2a5970c1e4c8e8aa6797ef18 (patch) | |
tree | cefd63c14fdb1248fa9424932639e40bafdf9275 /danger/changelog/Dangerfile | |
parent | 5e7ed643dca39625fcc7b0d0e9e15550f5a9f1f8 (diff) | |
download | gitlab-ce-9671f01956bb09cd2a5970c1e4c8e8aa6797ef18.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'danger/changelog/Dangerfile')
-rw-r--r-- | danger/changelog/Dangerfile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/danger/changelog/Dangerfile b/danger/changelog/Dangerfile index 62b41d14bee..8c010accd56 100644 --- a/danger/changelog/Dangerfile +++ b/danger/changelog/Dangerfile @@ -26,7 +26,7 @@ def check_changelog(path) fail "`title` should be set, in #{gitlab.html_link(path)}! #{SEE_DOC}" if yaml["title"].nil? fail "`type` should be set, in #{gitlab.html_link(path)}! #{SEE_DOC}" if yaml["type"].nil? - if yaml["merge_request"].nil? + if yaml["merge_request"].nil? && !helper.security_mr? message "Consider setting `merge_request` to #{gitlab.mr_json["iid"]} in #{gitlab.html_link(path)}. #{SEE_DOC}" elsif yaml["merge_request"] != gitlab.mr_json["iid"] && !changelog.ce_port_changelog?(path) fail "Merge request ID was not set to #{gitlab.mr_json["iid"]}! #{SEE_DOC}" |