mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-24 00:20:21 +00:00
028dad6e87
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`
23 lines
710 B
YAML
23 lines
710 B
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: meta-lint-ci
|
|
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
|
|
name: Running Meta/lint-ports.py to ensure changes will pass linting on CI
|
|
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
|