cookietemple
cookietemple copied to clipboard
Question about release_drafter / bump-version
Question
Maybe a stupid question of a not so experienced developer:
I do not quite get how to properly use the release drafter in combination with cookietemple bump-version. It adds the pull requests that were made to development. But it keeps adding everything, including what has already been part of a previous release.
When is the time to use cookietemple bump-version
?
My current workflow is:
- make sure everything runs on development
-
git checkout -b release/xyz
-
cookietemple bump-version
on the release branch - merge release into master
- merge master back into development
Of course it also adds the PR from master back into development. I should also mention my default branch is master, not development (as it is in the cookietemple repo). And it doesn't seem to get that the PRs previous to the bump-version should not be part of the changelog for the current draft. So does that mean we should first bump the version on the development after the last merge from master back into development?
Could you give some best practise advice and could you document it somehwere on cookietemple.readthedocs.io please?
Also it would be cool to have an additional flag such as cookietemple bump-version --publish
to automatically publish the current draft release.