mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
Meta: Add a post-commit commit message linter hook
This should help with getting commit messages tidy before they pass through CI's commit linter :^) For this hook to work pre-commit has to be explicitly installed via: `pre-commit install --hook-type commit-msg`
This commit is contained in:
committed by
Andreas Kling
parent
effdd76bb2
commit
028dad6e87
Notes:
sideshowbarker
2024-07-18 18:46:59 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/028dad6e87b Pull-request: https://github.com/SerenityOS/serenity/pull/6815
@@ -5,6 +5,7 @@ repos:
|
||||
name: Running Meta/lint-ci.sh to ensure changes will pass linting on CI
|
||||
entry: bash Meta/lint-ci.sh
|
||||
args: [ --no-ports ]
|
||||
stages: [ commit ]
|
||||
language: system
|
||||
|
||||
- id: meta-lint-ports
|
||||
@@ -12,4 +13,11 @@ repos:
|
||||
entry: Meta/lint-ports.py
|
||||
pass_filenames: false
|
||||
files: ^Ports/
|
||||
stages: [ commit ]
|
||||
language: system
|
||||
|
||||
- id: meta-lint-commit
|
||||
name: Lint commit message to ensure it will pass the commit linting on CI
|
||||
entry: Meta/lint-commit.sh
|
||||
stages: [ commit-msg ]
|
||||
language: system
|
||||
|
||||
Reference in New Issue
Block a user