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

Check if version bump is possible #19

Closed
marden35 opened this issue Jan 29, 2020 · 1 comment
Closed

Check if version bump is possible #19

marden35 opened this issue Jan 29, 2020 · 1 comment

Comments

@marden35
Copy link

I'd like what-bump to expose a new "standalone" functionality: check the correctness of a series of commits.

This would be really useful before trying to bump. For example:

  • a PR is reviewed and approved
  • the opener squashes and merges the PR
  • what-bump check if the comment is conventional-commits compliant
  • do the bump

So the idea is to use it as hook in PR flow.

@albx79 albx79 closed this as completed Feb 11, 2020
@albx79
Copy link
Contributor

albx79 commented Feb 11, 2020

This is already possible by issuing what-bump HEAD^ --strict, which will return a non-zero exit code if the commit message is non-compliant.

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

No branches or pull requests

2 participants