-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprek.toml
More file actions
21 lines (21 loc) · 669 Bytes
/
Copy pathprek.toml
File metadata and controls
21 lines (21 loc) · 669 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[[repos]]
repo = "local"
hooks = [
{
id = "commit-msg-lint",
name = "conventional commit check",
language = "system",
entry = "bash -c 'commit_msg=$(cat \"$1\"); echo \"$commit_msg\" | head -1 | grep -qE \"^(feat|fix|docs|style|refactor|perf|test|chore|ci)(\\(.+\\))?(!)?: .{1,72}\" || { echo \"ERROR: Commit message does not follow Conventional Commits format.\"; exit 1; }' --",
stages = ["commit-msg"],
always_run = true,
pass_filenames = false,
},
{
id = "pre-commit-checks",
name = "pre-commit quality checks",
language = "system",
entry = "ralphi check",
always_run = true,
pass_filenames = false,
},
]