]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove 'Release notes' label check from dangerfile
authorPetr Špaček <pspacek@isc.org>
Thu, 22 Aug 2024 15:21:43 +0000 (17:21 +0200)
committerPetr Špaček <pspacek@isc.org>
Fri, 23 Aug 2024 07:38:27 +0000 (07:38 +0000)
This label is now handled automatically by 'merged-metadata' CI job.

dangerfile.py

index b3b84059c7b2329fc54277fb594a2e7a7a3b9ec2..d272dda236727554b978770df41d9c3001d6b628 100644 (file)
@@ -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