Skip to content
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

feat!: simplify metadata/build api #101

Merged
merged 1 commit into from
Mar 7, 2023
Merged

feat!: simplify metadata/build api #101

merged 1 commit into from
Mar 7, 2023

Conversation

caarlos0
Copy link
Owner

@caarlos0 caarlos0 commented Mar 7, 2023

Breaking Change

  • no more "cleaning metadata" et al, it'll act respecting semver:
    • if you are incrementing a patch from a tag with metadata, it'll just drop the metadata
    • if you are incrementing a patch with no metadata, it'll increment the patch as before
    • incrementing minors and majors always drop metadata
  • if you want your new version to have some metadata, use --pre-release and --build. Those will be added to the version after the increments happened
  • dropped a bunch of flags, replaced usage in others

closes #88

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
@caarlos0 caarlos0 self-assigned this Mar 7, 2023
@caarlos0 caarlos0 mentioned this pull request Mar 7, 2023
@caarlos0 caarlos0 merged commit e67acc8 into main Mar 7, 2023
@caarlos0 caarlos0 deleted the improve branch March 7, 2023 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

can't add metadata
1 participant