-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-hooks.yaml
More file actions
25 lines (24 loc) Β· 940 Bytes
/
.pre-commit-hooks.yaml
File metadata and controls
25 lines (24 loc) Β· 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Hook definitions for repos that want to consume coily via pre-commit.
# `language: system` expects `coily` to be on PATH (typically via the
# coilysiren/homebrew-tap formula).
- id: coily-lint
name: coily lint .coily/coily.yaml
description: |
Enforce that every commands.<verb> in .coily/coily.yaml maps to
`make <verb>` with a matching Makefile target whose `## desc`
auto-help string equals the verb's description.
entry: coily lint
language: system
files: '^(\.coily/coily\.yaml|Makefile)$'
pass_filenames: false
- id: coily-trailer
name: coily audit-log trailer
description: |
Append `Audit-log:` trailers to the commit message. Pulls audit rows
bound to this repo (commit_scope == git toplevel) since the last commit
and writes one trailer line per row, capped at 20.
entry: coily git trailer-hook
language: system
stages: [prepare-commit-msg]
always_run: true
require_serial: true