+2

Create Pull request: automatically select destination branch

kucerajo 2 years ago updated 2 years ago 2

When doing code reviews for pull requests, it would be very useful to automatically select destination branch from the source branch from which the branch was originally created. The current behavior is that the last used destination branch is populated by default.

It is very common that we forget to change the last used branch when we are doing changes in master and release branches. The result is that we create a pull request into wrong destination branch....

Is this about GitHub/GitLab/Azure/Bitbucket? When creating the pull requests from the web-frontend, will the proper branch be selected there? I'm asking to figure out, if there may be some server-side information which could be used by SmartGit.

In our case, we use Bitbucket server but I am not sure if this kind of server side information is available. I see that even Bitbucket team has one similar open request that is still gathering interest https://jira.atlassian.com/browse/BSERV-7116 .
Another kind of problem there is that we can create a local branch in Smartgit and then push it into server but the information about the source branch cannot be transferred into the server.

What I can imagine is to utilize the base branch information from the local Smartgit gitflow in Git config file if available, for example: