cookietemple icon indicating copy to clipboard operation
cookietemple copied to clipboard

Question about release_drafter / bump-version

Open picciama opened this issue 2 years ago • 1 comments

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:

  1. make sure everything runs on development
  2. git checkout -b release/xyz
  3. cookietemple bump-version on the release branch
  4. merge release into master
  5. 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.

picciama avatar Jan 22 '23 15:01 picciama