mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-22 10:10:06 +00:00
Remove 'Release notes' label check from dangerfile
This label is now handled automatically by 'merged-metadata' CI job.
This commit is contained in:
parent
edf0e6415a
commit
146743d5a3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user