mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-18 00:26:11 -04:00
Merge branch 'tkrizek/danger-improvements' into 'main'
danger: refine existing rules See merge request isc-projects/bind9!7428
This commit is contained in:
commit
837da85ef7
1 changed files with 5 additions and 4 deletions
|
|
@ -127,8 +127,9 @@ for commit in danger.git.commits:
|
|||
if (
|
||||
len(message_lines) < 3
|
||||
and "fixup! " not in subject
|
||||
and " CHANGES " not in subject
|
||||
and " release note" not in subject
|
||||
and "CHANGES " not in subject
|
||||
and "release note" not in subject.lower()
|
||||
and "GL #" not in subject
|
||||
):
|
||||
warn(f"Please write a log message for commit {commit.sha}.")
|
||||
for line in message_lines[2:]:
|
||||
|
|
@ -288,7 +289,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(
|
||||
|
|
@ -301,7 +302,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