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

hook to execute command(s) after bumpr #16

Open
veltzer opened this issue Jul 15, 2017 · 1 comment
Open

hook to execute command(s) after bumpr #16

veltzer opened this issue Jul 15, 2017 · 1 comment
Milestone

Comments

@veltzer
Copy link

veltzer commented Jul 15, 2017

I would really like, and I expect other users of bumpr too, a hook to execute any command(s) we like after running bumpr.

Examples:

  • git push
  • git push --tags
  • email mailing list.
  • whatever...

These hooks should be "after" the version bump.

I tried the "commands" feature of bumpr and it did not work (executed probably before the bump and not after)

@noirbizarre
Copy link
Owner

Right now you can execute a command into the prepare phase but you are right, it might not be sufficient for some cases.

If the point is simply to simply send something after the bump and publish phase, you can do:

[commands]
prepare = do something

For the git push and git push --tags, this is already handled by bumpr with the push parameter which is exactly doing that.

I'm going to work to improve the situation.
It might be coming for the 1.0.0 which is going to be a refactor. The main point is to use a yaml description which allows to easily store lists (which is required to properly specify a list of commands or replacement).

@noirbizarre noirbizarre added this to the 0.4 milestone Dec 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants