DEV Community

Automate semantic versioning in git

Fran Iglesias on July 22, 2018

I've just wrote a little command line tool to automate tags for semantic versioning in git. You can see and download in the github repository, w...
Collapse
 
oleksandrkucherenko profile image
Oleksandr
Collapse
 
pkristiancz profile image
Patrik Kristian

Hey there, it actually got my attention and it looks interesting. I readed readme and code itself. I have few quick suggestions to improve.

  • simple instalation (see my github.com/pkristian/mishell.sh )
  • allow empty message
  • add push param (something like —push, -p) to push without asking and what about do not asking if push?
  • when wanting confirmation of new tag, just proceed when enter is pressed or take “y” as default option. take “n” for no ( or ctrl+c can be used)
  • allow bypass confirmation by param —yes or -y
  • i will try to treat it as regular linux utility, so using —params will be nice.
Collapse
 
franiglesias profile image
Fran Iglesias

Thank you for the suggestions, Patrik,

The over-confirmation issue ;-) comes from the fact that currently I cannot be certain about what kind/format of tag the tool will retrieve from git describe, so I decided to ask before proceed. I think improving the tag detection from the beginning will help.

The idea of a --push or --force option is something I was starting to think about.

Well, this is a pet project of mine to learn something about shell scripting and git, so all suggestions are more than welcome. :-)

Collapse
 
pkristiancz profile image
Patrik Kristian

I personally love git and bash, and making tool for that is something, what i highly support. I think, once it is done, it will be nice package to have. I think, when you are your own user, project is good to go.

If you will be interested, it will be nice to "exchange" improve our bash-git repos. :)
If you want, please look at my mishell.sh, send PR, open issue, whatever. :)

Happy bashing! :)

Thread Thread
 
franiglesias profile image
Fran Iglesias

Sure, I'll do. :-)