2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Remove 'No CHANGES' check from dangerfile

This label is now handled automatically by 'merged-metadata' CI job.

(cherry picked from commit edf0e6415a)
This commit is contained in:
Petr Špaček
2024-08-22 17:17:15 +02:00
parent 19fd63b15b
commit 23cd27689b

View File

@@ -331,31 +331,6 @@ elif not approved:
"It should not be merged until it is approved."
)
###############################################################################
# Changelog entries
###############################################################################
#
# FAIL if any of the following is true:
#
# * The merge request title doesn't produce a changelog entry, but it does not have
# the "No CHANGES" label set.
#
# * The merge request title produces a changelog entry, but it has the "No CHANGES"
# label set.
changes_modified = mr_title_audience in ["usr", "pkg", "dev"]
no_changes_label_set = "No CHANGES" in mr_labels
if not changes_modified and not no_changes_label_set:
fail(
"MR title doesn't produce a new changelog entry. "
"Add a `dev:`|`usr:`|`pkg:` audience to MR title or set the *No CHANGES* label."
)
if changes_modified and no_changes_label_set:
fail(
"MR title produces a new changelog entry. Unset the *No Changes* label "
"or remove the `dev:`|`usr:`|`pkg:` audience from the MR title."
)
###############################################################################
# RELEASE NOTES
###############################################################################