Skip to content

Conversation

@ronaldbarendse
Copy link
Contributor

@ronaldbarendse ronaldbarendse commented Dec 15, 2022

This fixes #874 by adding a new option to the version.json file to allow customizing the generated tag name, defaulting to:

{
  "release": {
    "tagName": "v{version}"
  }
}

This default value is the same as was hardcoded before (see linked issue). resulting in the same output:

❯ nbgv tag
v11.0.0-alpha tag created at e9733c696af583dc2d1e988ce9b9dbbdada70596.
Remember to push to a remote: git push origin v11.0.0-alpha

Changing this option to e.g. release-{version} will result in the following output:

❯ nbgv tag
release-11.0.0-alpha tag created at fdb649066fb8a855660844c345b9a905034ca6b6.
Remember to push to a remote: git push origin release-11.0.0-alpha

@dnfadmin
Copy link

dnfadmin commented Dec 15, 2022

CLA assistant check
All CLA requirements met.

Copy link
Collaborator

@AArnott AArnott left a comment

Choose a reason for hiding this comment

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

Thanks for putting this together. I'm willing to merge, but can you address the few minor issues I call out?

@ronaldbarendse
Copy link
Contributor Author

Thanks for putting this together. I'm willing to merge, but can you address the few minor issues I call out?

No problem at all, thanks for creating and maintaining this tool! I've addressed all the things you pointed out, so should be good to merge if everything tests out correctly 😄

@ronaldbarendse ronaldbarendse requested a review from AArnott January 3, 2023 08:56
Copy link
Collaborator

@AArnott AArnott left a comment

Choose a reason for hiding this comment

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

Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow customizing generated tag name

3 participants