intuit / intuit/auto

Continuous (single-digit) versioning

Open
#1,957 5 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**

`v0` + `major` bump = `null` 💥

**To Reproduce**

- latest (and the only) git (annotated) tag is `v0`
- default release type is `major` to always increment the first digit
- running `auto latest --dry-run`:

```
✔ Latest Release: v0 (...​)
...
✔ success Calculated SEMVER bump: major
ℹ info Would have created a release on GitHub for version: null
```

**Expected behavior**

`v0` + `major` bump = `v1`

(or generally `vN` + `major` bump = `v(N+1)`)

**Environment information:**

Redacted (private repo):

```txt
Environment Information:

"auto" version: v10.20.0
"git" version: v2.30.2
"node" version: v12.18.1

Project Information:

...
✔ Current Version: v0
✔ Latest Release: v0 (​https://github.com/.../releases/tag/v0​)

✔ Labels configured on GitHub project
```

Standalone Auto installation (non-npm project). Plugins:

```json
{
"plugins": [
[
"docker",
{
"registry": "...",
"image": "..."
}
],
"released"
],
"shipit": {
"noChangelog": true
},
"latest": {
"noChangelog": true
},
"canary": {
"force": true
},
"labels": [
{
"name": "release",
"changelogTitle": "🚀 Enhancement",
"description": "Any change, feature or enhancement",
"releaseType": "major",
"default": true
},
{
"name": "no-release",
"changelogTitle": "🏠 Internal",
"description": "Changes that don't touch user-facing code",
"releaseType": "none"
}
]
}
```

**Additional context**

I'm not sure if this behavior is meant to supported, but I'm filing it as a bug because `null` is never a valid answer 😄

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.