fix(git-cliff-release): Improve behavior with no existing version tag#27
Merged
Conversation
barjin
approved these changes
Jun 4, 2026
barjin
left a comment
Member
There was a problem hiding this comment.
lgtm, one quick idea that might make the change even cleaner ⬇️
Comment on lines
+105
to
+109
| # regex for matching git tags. | ||
| # The "v" prefix is optional so that the default first version (e.g. "0.1.0"), | ||
| # which git-cliff generates without a prefix when there are no existing tags, | ||
| # still validates against the pattern. | ||
| tag_pattern = "v?[0-9]+\\." |
Member
There was a problem hiding this comment.
Would this option help? https://git-cliff.org/docs/configuration/bump#initial_tag (it's set to 0.1.0 by default, see code)
Contributor
Author
There was a problem hiding this comment.
Nice catch, thanks!
fnesveda
pushed a commit
that referenced
this pull request
Jun 23, 2026
🤖 I have created a release *beep* *boop* --- ## [1.3.0](v1.2.0...v1.3.0) (2026-06-05) ### Features * enhance MongoDB index checker with detailed sharding guidelines and common patterns ([#25](#25)) ([ebbf103](ebbf103)) * extend MongoDB index-check prompt with six more review patterns ([#21](#21)) ([8bab229](8bab229)) * PR title check action ([#24](#24)) ([28507c2](28507c2)) * Update model version from claude-opus-4-7 to claude-opus-4-8 ([#26](#26)) ([f4bd7c9](f4bd7c9)) ### Bug Fixes * **git-cliff-release:** Improve behavior with no existing version tag ([#27](#27)) ([9d7631e](9d7631e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
git-cliff-releaseused to fail on repositories with no pre-existing tags that match the version conventions (vX.Y.Z), which is not great for setting up new repositories. This fixes that.