Replies: 1 comment
-
I think that only works if you created a branch within microsoft/winget-pkgs (upstream) as long as the "Automatically delete head branches" is enabled or the bot handles it. In this case the branch was created from within neovim/winget-pkgs which is a forked repository (downstream) so the settings from upstream won't work in downstream. For forked repositories you can use something along the lines of (which you can then build into your GitHub Actions): (gh pr list --search "is:pr is:merged author:nvim-winget created:>2023-06-01" --limit 1000).Split() | Select-String "^neovim:"
git push origin --delete <BRANCH_NAME> If you remove That's how I deleted more than 4000 branches for @vedantmgoyal2009's winget-pkgs |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Any reason the winget-pkgs repo is not configured to auto-delete branches in the source repo after merging a PR?
For nightly builds especially this results in a lot of old stale branches, which is noisy:
https://github.com/neovim/winget-pkgs/branches
Beta Was this translation helpful? Give feedback.
All reactions