-
Notifications
You must be signed in to change notification settings - Fork 800
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: make tagPrefix configurable #143
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It goes slightly against the stated goal of making standard-version relatively configuration free, but I appreciate that this will allow us to support a wider variety of projects.
Get the tests passing and we'll land this 👍
.option('tag-prefix', { | ||
alias: 't', | ||
describe: 'Set a custom prefix for the git tag to be created', | ||
type: 'boolean', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you switch the type to string
rather than boolean
I believe the tests should start passing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for feedback! I didn't notice the test failed, sorry about that. Corrected now, but I see merge conflict. I'll see if I can rebase.
1 similar comment
@niieani I've landed your changes in an upcoming release, would love an extra set of eyes on it. To test it out:
👍 |
Many thanks! I'll have a go at it. |
At Aurelia we don't use any tag prefixes, our tags are just
1.0
, thus we couldn't usestandard-version
as is. Right nowstandard-version
has a hardcodedv
prefix for all the git tags for releases, i.e.v1.0
,v1.1
. This change makes it configurable so you can have no prefix or a custom prefix if you wish. I left the defaultv
prefix, so this is a non-breaking change.