Skip to content

fix(git-cliff-release): Improve behavior with no existing version tag#27

Merged
janbuchar merged 2 commits into
mainfrom
improve-default-git-cliff-release
Jun 5, 2026
Merged

fix(git-cliff-release): Improve behavior with no existing version tag#27
janbuchar merged 2 commits into
mainfrom
improve-default-git-cliff-release

Conversation

@janbuchar

Copy link
Copy Markdown
Contributor

git-cliff-release used 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.

@barjin barjin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, one quick idea that might make the change even cleaner ⬇️

Comment thread git-cliff-release/cliff.toml Outdated
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]+\\."

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this option help? https://git-cliff.org/docs/configuration/bump#initial_tag (it's set to 0.1.0 by default, see code)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, thanks!

@janbuchar janbuchar requested a review from barjin June 5, 2026 08:54

@barjin barjin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@janbuchar janbuchar merged commit 9d7631e into main Jun 5, 2026
3 checks passed
@janbuchar janbuchar deleted the improve-default-git-cliff-release branch June 5, 2026 11:14
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants