Tags not sorted by semver version
- Dominant language
- TypeScript
- Stars
- 2.5k
- Forks
- 221
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Repositories utilizing `--base-branch` to do hot fixes can see tags created "out of order" where you may have tags like:
```
latest: 2.5.1
previous: 3.0.0
```
In this case, when releasing a new version, auto gets the most recent created tag:
https://github.com/intuit/auto/blob/main/packages/core/src/git.ts#L890
And calculates the changelog/version bump based on that version, rather than the latest semver version for the specified branch.
**To Reproduce**
- Release multiple major or minor versions
- use `--base-branch` to release a hotfix to an older version
- release a new version from the main branch
- the changelog will show the diff between the hotfix and HEAD, rather than the latest tag for the main branch and HEAD
**Expected behavior**
The changelog should only calculate based on the latest tag for the main branch
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.