orhun / git-cliff

A highly customizable Changelog Generator that follows Conventional Commit specifications ⛰️
https://git-cliff.org
Apache License 2.0
9.08k stars 192 forks source link

Commits are not sort topologically using Git Flow (hotfix, releases) #585

Open ambroisemaupate opened 6 months ago

ambroisemaupate commented 6 months ago

Is there an existing issue for this?

Description of the bug

Commit are still not sorted topologically when dealing with multiple branches workflows such as Git-flow. Unreleased commits are included in Changelog versions becauses they are earlier than the release

PR: https://github.com/orhun/git-cliff/pull/415 Issues #38 and #188

Steps To Reproduce

Initialize a repository with Git Flow:

Use

# sort the tags topologically
topo_order = true

Expected behavior

All 3 commits from Manuel Odelain must be included in unreleased section, not in 1.2.11 version

Actual output:

# Changelog

All notable changes to project will be documented in this file.

## 1.2.11- 2024-03-28

### Bug Fixes

- **(VTopBar)** Fixed grid layout for more space for main menu - (cdcda2f) - Ambroise Maupate

### Styling

- **(form)** fix input / select disabled state - (0648046) - Manuel Odelain
- **(reservation)** fix placeholder text indent - (cbb5c15) - Manuel Odelain
- **(select)** fix border regression - (ff9a1aa) - Manuel Odelain
- Improved rental email layout for Mobile - (34fafd7) - Ambroise Maupate

## 1.2.10 - 2024-03-28

### Bug Fixes

- Force email images to have white background when they are transparent  - Ambroise Maupate

Theses commits were not in 1.2.11 hotfix ! And should be in unreleased section or in next 1.2.12 release

- **(form)** fix input / select disabled state - (0648046) - Manuel Odelain
- **(reservation)** fix placeholder text indent - (cbb5c15) - Manuel Odelain
- **(select)** fix border regression - (ff9a1aa) - Manuel Odelain

Expected output:

# Changelog

All notable changes to project will be documented in this file.

## Unreleased

### Styling

- **(form)** fix input / select disabled state - (0648046) - Manuel Odelain
- **(reservation)** fix placeholder text indent - (cbb5c15) - Manuel Odelain
- **(select)** fix border regression - (ff9a1aa) - Manuel Odelain

## 1.2.11- 2024-03-28

### Bug Fixes

- **(VTopBar)** Fixed grid layout for more space for main menu - (cdcda2f) - Ambroise Maupate

### Styling

- Improved rental email layout for Mobile - (34fafd7) - Ambroise Maupate

## 1.2.10 - 2024-03-28

### Bug Fixes

- Force email images to have white background when they are transparent  - Ambroise Maupate

Screenshots / Logs

image

Software information

Additional context

No response

welcome[bot] commented 6 months ago

Thanks for opening your first issue at git-cliff! Be sure to follow the issue template! ⛰️

ambroisemaupate commented 6 months ago

If I ask git-cliff to only output the current release it works:

git cliff --current

# Changelog

All notable changes to project will be documented in this file.

## Unreleased

### Styling

- **(form)** fix input / select disabled state - (0648046) - Manuel Odelain
- **(reservation)** fix placeholder text indent - (cbb5c15) - Manuel Odelain
- **(select)** fix border regression - (ff9a1aa) - Manuel Odelain
ambroisemaupate commented 4 months ago

Related to #498