From 059b8dcd2af8da6eb6fbc9abec6edd25d19fc672 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9my=20Coutable?= <remy@rymai.me>
Date: Fri, 28 Jul 2023 13:03:04 +0200
Subject: [PATCH] Stop using a Danger rule that ships with gitlab-dangerfiles
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Rémy Coutable <remy@rymai.me>
---
 danger/z_metadata/Dangerfile | 19 -------------------
 1 file changed, 19 deletions(-)
 delete mode 100644 danger/z_metadata/Dangerfile

diff --git a/danger/z_metadata/Dangerfile b/danger/z_metadata/Dangerfile
deleted file mode 100644
index 1c36c02b69e5..000000000000
--- a/danger/z_metadata/Dangerfile
+++ /dev/null
@@ -1,19 +0,0 @@
-# frozen_string_literal: true
-
-# rubocop:disable Style/SignalException
-
-default_branch = ENV['CI_DEFAULT_BRANCH'] || 'main'
-
-if gitlab.mr_body.size < 5
-  fail "Please provide a proper merge request description."
-end
-
-unless gitlab.mr_json["assignee"]
-  warn "This merge request does not have any assignee yet. Setting an assignee clarifies who needs to take action on the merge request at any given time."
-end
-
-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
-- 
GitLab