Skip to content
代码片段 群组 项目
未验证 提交 abca8975 编辑于 作者: Vasilii Iakliushin's avatar Vasilii Iakliushin 提交者: GitLab
浏览文件

Fix changelog tag detection logic

Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/437616

**Problem**

`ChangelogTagFinder` expected user to provide a version in semver
format (without v at the beginning). However, DEFAULT_TAG_REGEX allows
to use `v` at the start of the string.

As a result, `VersionSorter` cannot correctly sort versions and user
receives an error that the version is incorrect.

**Solution**

* Convert user specified version to format that `VersionSorter`
supports.
* Add test to verify that versions like `v1.0.0` are accepted.
* Update Changelog API documentation

Changelog: fixed
上级 076795b3
No related branches found
No related tags found
加载中
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册