peritus / bumpversion

Version-bump your software with a single command
https://pypi.python.org/pypi/bumpversion
MIT License
1.5k stars 148 forks source link

Release version from working branch #211

Open AnumSheraz opened 4 years ago

AnumSheraz commented 4 years ago

We can add release prefixes e.g. dev, aplha, beta etc on the .cfg file. But let's say I want to release from one of my working development branch APL-22, I want the release step to pick up my current branch name and generate version as follows 0.0.3-APL-22-alpha1. Where 0.0.3 is the last release tag, APL-22 is the branch name and alpha1 is the first alpha release from this branch.

If I've to release again from same branch, the next tag would be 0.0.3-APL-22-alpha2 and so on. Is this feature supported ? if yes, how would the bumpversion.cfg file look like ?