vscode-pull-request-github icon indicating copy to clipboard operation
vscode-pull-request-github copied to clipboard

Allow configuration of default branch in pull requests

Open hoersamu opened this issue 3 years ago • 4 comments

It would be great if there was a setting to select the default branch to merge into when opening PRs.

hoersamu avatar Oct 08 '21 19:10 hoersamu

I would love to overrule the Default Branch setting from GitHub (or other VCS) to avoid conflicts. As I'm not always able (or permitted) to edit a Repo's settings.

odil-io avatar Feb 04 '22 10:02 odil-io

It would be nice if the default branch to merge was the source branch (the branch you branched from).

hannanelson avatar Sep 16 '22 20:09 hannanelson

It would be nice if the default branch to merge was the source branch (the branch you branched from).

Exactly what I meant

odil-io avatar Sep 17 '22 09:09 odil-io

There is the setting githubPullRequests.overrideDefaultBranch, which lets you override the default branch for the repo.

alexr00 avatar Sep 19 '22 10:09 alexr00

We also now guess which branch should be the base branch by looking at where you branched off from.

alexr00 avatar Dec 15 '23 15:12 alexr00

This guessing seems to default to the same branch that you are working on, can you still use the githubPullRequests.overrideDefaultBranch?

jaunito76 avatar Feb 17 '24 00:02 jaunito76

This guessing seems to default to the same branch that you are working on

If you're using the pre-release version with VS Code insiders this should now be fixed.

If not, then you can use githubPullRequests.createDefaultBaseBranch.

alexr00 avatar Feb 19 '24 17:02 alexr00