Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configuration of default branch in pull requests #3028

Closed
hoersamu opened this issue Oct 8, 2021 · 7 comments
Closed

Allow configuration of default branch in pull requests #3028

hoersamu opened this issue Oct 8, 2021 · 7 comments
Labels
feature-request Request for new features or functionality
Milestone

Comments

@hoersamu
Copy link

hoersamu commented Oct 8, 2021

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

@alexr00 alexr00 added the feature-request Request for new features or functionality label Oct 15, 2021
@alexr00 alexr00 added this to the Backlog milestone Oct 15, 2021
@odil-io
Copy link

odil-io commented Feb 4, 2022

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.

@hannanelson
Copy link

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

@odil-io
Copy link

odil-io commented Sep 17, 2022

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

Exactly what I meant

@alexr00
Copy link
Member

alexr00 commented Sep 19, 2022

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

@alexr00
Copy link
Member

alexr00 commented Dec 15, 2023

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

@alexr00 alexr00 closed this as completed Dec 15, 2023
@jaunito76
Copy link

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

@alexr00
Copy link
Member

alexr00 commented Feb 19, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

5 participants