-
Notifications
You must be signed in to change notification settings - Fork 716
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(generate): add function for getting a recommended version bump #29
feat(generate): add function for getting a recommended version bump #29
Conversation
The conventional changelog provides an excellent guidance on which part of the version number one should bump on release. This commit exposes a `bump` function that looks at the commits and returns a recommendation for either a `major`, `minor`, or `patch` bump.
👍 nice! |
Love it! |
I think it's very interesting. However I think it might be better to make this as a standalone module. |
Either the recommended version bump needs to be part of conventional-changelog or conventional-changelog needs to expose the parsed changes to an external module so that it can make a decision based on it before it sends a version number into the standard conventional-changelog method to have the changelog itself written. |
1ffb9e8
to
43a03c7
Compare
Please checkout https://github.com/stevemao/conventional-recommended-bump |
The conventional changelog provides an excellent guidance on which part of the version number one should bump on release. This commit exposes a
bump
function that looks at the commits and returns a recommendation for either amajor
,minor
, orpatch
bump.