Add check-dco hook: verify commit message Signed-off-by

This commit is contained in:
Ikalus1988 2026-06-13 14:11:45 +08:00
parent fa6b006f0e
commit e31319b3e3
3 changed files with 319 additions and 0 deletions

View file

@ -210,3 +210,14 @@
types: [text]
stages: [pre-commit, pre-push, manual]
minimum_pre_commit_version: 3.2.0
- id: check-dco
name: Check Developer Certificate of Origin (DCO)
description: >
Verifies that the commit message contains a valid
``Signed-off-by: Name <email>`` line per the
`Developer Certificate of Origin <https://developercertificate.org/>`__.
entry: check-dco
language: python
stages: [commit-msg]
minimum_pre_commit_version: 2.9.2