mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 07:19:59 -04:00
danger: update CHANGES rule to work with -S edition
When updating the -S edition, the CHANGES.SE file is modified. Make sure
danger accepts that.
(cherry picked from commit 1939e585c0)
This commit is contained in:
parent
e819d4f966
commit
bc1bc38731
1 changed files with 2 additions and 2 deletions
|
|
@ -286,7 +286,7 @@ elif not approved:
|
|||
# * The merge request adds a new CHANGES entry that is not a placeholder and
|
||||
# does not contain any GitLab/RT issue/MR identifiers.
|
||||
|
||||
changes_modified = "CHANGES" in modified_files
|
||||
changes_modified = "CHANGES" in modified_files or "CHANGES.SE" in modified_files
|
||||
no_changes_label_set = "No CHANGES" in mr_labels
|
||||
if not changes_modified and not no_changes_label_set:
|
||||
fail(
|
||||
|
|
@ -299,7 +299,7 @@ if changes_modified and no_changes_label_set:
|
|||
"Revert `CHANGES` modifications or unset the *No Changes* label."
|
||||
)
|
||||
|
||||
changes_added_lines = added_lines(target_branch, ["CHANGES"])
|
||||
changes_added_lines = added_lines(target_branch, ["CHANGES", "CHANGES.SE"])
|
||||
placeholders_added = lines_containing(changes_added_lines, "[placeholder]")
|
||||
identifiers_found = filter(changes_issue_or_mr_id_regex.search, changes_added_lines)
|
||||
if changes_added_lines:
|
||||
|
|
|
|||
Loading…
Reference in a new issue