absolute-version / commit-and-tag-version

Fork of the excellent standard-version. Automate versioning and CHANGELOG generation, with semver.org and conventionalcommits.org :trophy:
ISC License
385 stars 36 forks source link

Changes between tags with no changes #76

Closed konclave closed 1 year ago

konclave commented 1 year ago

I have a monorepo with several applications in it and I'm trying to implement the separate version bump and changelog for each application.

Each app has a config file in it root folder and I run commit-and-tag-version in each app folder and set the tag with the app prefix. That is the config:

{
    path: '.',
    'tag-prefix': `${appName}.v`,
    releaseCommitMessageFormat: `chore(release): ${appName}@{{currentTag}} [skip ci]`,
}

But if I run commit-and-tag-version with --dry-run right for the second time with no any changes accept version bump and changelog, then I see in changes a link to the repo with changes set between tags like:

---
## [1.1.1](https://github.com/..../compare/app.tag.v1.1.0...app-tag.v1.1.1) (2023-05-03)
---

Why are changes not empty? I expected to see nothing there and use that to determine if I need to bump version for the app or not.

TimothyJones commented 1 year ago

I'm not sure I'm following - in your example, the changes are empty, that's just a header to show the version released.

I do agree that a "do nothing if no changes" mode would be handy, though.

TimothyJones commented 1 year ago

I'll close this as there's no response, and I think your request is covered by #43.

Please feel free to reopen if you need further clarification, or if your question isn't covered by that issue.