Skip to content

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
Screenshot_2024-03-01_at_11.14.30 Screenshot_2024-03-01_at_11.10.20

How to set up and validate locally

  1. Enable feature flag Feature.enabled?(:update_changelog_logic)
  2. Visit http://gdk.test:3000/api/v4/projects/3/repository/changelog?version=v13.10.1
  3. Visit http://gdk.test:3000/api/v4/projects/3/repository/changelog?version=13.10.1
  4. The version header should not start with v
Edited by Vasilii Iakliushin

Merge request reports