zattoo/changelog

Added to last release

Closed this issue · 2 comments

It would be a good addition to changelog action to validate if added entry goes to last release (even unreleased) block. Fail otherwise.

Lemme give some examples that should fail:

  1. 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

...
  1. 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

...
  1. 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

...
  1. 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

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