mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 06:55:30 +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:
@@ -331,31 +331,6 @@ elif not approved:
|
|||||||
"It should not be merged until it is 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
|
# RELEASE NOTES
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
Reference in New Issue
Block a user