-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcog.toml
More file actions
41 lines (32 loc) · 681 Bytes
/
cog.toml
File metadata and controls
41 lines (32 loc) · 681 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
branch_whitelist = ["main"]
ignore_merge_commits = true
pre_bump_hooks = [
"cargo build --release",
"cargo clippy",
"cargo fmt --all",
"cargo set-version {{version}}",
]
post_bump_hooks = [
"git push",
"git push origin {{version}}",
]
[changelog]
template = "remote"
remote = "github.com"
owner = "cocogitto"
repository = "cocogitto-bot"
authors = [
{ signature = "Paul Delafosse", username = "oknozor" },
]
[git_hooks.commit-msg]
script = """#!/bin/sh
set -e
echo "[Check current commit message]"
cog verify --file $1
echo "[Conventional commit check]"
cog check
echo "[Format code]"
cargo fmt -v --all --check
echo "[Lints]"
cargo clippy
"""