diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-23 03:12:50 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-23 03:12:50 +0300 |
commit | 04dabf41f65cf1c25d80d92b1cc5568bfcca80ee (patch) | |
tree | 4f9bc83d5f9683131c178f3048107ab16ba94d07 /danger | |
parent | f19ffffacda2d7f415f682f6e50e3cf06182e15e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'danger')
-rw-r--r-- | danger/z_metadata/Dangerfile | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/danger/z_metadata/Dangerfile b/danger/z_metadata/Dangerfile index 9140bb7d988..1c36c02b69e 100644 --- a/danger/z_metadata/Dangerfile +++ b/danger/z_metadata/Dangerfile @@ -17,9 +17,3 @@ has_milestone = !gitlab.mr_json["milestone"].nil? unless has_milestone || (helper.security_mr? && helper.mr_target_branch == default_branch) warn "This merge request does not refer to an existing milestone.", sticky: false end - -has_pick_into_stable_label = helper.mr_labels.find { |label| label.start_with?('Pick into') } - -if helper.mr_target_branch != default_branch && !has_pick_into_stable_label && !helper.security_mr? - warn "Most of the time, merge requests should target `#{default_branch}`. Otherwise, please set the relevant `Pick into X.Y` label." -end |