Automatically set delete_branch_on_merge for repositories#72
Automatically set delete_branch_on_merge for repositories#72Kobzol wants to merge 1 commit intorust-lang:masterfrom
delete_branch_on_merge for repositories#72Conversation
|
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-libstdrepository, but I think that it's generally useful to set this everywhere, which this PR does.