Skip to content

Conversation

@crqrdotcom
Copy link
Contributor

@crqrdotcom crqrdotcom commented Oct 6, 2021

Fixes #1

  • Introduces new flag --version-file (aka -f) on the bump command that accepts a list of files that should be updated when the version is bumped. The format is filename:key to make it easier to pattern match against.
  • Before tagging the new version, the updated files are committed with the message bump: [previous version] -> [next version]. Every unstaged file is committed (similar to git add .), we might want to change this in the future.
  • The package io/fs requires go 1.16 thus I'm deprecating support for go 1.15.

Examples:

git semver bump -f package.json:"version" pom.xml:<version>

@crqrdotcom crqrdotcom added the enhancement New feature or request label Oct 6, 2021
@crqrdotcom crqrdotcom requested a review from jsmvaldivia October 6, 2021 15:08
@crqrdotcom crqrdotcom self-assigned this Oct 6, 2021
Copy link

@jsmvaldivia jsmvaldivia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've found some issues regarding perhaps readability

@crqrdotcom crqrdotcom enabled auto-merge (squash) October 12, 2021 07:50
@crqrdotcom crqrdotcom disabled auto-merge October 12, 2021 08:07
@crqrdotcom crqrdotcom merged commit 87c6afb into main Oct 12, 2021
@crqrdotcom crqrdotcom deleted the feat/update-version-files branch October 12, 2021 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support updating version files on version bump

3 participants