From 8193b2c71b8af9715e5b52f0043e759273879b7c Mon Sep 17 00:00:00 2001 From: Doug Stull <dstull@gitlab.com> Date: Wed, 29 Nov 2023 11:23:21 +0000 Subject: [PATCH] Do not perform check unless in CI and MR is not in draft - from feedback --- danger/rubocop/Dangerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/danger/rubocop/Dangerfile b/danger/rubocop/Dangerfile index 4113124169175..b43a1042bd511 100644 --- a/danger/rubocop/Dangerfile +++ b/danger/rubocop/Dangerfile @@ -1,5 +1,9 @@ # frozen_string_literal: true +# This is noisy for draft MRs, so let's ignore this cop in draft mode since we have +# rubocop watching this as well. +return if helper.draft_mr? + # Danger should not comment when inline disables are added in the following files. no_suggestions_for_extensions = %w[.md] -- GitLab