Skip to content

Commit

Permalink
ci/lint: add Reapply to the no prefix whitelist
Browse files Browse the repository at this point in the history
You get a special award if you commit one of these.
  • Loading branch information
Dudemanguy committed Feb 15, 2024
1 parent bba3d28 commit fb7a822
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/lint-commit-msg.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def do_lint(commit_range: str) -> bool:

################################################################################

NO_PREFIX_WHITELIST = r"^Revert \"(.*)\"|^Release [0-9]|^Update VERSION$"
NO_PREFIX_WHITELIST = r"^Revert \"(.*)\"|^Reapply \"(.*)\"|^Release [0-9]|^Update VERSION$"

@lint_rule("Subject line must contain a prefix identifying the sub system")
def subsystem_prefix(body):
Expand Down Expand Up @@ -98,7 +98,7 @@ def no_merge(body):

@lint_rule("Subject line should be shorter than 72 characters")
def line_too_long(body):
revert = re.search(r"^Revert \"(.*)\"", body[0])
revert = re.search(r"^Revert \"(.*)\"|^Reapply \"(.*)\"", body[0])
return True if revert else len(body[0]) <= 72

@lint_rule("Prefix should not include C file extensions (use `vo_gpu: ...` not `vo_gpu.c: ...`)")
Expand Down

0 comments on commit fb7a822

Please sign in to comment.