From 146743d5a3163adffbd69523a776046ec622e6ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0pa=C4=8Dek?= Date: Thu, 22 Aug 2024 17:21:43 +0200 Subject: [PATCH] Remove 'Release notes' label check from dangerfile This label is now handled automatically by 'merged-metadata' CI job. --- dangerfile.py | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/dangerfile.py b/dangerfile.py index b3b84059c7..d272dda236 100644 --- a/dangerfile.py +++ b/dangerfile.py @@ -364,15 +364,8 @@ elif not approved: # linked with the `Closes` or `Fixes` keyword in the MR description. release_notes_changed = mr_title_audience in ["usr", "pkg"] -release_notes_label_set = "Release Notes" in mr_labels if not release_notes_changed: - if release_notes_label_set: - fail( - "This merge request has the *Release Notes* label set. " - "Update the MR title to include `usr:`|`pkg:` audience or " - "unset the *Release Notes* label." - ) - elif "Customer" in mr_labels: + if "Customer" in mr_labels and not release_notes_changed: warn( "This merge request has the *Customer* label set. " "Update the MR title to include `usr:`|`pkg:` audience " @@ -388,20 +381,6 @@ if not release_notes_changed: "means that it adds support for a new RR type or removes support " "for an existing one. Update the MR title to include `usr:` audience." ) -if release_notes_changed and not release_notes_label_set: - fail( - "The MR title produces a release note. Set the *Release Notes* label " - "or remove the `usr:`|`pkg:` audience from the MR title." - ) -if ( - release_notes_label_set - and no_changes_label_set - and not ("Documentation" in mr_labels or "Release" in mr_labels) -): - fail( - "This merge request is labeled with both *Release notes* and *No CHANGES*. " - "A user-visible change should also be mentioned in the changelog." - ) if release_notes_changed and not mr_issue_link_regex.search( danger.gitlab.mr.description