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

[feature] Add automatic version detection #10

Merged
merged 3 commits into from Jan 23, 2017
Merged

Conversation

sdepold
Copy link
Owner

@sdepold sdepold commented Jan 17, 2017

Add support for auto-detecting which version fragment to bump:

npm_release --auto --auto-fallback minor

This will parse the git history and check every commit since the tag that corresponds with the current project version and HEAD. The commit's subject and body will be scanned for certain markers:

  • [major] will generate a major version bump
  • [minor], [feature] will generate a minor version bump
  • [patch], [bugfix], [fix] will generate a patch version bump

@seangates
Copy link

Is the default going to be --auto or something else?

@sdepold
Copy link
Owner Author

sdepold commented Jan 20, 2017

Until further testing I would not make it the default and once we feel it works well we can make a major bump and rna or it by default

@sdepold sdepold force-pushed the feature/auto-detect branch 2 times, most recently from 00086b0 to 9a5b9e8 Compare January 23, 2017 20:01
@sdepold sdepold merged commit bfa4464 into master Jan 23, 2017
@sdepold sdepold deleted the feature/auto-detect branch January 23, 2017 20:08
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.

None yet

2 participants