We are trying to implement automatic version bumping based on the semver spec... Ideally, we would just merge into master and produce a new version update on the CI.
--------------development branch----
/ \
--/--base branch------------------------v1.1.0------
We are not there yet, due to some release cycle's constrains, we are using a gitflow approach:
--------------release branch/v1.1.x----
/
--/--base branch----v1.2+.x------
every time we cut a release branch, and, let's say, we publish a minor/major update, we have to keep that release open to allow for hot fixes (only patches will eventually go on the current release branch)...
Now, we want to get semver
to play well with this flow (which we cannot change at the moment).
how can we make sure that:
- once we cut a release then the following commit on the base branch will have at least a minor bump?
- how can we bring the hotfixes on the release branch back into master?