-
Notifications
You must be signed in to change notification settings - Fork 43
Compare releases agains previous release (skipping prerelease) #138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I don't think this is currently possible without mucking about with multiple sets of tags (or renaming tags out of the way, which I don't think is a good idea). If I had this use case once or twice, I would just delete the pre-release tags locally and then run |
So for now I'm gonna make a script that removes prerelease tags, runs this library and pulls tags back from origin. But I guess that's something that can possibly be implemented and end up being a PR here? |
The rationale for which changes to accept is here - I feel like it fits, although I'm not sure that it would be easy to come up with a general case that doesn't make assumptions about how / when the tool is invoked. What do you think? |
Also interested in a better solution, I now have to manually remove tags to recreate all the proper changes in the change log after pre-releases. What about filtering out all the |
@burtek can you maybe share the script you used? |
Nothing sofisticated really @dirkluijk for tag in $(git tag | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+-(alpha|beta)\.[0-9]+$'); do
git tag -d "$tag"
done
yarn release # runs commit-and-tag-version
git fetch --tags |
Uh oh!
There was an error while loading. Please reload this page.
Right now when I create a release after a pre-release, the release changelo only contains changes since the pre-release and the compare link in changelog points to diff between pre-release and this release.
I'd like to make releases always compare against last full release rather than prerelease.
Let's say I have versions
1.0.0
,1.1.0-alpha.1
,1.1.0-alpha.2
and1.1.0
.I want the changelog to show:
1.1.0-alpha.1
- changes since1.0.0
(as it works currently)1.1.0-alpha.2
- changes since1.1.0-alpha.1
(as it works currently)1.1.0
- changes since1.0.0
(including all changes from prereleases) and the compare link pointing to/compare/v1.0.0...v1.1.0
Is this possible now?
The text was updated successfully, but these errors were encountered: