virtual-vgo / vvgo

Virtual Video Game Orchestra
https://vvgo.org
Apache License 2.0
8 stars 7 forks source link

Figure out which branches can get deleted #113

Closed 0az closed 3 years ago

nightlark commented 4 years ago

The option to automatically delete branches after a PR is merged helps a lot with keeping the number of old branches down. If for some reason there is a desire to keep a branch around after merging, it can either be set as a protected branch (e.g. develop), or it is easy to click the restore branch button on the PR after merging to restore the branch and keep it around for a while longer.

The setting is Automatically delete head branches on https://github.com/virtual-vgo/vvgo/settings#merge-button-settings

Going through https://github.com/virtual-vgo/vvgo/branches/all, all of the branches with the purple Merged icon should be safe to delete as a first pass.

@0az @jacksonargo @Ranzha I've marked the closed and never merged branches with some names below for who seems to have been working on the branch and could be the most relevant for deciding if it is still needed.

The ones marked Closed will require deciding if they will ever be relevant again. I looked through them and there were comments on some of them with things like "not needed".

Branches that have never had a PR opened will need someone to look at them and decide if it's a WIP or irrelevant.

0az commented 4 years ago

Thanks for looking through all of these! Here's some notes based on a quick skim of that list:

On Aug 23, 2020, at 10:38, Ryan Mast notifications@github.com wrote:

The option to automatically delete branches after a PR is merged helps a lot with keeping the number of old branches down. If for some reason there is a desire to keep a branch around after merging, it can either be set as a protected branch (e.g. develop), or it is easy to click the restore branch button on the PR after merging to restore the branch and keep it around for a while longer.

The setting is Automatically delete head branches on https://github.com/virtual-vgo/vvgo/settings#merge-button-settings

Going through https://github.com/virtual-vgo/vvgo/branches/all, all of the branches with the purple Merged icon should be safe to delete as a first pass.

@0az @jacksonargo @Ranzha I've marked the closed and never merged branches with some names below for who seems to have been working on the branch and could be the most relevant for deciding if it is still needed.

The ones marked Closed will require deciding if they will ever be relevant again. I looked through them and there were comments on some of them with things like "not needed".

• facebook-login #186 - abstraction was merged in another PR, need to decide if it is worth keeping around this branch [jacksonargo] • read-from-csv #165 - comment saying not needed [jacksonargo] • docker-compose-back #120 - a very similar file is already in master [jacksonargo] • login-controller #119 [jacksonargo] • codecov2 #107 - seems like codecov isn't really wanted at this time [jacksonargo] • storage-refactor #100 - comment saying it will be covered by #94, which was closed without merge (appears to have been split up into several smaller PRs) [jacksonargo] • sessions #94 - comment saying it can be closed without merge [jacksonargo] • logging-to-discord #88 - labelled as a draft [jacksonargo] • windows-weirdness #83 [jacksonargo] • link-revisions #67 [jacksonargo] • clix-upload #61 [jacksonargo] • basic-auth-fixup #60 [jacksonargo] • jacksonargo-patch-1 #50 - looks like it's adding data in a way that is no longer used for an old project [jacksonargo] • linters #46 - comment don't care about those linters [jacksonargo] • flyctl #3 - seems fly.io isn't getting used? [jacksonargo] Branches that have never had a PR opened will need someone to look at them and decide if it's a WIP or irrelevant.

• oauth_state [jacksonargo] • feat-discord-oauth [0az] • healthcheck [jacksonargo] • sessions-full [jacksonargo] • sessions-only [jacksonargo] • codecov [jacksonargo] • locksmith [jacksonargo] • improve-download-behavior [0az] • dont-re-upload [jacksonargo] • bootstrap2 [jacksonargo] • fix-mime-database [0az] • client-love [jacksonargo] • bazel [jacksonargo] — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

0az commented 4 years ago
Long list of branches: git ls-remote -h origin | cut -d\t -f 2 | cut -d/ -f 3 ```sh add-login-page add-more-roles add-types archive-index-cleanups auto-pages backup-controller basic-auth-fixup bazel bootstrap2 build-instructions bye-part-number bye-tracing cleanup-index cleanup-infra cleanup-makefile cleanups client-gobs client-love client-queries-for-projects client-server-tokens clix-upload codecov codecov2 config-file cookie-policy-links credits disable-auth discord-client discord-client-no-oauth docker-compose-back dockerfile dont-re-upload download_links facebook-login faster-build feat-discord-oauth fix-column-bug fix-login fix-mime-database fix-parts-again fix-reference-track fix-the-link fixup flyctl full-minio gimp google-sheets-backed healthcheck hide-parts-tab hotfix-update-deadline improve-download-behavior infra jacksonargo-patch-1 jacksonargo-patch-10 jacksonargo-patch-11 jacksonargo-patch-12 jacksonargo-patch-2 jacksonargo-patch-3 jacksonargo-patch-4 jacksonargo-patch-5 jacksonargo-patch-6 jacksonargo-patch-7 jacksonargo-patch-8 jacksonargo-patch-9 less-than-wee link-revisions linters locksmith logging-to-discord login-cleanups login-controller login-sessions master navbar-cleanup new-submission-deets no-scrollcollapse npm oauth-cleanups oauth_state oopsie-fixup parts-params password-login-controller policies project-title-col pronunc-guide proof-homepage rbac-controller read-from-csv redirect-to-parts refactor-storage2 reference-track release-tagging remove-projects restore-from-file revert-151-jacksonargo-patch-9 rm-mime-types score-order sessions sessions-full sessions-only snake-eater-logo sort-alpha src-from-root storage-refactor tracing trying-auto-releases tweaks-to-parts update-archive-index update-archive-view update-favicon update-home update-homepage update-makefile update-makefile2 update-parts-proj3 uploader-backups win-releases windows-weirdness ```
jacksonargo commented 4 years ago

The only branch that matters is master. I just use github to backup all my branches 🤷‍♂️

0az commented 4 years ago

I'll delete these tomorrow, then.

curl -q 'https://api.github.com/repos/virtual-vgo/vvgo/pulls?state=closed' | jq -r '.[] | .head.ref' | sort ``` Ranzha-patch-10 Ranzha-patch-11 Ranzha-patch-6 Ranzha-patch-7 Ranzha-patch-8 Ranzha-patch-9 ScoreOrder add-more-roles add-social-icons archive-index-cleanups auto-pages cleanup-index config-file credits facebook-login fix-column-bug gimp jacksonargo-patch-11 jacksonargo-patch-12 no-scrollcollapse oauth-cleanups oopsie-fixup patch-1 patch-1 ranzha-stuff test-pull-requests trying-auto-releases update-archive-index update-archive-view update-homepage ```

These should be safe.