-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[Feature] Allow autodeleting branches after their PRs have been merged #14892
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
Comments
So this could be a personal setting. |
No, not really: While it might be a little bit more work on the user side to check the box for each repository, it definitely leads to way less confusion and a unified solution for all PRs getting merged, instead of a per person behavior. And less confusion also means less unnecessary bug reports being filed. |
I agree with @delvh it has to be a repository option. |
For the original repository or fork repositories? I assume not for original repositories, because original repositories' setting should not delete fork repositories' branches there is a permission problem here. |
One of the (only) things Azure does that I like is, when closing a PR, it gives me a checkbox for whether to remove the branch. The checkbox could perhaps be defaulted to some user/repo setting, but then the checkbox can be changed ad-hoc. Obviously this would need to adhere to branch protection and other permissions |
@lunny Can't forked repositories change the fork repo settings? I would have thought so… |
see also #13568 |
closing as dupe of #13568 |
Description
Most often, after a PR from branch a to branch b has been merged, a is not needed anymore.
It would be nice (and time/ energy saving) if you could activate in the repo settings whether branches of merged PRs should be autodeleted (as humans tend to forget to delete the branch after it has been merged, leading to unused branches in the project).
Later on, even the distinction between merged and closed PRs could be made by using another setting whether branches of closed PRs should also be autodeleted (even though that will be used rarely).
The text was updated successfully, but these errors were encountered: