nmfs-ost / ss3-workflows

This repo contains a collection of reusable workflows found helpful for the SS3 project
Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

automatically delete merged branches throughout the nmfs-stock-synthesis organization? #55

Closed iantaylor-NOAA closed 1 year ago

iantaylor-NOAA commented 2 years ago

GitHub has a setting to automatically delete merged branches, which would leave less clutter in the list of branches. Thanks to @kellijohnson-NOAA, this option was turned on for the FIMS project.

Instructions on implementing that option are here: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-the-automatic-deletion-of-branches

Are there any objections to me turning it on for all the nmfs-stock-synthesis repositories?

Responsibility still falls on us to manually clean up the stale branches that no longer have value.

k-doering-NOAA commented 1 year ago

@iantaylor-NOAA I'm realizing this question was unaddressed! @e-gugliotti-NOAA and @Rick-Methot-NOAA, tagging you both for awareness to discuss. My personal opinion is automatically deleting merged branches is helpful for the reason Ian points out, but I think it is up to the team to decide if they like this preset.

e-perl-NOAA commented 1 year ago

I like having the branches being deleted after merging. @Rick-Methot-NOAA or @iantaylor-NOAA - is there any reason why we would want to keep branches after merging?

Rick-Methot-NOAA commented 1 year ago

Just irrational fear of not being able to backtrack on a change. I support auto-delete for 2023.

k-doering-NOAA commented 1 year ago

I also just looked into it, and you can always (no time limit) restore a deleted branch, so the branch is never lost if for some reason we do need it.

@e-gugliotti-NOAA , if we have time today during our meeting, maybe we could change the settings on the stock synthesis github repositories to auto delete branches.

e-perl-NOAA commented 1 year ago

The instructions for restoring a branch that was deleted is available here.

Rick-Methot-NOAA commented 1 year ago

A situation in which a branch should be maintained is when there is an explicit Development Branch and an Operational Branch. You would not want to auto delete the development branch. I think Neal sometimes works a branch in that way. @nschindler-noaa

e-perl-NOAA commented 1 year ago

@nschindler-noaa, do you need to keep these branches after they have been merged onto the main branch? If you do, then we can always turn the setting back off.

nschindler-noaa commented 1 year ago

Not really. I can work either way. It is a bit of a pain to update the branch from main before doing additional work on a branch. So, auto deletion of branches is fine.

iantaylor-NOAA commented 1 year ago

Automatic deletion of merged branches is now turned on for all the repositories in the nmfs-stock-synthesis organization. That setting was already in place for most of them.