summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2024-02-15 09:43:57 -0600
committerDudemanguy <random342@airmail.cc>2024-02-15 09:54:48 -0600
commit31a5f77ceb833d308f8c23ac0549be9d412081bc (patch)
treeaacfa9cc893e5799cab663f81f3244da44869ef9 /ci
parentbba3d28781623ede635ecdde4af6126733e22877 (diff)
downloadmpv-31a5f77ceb833d308f8c23ac0549be9d412081bc.tar.bz2
mpv-31a5f77ceb833d308f8c23ac0549be9d412081bc.tar.xz
ci/lint: add Reapply to the no prefix whitelist
You get a special award if you commit one of these.
Diffstat (limited to 'ci')
-rwxr-xr-xci/lint-commit-msg.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ci/lint-commit-msg.py b/ci/lint-commit-msg.py
index 4198ed4feb..0bfad08a3a 100755
--- a/ci/lint-commit-msg.py
+++ b/ci/lint-commit-msg.py
@@ -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):
@@ -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: ...`)")