Skip to content

Commit 2a4e562

Browse files
Monkeypactleveque69
authored andcommitted
chore(validator): support git reapply syntax
Since https://git-scm.com/docs/git-revert/2.43.0, when reverting a revert, git names the commit "Reapply" rather than "Revert revert".
1 parent f541708 commit 2a4e562

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

validator.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ readonly JIRA_FOOTER_PATTERN="^(${JIRA_PATTERN} ?)+$"
1313
readonly JIRA_HEADER_PATTERN="^.*[^A-Z](${JIRA_PATTERN}).*$"
1414
readonly BROKE_PATTERN="^BROKEN:$"
1515
readonly TRAILING_SPACE_PATTERN=" +$"
16-
readonly REVERT_HEADER_PATTERN="^[R|r]evert[: ].*$"
16+
readonly REVERT_HEADER_PATTERN="^[R|r](evert|apply)[: ].*$"
1717
readonly REVERT_COMMIT_PATTERN="^This reverts commit ([a-f0-9]+)"
1818
readonly TEMP_HEADER_PATTERN="^(fixup!|squash!).*$"
1919

0 commit comments

Comments
 (0)