Fix the position of the version header in changelog
What does this MR do and why?
Contibutes to #437616 (closed)
Problem
!144738 (merged) allowed
users to provide version with v
at the beginning. However, the
changelog generator was not adapted to accept it.
As a result, it couldn't correctly position a new version header in CHANGELOG.md file.
Solution
Remove the prefix v
from the version name.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
- Enable feature flag
Feature.enabled?(:update_changelog_logic)
- Visit http://gdk.test:3000/api/v4/projects/3/repository/changelog?version=v13.10.1
- Visit http://gdk.test:3000/api/v4/projects/3/repository/changelog?version=13.10.1
- The version header should not start with
v
Edited by Vasilii Iakliushin