-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
cog.toml
47 lines (36 loc) · 855 Bytes
/
cog.toml
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
42
43
44
45
46
47
# A list of glob patterns describing branches on which semver bump are allowed
branch_whitelist = ["main"]
# Ignore merge commits from conventional commit checks
ignore_merge_commits = true
pre_bump_hooks = [
"cargo test",
"cargo clippy",
"cargo fmt --all",
"cargo set-version {{version}}",
"cargo build --release",
]
post_bump_hooks = [
"git push",
"git push origin {{version}}",
]
[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
"""
[changelog]
path = "CHANGELOG.md"
template = "remote"
remote = "github.com"
repository = "onagre"
owner = "onagre-launcher"
authors = [
{ signature = "Paul Delafosse", username = "oknozor" },
]