orhun / git-cliff

A highly customizable Changelog Generator that follows Conventional Commit specifications ⛰️
https://git-cliff.org
Apache License 2.0
8.23k stars 165 forks source link

Defining Pre-Release Versions: Beta, Alpha, RC, and Version Bumping (`--bump`) #692

Closed bukowa closed 2 weeks ago

bukowa commented 3 weeks ago

Is there an existing issue or pull request for this?

Feature description

Releasing beta, RC (release candidate), or alpha versions is a common standard practice, especially when we want to test the entire build system. Sometimes these releases help ensure that the build scripts execute correctly and provide users with a preview version (e.g., a beta version), which is essentially complete but still in testing.

Sometimes, releasing a release candidate is necessary to verify the functionality of build scripts. It would be beneficial to standardize this process, allowing for the automatic generation of changelogs for these versions and their subsequent integration into the main release. Combining this with version bumping, while maintaining logical and configurable control, would be highly advantageous.

Desired solution

Simple idea for bumping:

git-cliff --bump-beta
git-cliff --bump-alpha
git-cliff --bump-rc

No simple idea for changelogs but see :

This doesn't seem so straightforward as everyone has their standards and this somehow should be customizable?

Alternatives considered

Manual bumping.

Additional context

Given the variety of standards used by different projects, it would be beneficial to provide customizable configuration keys for tags like rc, alpha, and beta. This would allow users to tailor the versioning system to their specific requirements.

bump_beta = ...<format>
bump_alpha = ...<format>

OR


[rc]
header = "Release Candidate Changes"
label = "RC"
# Configuration for alpha versions
[alpha]
header = "Alpha Version Changes"
label = "Alpha"
# Configuration for beta versions
[beta]
header = "Beta Version Changes"
label = "Beta"
bukowa commented 2 weeks ago

It's not so easy for ex release-please from google issue regarding this: https://github.com/googleapis/release-please/pull/2051

I just tried to release tauri app but automatic build fails because wix does not support anything other than numbers in version https://github.com/tauri-apps/tauri/issues/5286#issuecomment-1259235117