Supporting mulitple "LTS mission" versions #1873
-
|
I'm in a situation where my repo needs to branch into multiple "LTS" lines of support/development. After a mission is launched, I create a support branch (ie I already have a pipeline which automatically runs My idea was to change the tag format on the support branches to So far it's actually working pretty well, first problem is that the incremental changelog updates are being put at the bottom of the changelog and each bump add another copy entire copy of the changes after the support branch branched off main. Any ideas how to fix that? This very well could be a terrible idea and if there is an existing convention I'd love to hear about it. Example---
config:
logLevel: debug
theme: 'base'
gitGraph:
showBranches: true
showCommitLabel: true
parallelCommits: true
themeVariables:
git0: '#50B973'
git1: '#74baff'
git2: '#ffcb5e'
git3: '#ba79cc'
git4: '#74baff'
git5: '#74baff'
git6: '#ba79cc'
---
gitGraph
commit tag: "1.2.3" id: "fix: bug 1"
branch "support/a"
checkout main
commit tag: "1.2.4" id: "fix: bug 2"
branch "support/b"
checkout main
commit tag: "1.3.0" id: "feat: feat 1"
commit tag: "1.4.0" id: "feat: feat 2"
commit tag: "1.5.0" id: "feat: feat 3"
checkout "support/a"
commit tag: "1.2.4-A" id: "fix: bug 1 on A"
commit tag: "1.3.0-A" id: "feat: feat 1 on A"
checkout "support/b"
commit tag: "1.3.0-B" id: "feat: feat 1 on B"
commit tag: "1.4.0-B" id: "feat: feat 3 on B"
.cz.toml on main [tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version"
version_scheme = "semver2"
version_provider = "cmake-provider"
update_changelog_on_bump = true
template = ".config/CHANGELOG.md.j2".cz.toml on support/a [tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version-A"
version_scheme = "semver2"
version_provider = "cmake-provider"
update_changelog_on_bump = true
template = ".config/CHANGELOG.md.j2"CHANGELOG.md.j2 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
For anyone who stumbles upon this later, using This might still be a bad 🤷 |
Beta Was this translation helpful? Give feedback.
For anyone who stumbles upon this later, using
tag_format = "$version+Ainstead of-Aand settinglegacy_tag_versions = [ "$version" ]fixed the issue.This might still be a bad 🤷