-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcog.toml
58 lines (51 loc) · 2.27 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
#:schema https://docs.cocogitto.io/cog-schema.json
ignore_merge_commits = true
branch_whitelist = ["master"]
tag_prefix = "v"
generate_mono_repository_global_tag = false
monorepo_version_separator = "-"
pre_package_bump_hooks = [
"gh auth status &> /dev/null || exit 1",
# Don't want to run all checks on every package bump, only relevant ones.
"nix develop --impure -c pre-commit run --all-files",
"nix build .#checks.x86_64-linux.{{package}}-clippy -L --allow-import-from-derivation --no-link",
"nix build .#checks.x86_64-linux.{{package}}-tests -L --allow-import-from-derivation --no-link",
"cargo set-version --package {{package}} {{version}}",
]
post_package_bump_hooks = [
"git push",
"git push origin --tags",
"$(git rev-parse --show-toplevel)/scripts/extract_changelog {{package}}-v{{version}} CHANGELOG.md 1> /tmp/{{package}}-v{{version}}_changelog.md",
"gh release create -R AMTSupport/tools --verify-tag -F /tmp/{{package}}-v{{version}}_changelog.md {{package}}-v{{version}}",
]
[changelog]
package_template = "package_remote"
template = "monorepo_remote"
remote = "github.com"
repository = "tools"
owner = "AMTSupport"
authors = [
{ username = "DaRacci", signature = "James Draycott" }
]
[commit_types]
feat = { changelog_title = "<!-- 0 -->⛰️ Features", bump_minor = true }
fix = { changelog_title = "<!-- 1 -->🐛 Bug Fixes", bump_patch = true }
refactor = { changelog_title = "<!-- 2 -->🚜 Refactor" }
doc = { changelog_title = "<!-- 3 -->📚 Documentation" }
perf = { changelog_title = "<!-- 4 -->⚡ Performance" }
style = { changelog_title = "<!-- 5 -->🎨 Styling" }
test = { changelog_title = "<!-- 6 -->🧪 Testing" }
ci = { changelog_title = "<!-- 7 -->🤖 CI Tasks" }
build = { changelog_title = "<!-- 8 -->🏗️ Build Tasks" }
chore = { changelog_title = "<!-- 9 -->⚙️ Miscellaneous Tasks" }
[packages]
amt-lib = { path = "crates/amt-lib" }
amt-macros = { path = "crates/amt-macros" }
obj-builder = { path = "crates/obj-builder" }
backup = { path = "crates/backup" }
country-ip = { path = "crates/country-ip" }
interfacer = { path = "crates/interfacer" }
memorable-pass = { path = "crates/memorable-pass" }
popup = { path = "crates/popup" }
rebooter = { path = "crates/rebooter" }
sys-cleaner = { path = "crates/sys-cleaner" }