This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit dd6ae3e02412021e016983cc52c242c35e2d7ab1
Author:     Jun Zhao <[email protected]>
AuthorDate: Mon Feb 23 10:03:39 2026 +0800
Commit:     Jun Zhao <[email protected]>
CommitDate: Thu Jun 18 10:35:27 2026 +0000

    .forgejo/pre-commit: add local commit-msg hook
    
    Register check_commit_msg.sh as a commit-msg stage hook in the
    pre-commit configuration so developers get immediate feedback
    on commit message format during `git commit`.
    
    Signed-off-by: Jun Zhao <[email protected]>
---
 .forgejo/pre-commit/config.yaml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/.forgejo/pre-commit/config.yaml b/.forgejo/pre-commit/config.yaml
index 2b9ae5d133..39473d36fe 100644
--- a/.forgejo/pre-commit/config.yaml
+++ b/.forgejo/pre-commit/config.yaml
@@ -1,5 +1,14 @@
 exclude: ^tests/ref/
 
+# This repository keeps its pre-commit config in this nondefault path.
+# Install hooks from here with:
+#   pre-commit install -c .forgejo/pre-commit/config.yaml
+# The command above installs both the pre-commit and commit-msg hooks because
+# default_install_hook_types includes them below.
+default_install_hook_types:
+  - pre-commit
+  - commit-msg
+
 repos:
 - repo: https://github.com/pre-commit/pre-commit-hooks
   rev: v5.0.0
@@ -20,6 +29,12 @@ repos:
     - id: trailing-whitespace
 - repo: local
   hooks:
+    - id: check-commit-message
+      name: validate commit message format
+      language: script
+      entry: ./tools/check_commit_msg.sh
+      stages: [commit-msg]
+      always_run: true
     - id: arm-asm-indent
       name: fix arm/aarch64 assembly indentation
       files: ^.*/(arm|aarch64)/.*\.S$

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to