-
Notifications
You must be signed in to change notification settings - Fork 17
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
Automatically set delete_branch_on_merge
for repositories
#72
base: master
Are you sure you want to change the base?
Conversation
Will this delete things like |
My understanding is that this only deletes the source branch after a PR is merged. |
But what if the source branch is |
Do we ever create PRs out of the Anyway, good questions, I will try to find out. |
GitHub claims that the head (source) branch of a PR will be removed after a merge. I did a few experiments:
So it seems that the logic looks like this: if a PR is opened from branch |
This makes me nervous since there are situations where this is a destructive action (e.g., when squashing on merge). Does this work the same way for forks of a repo or is this only happening when the branch is in the same repo as the branch being merged into? |
It doesn't delete the branches from forks. |
This was requested for the
miri-test-libstd
repository, but I think that it's generally useful to set this everywhere, which this PR does.