Added to last release
Closed this issue · 2 comments
yevmoroz commented
It would be a good addition to changelog action to validate if added entry goes to last release (even unreleased) block. Fail otherwise.
gotbahn commented
Lemme give some examples that should fail:
- Wrong version was patched
## 1.9.1 - 15.01.2077
Hotfix description
### 2.0.0 - 01.01.2077
Release description
### 1.9.0 - 01.01.2025
Release description
...
- Version was added in wrong timeline
### 2.0.0 - 01.01.2077
Release description
## 2.1.0 - 15.01.2077
Hotfix description
### 1.9.0 - 01.01.2025
Release description
...
- Unreleased version placed between released versions
### 2.0.0 - 01.01.2077
Release description
## Unreleased
Hotfix description
### 1.9.0 - 01.01.2025
Release description
...
- Merge conflict added by mistake same versions
### 2.0.0 - 01.01.2077
Release description
### 2.0.0 - 01.01.2077
Release description
### 1.9.0 - 01.01.2025
Release description
...
Examples are quite different, so maybe it make sense introduce one by one
gotbahn commented
and another one, this time valid one
If pre-release has greater version, it's fine
### 2.2.0 - 01.01.2077
Release description
### 3.0.0-rc.0 - 01.01.2055
Release description
### 2.1.0 - 01.01.2025
Release description