I have a project were I use a rather uncommon tag strategy. We end up with tags being leafs so our history looks like this:
0.3.0 0.3.0
|/ |
| 0.2.0 rather than 0.2.0
|/ |
| 0.1.0 0.1.0
|/ |
The reason why I do this is that our tags should include the dist
output whereas during development we don't want to commit such files into version control. So when I run the build, the build tool automatically branches off, adds the build artifacts (dist
folder) with a generated commit and then creates the tag there.
This workflow might look odd at first glance but so far I have found it to be quite convenient as we need to have the dist
folder in our tags for a downstream deployment process.
Now the problem is, I want to generate release notes automatically, just the problem is, how do I figure out the previous tag in such a scenario? I'm aware of the answers given here but with tags being leafs, this doesn't work that way.