intuit / intuit/auto

[Conventional Commits][Next-major release] Only minor semantic bumps apply expected changelogs

Open
#1,806 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2.5k
Forks
221
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

When merging a pre-release into the main branch, it appears that patch bumps do not apply appropriate changelogs.

**To Reproduce**

I have created a sample repository [here](https://github.com/lshadler/auto-version-test). In this repo, we see that the changelog gets updated for [v2.0.0](https://github.com/lshadler/auto-version-test/releases/tag/v2.0.0) correctly after merging a [minor semantic change PR](https://github.com/lshadler/auto-version-test/pull/8), but [v4.0.0](https://github.com/lshadler/auto-version-test/releases/tag/v4.0.0) does not when using a [patch](https://github.com/lshadler/auto-version-test/pull/10).

**Expected behavior**

I am not sure what we should enforce here. In my head, any release that is clearly introducing the next major version

**Screenshots**

**Environment information:**

```txt
Environment Information:

"auto" version: v10.16.5
"git" version: v2.11.0
"node" version: v10.23.3

Project Information:

✔ Repository: lshadler/auto-version-test (​https://github.com/lshadler/auto-version-test​)
✔ Author Name: lshadler
✔ Author Email: lshadler13@gmail.com
✔ Current Version: v4.0.0
✔ Latest Release: v4.0.0 (​https://github.com/lshadler/auto-version-test/releases/tag/v4.0.0​)

✖ Labels configured on GitHub project (Try running "auto create-labels")

GitHub Token Information:

✔ Token: [Token starting with a797]
✔ Repo Permission: admin
✔ User: lshadler
✔ API: undefined (​undefined​)
✔ Enabled Scopes: repo
✔ Rate Limit: 4471/5000
```

**Additional context**

I am using the `conventional-commits` plugin to manage release versioning. Here is my `.autorc`:

```json
{
"plugins": [
"conventional-commits",
"released",
"first-time-contributor",
"git-tag"
],
"labels": [
{ "releaseType": "major", "name": "auto-major", overwrite: true },
{ "releaseType": "minor", "name": "auto-minor", overwrite: true },
{ "releaseType": "patch", "name": "auto-patch", overwrite: true }
],
"prereleaseBranches": ["next", "alpha", "beta"],
"name": "lshadler"
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.