When publishing bug fix releases, the releaser tool automates the creation of PRs to automatically copy the change log of a new bugfix release from the release branch to master/main.
We have some logic which asks to choose between master and main, however:
- it's almost always master
- a tiny percentage of cases use
main, but I am migrating back to master when possible, for consistency
Therefore, I propose the following change:
- check if
main exists locally, if it does, check if master also exists, if both exists ask the user to choose
- if
main does not exist, choose master automatically without asking
- if
master does not exist and main exists, choose main without asking
When publishing bug fix releases, the releaser tool automates the creation of PRs to automatically copy the change log of a new bugfix release from the release branch to
master/main.We have some logic which asks to choose between
masterandmain, however:main, but I am migrating back tomasterwhen possible, for consistencyTherefore, I propose the following change:
mainexists locally, if it does, check ifmasteralso exists, if both exists ask the user to choosemaindoes not exist, choosemasterautomatically without askingmasterdoes not exist andmainexists, choosemainwithout asking