-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcog.toml
More file actions
88 lines (69 loc) · 1.98 KB
/
cog.toml
File metadata and controls
88 lines (69 loc) · 1.98 KB
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
# Cocogitto Configuration
# https://docs.cocogitto.io/config/
# Branch whitelist - only allow releases from main
branch_whitelist = ["main"]
# Tag prefix for releases
tag_prefix = "v"
# Ignore merge commits in changelog
ignore_merge_commits = false
# Pre-bump hooks (run before version bump)
# pre_bump_hooks = [
# "cargo test",
# ]
# Post-bump hooks (run after version bump)
# These hooks update package.json versions across all microservices and frontend
post_bump_hooks = [
# Update frontend package.json
"cd frontend && npm version {{version}} --no-git-tag-version --allow-same-version",
# Update backend package.json files
"cd backend && npm version {{version}} --no-git-tag-version --allow-same-version",
# Stage all updated package.json files
"git add frontend/package.json backend/package.json",
]
# Changelog configuration
[changelog]
path = "CHANGELOG.md"
template = "remote"
remote = "github.com"
repository = "CaddyManager"
owner = "rhad00"
# Commit types that trigger version bumps
[commit_types]
[commit_types.feat]
changelog_title = "Features"
bump = "minor"
[commit_types.fix]
changelog_title = "Bug Fixes"
bump = "patch"
[commit_types.perf]
changelog_title = "Performance Improvements"
bump = "patch"
[commit_types.refactor]
changelog_title = "Code Refactoring"
bump = "patch"
[commit_types.docs]
changelog_title = "Documentation"
bump = "patch"
[commit_types.style]
changelog_title = "Styling"
bump = "patch"
[commit_types.test]
changelog_title = "Tests"
bump = "patch"
[commit_types.build]
changelog_title = "Build System"
bump = "patch"
[commit_types.ci]
changelog_title = "Continuous Integration"
bump = "patch"
[commit_types.chore]
changelog_title = "Miscellaneous Chores"
# Don't bump version for chore commits (like dependency updates)
omit_from_changelog = true
[commit_types.revert]
changelog_title = "Reverts"
bump = "patch"
# Breaking changes always trigger major version bump
[commit_types."BREAKING CHANGE"]
changelog_title = "BREAKING CHANGES"
bump = "major"