-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
cog.toml
108 lines (84 loc) · 3.87 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ General ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~
# Type: `boolean: false` (optional)
# Whether to only consider commits since the latest SemVer tag.
from_latest_tag = true
# Type: `string` (optional)
# Set a tag prefix value for cocogitto. For instance if you have a `v` as a tag
# prefix, cocogitto will generate version starting with `v` and commands like
# `cog changelog` will pick only those versions.
tag_prefix = ""
# Type: `Array<String>` (optional)
# A list of glob patterns to allow bumping only on matching branches.
branch_whitelist = ["main"]
# Type: `boolean: false` (optional)
# Whether to ignore or to lint merge commits.
ignore_merge_commits = true
# ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ Bump Config ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~
# Type: `Array<String>` (optional)
# An array of command to execute before a version bump.
pre_bump_hooks = []
# Type: `Array<String>` (optional)
# An array of command to execute after a version bump.
post_bump_hooks = ["git push origin {{version}}", "git push"]
# Type: `String` (optional)
# A "skip-ci" string to add to the commits when using the bump or commit commands.
# Default value is `[skip ci]`.
# skip_ci = "[skip ci]"
# Type: `boolean: false` (optional)
# Allows to perform bump even if there are untracked or uncommited changes.
# skip_untracked = false
# Type: `boolean: false` (optional)
# Disable changelog generation when bumping.
# disable_changelog = false
# Type: `boolean: false` (optional)
# Cocogitto will not create a bump commit and will instead tag the latest commit.
# disable_bump_commit = false
# Type: `Hashmap<String, BumpProfile>` (optional)
# Add additional pre-bump and post-bump hooks profile. a profile can be used with
# the `cog bump --hook-profile <profile_name>` flag.
[bump_profiles]
# ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ Commit Types ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~
# Type: `Hashmap<String, CommitType>` (optional)
# Extend the allowed commit types, creating a new cog commit command, and allowing
# generation of changelog entries for the given type. Can also be used to override
# the default commit types.
#
# FIELDS:
# - `changelog_title` [string]: change changelog title for the given commit type.
# - `omit_from_changelog` [boolean: false] (optional): Do not generate changelog
# entries for the given commit type.
# - `bump_patch` [boolean: false] (optional): Commits of this type will bump the
# patch version of a tag.
# - `bump_minor` [boolean: false] (optional): Commits of this type will bump the
# minor version of a tag.
[commit_types]
chore = { changelog_title = "Misc", omit_from_changelog = true }
hotfix = { changelog_title = "Hotfixes" }
release = { changelog_title = "Releases" }
# ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ Changelog ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~
[changelog]
# Type: `string: "CHANGELOG.md"` (optional)
# Path the repository markdown changelog.
path = "CHANGELOG.md"
# Type: `string: "default"` (optional)
# Name of the builtin template to use for changelog generation or path to a custom
# template. Note that remote, repository and owner are mandatory if the `"remote"`
# built-in template us used or if your custom template make use of those variables.
#
# Built-in templates : `default`, `remote`, `full_hash`
template = "remote"
# Type: `string` (optional)
# Domain name of the git platform hosting the repository, used for Markdown link
# generation in changelogs. when provided repository and owner are also required.
remote = "github.com"
# Type: `string` (optional)
# Name of the repository on the remote git platform.
repository = "wezterm"
# Type: `string` (optional)
# Owner of the repository on the remote git platform.
owner = "sravioli"
# Type: `Array<Author>` (optional)
# A list of commit authors with their git signature and git platform username
# to generate Markdown links in changelogs.
authors = [{ signature = "Simone Fidanza", username = "sravioli" }]
[packages]