-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
cog.toml
64 lines (52 loc) · 1.77 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
tag_prefix = "v"
# Ignore merge commits from conventional commit checks
ignore_merge_commits = true
# A list of glob patterns describing branches on which semver bump are allowed
branch_whitelist = ["master", "main"]
# A list of command to run BEFORE creating a version.
# All change generated by those commands will be committed with the generated version commit.
# `{{version}}` will be interpretted as your target version
pre_bump_hooks = [
"echo {{version}}",
"npm --no-git-tag-version -f version v{{version}}",
]
# A list of command to run AFTER creating a version.
# `{{version}}` will be interpretted as your target version
post_bump_hooks = [
"git push",
"git push --tags",
# "gh release create {{version}} -d -t 'Version {{version}}' -n \"$(cog changelog -a v{{version}})\"",
]
# Shareable git-hooks, can be installed using `cog install-hook --all`
# or alternatively `cog install-hooks {commit_hook_type}
[git_hooks.commit-msg]
script = """#!/bin/sh
set -e
turbo format
# npx lint-staged --concurrent false
# turbo test
cog verify -i --file $1
"""
[git_hooks.pre-push]
script = """#!/bin/sh
if cog check -l -i; then
exit 0
fi
echo "Invalid commits were found, force push with '--no-verify'"
exit 1
"""
# "skip_ci" string that is appended to the end of the bump commit.
# It can also be specified using cog bump --skip-ci
# skip_ci = "[skip ci]"
# An optional list of additional allowed commit type
# `cog commit {commit_type}` commit command will be generated at runtime
[commit_types]
ex = { changelog_title = "This is the markdown title for `ex` commit type" }
[changelog]
path = "CHANGELOG.md"
template = "remote"
remote = "github.com"
repository = "spectacular"
owner = "xmlking"
authors = [{ username = "xmlking", signature = "Sumanth Chinthagunta" }]
[bump_profiles]