how can I know if a stale branch should be deleted...
# team-maintainers
j
how can I know if a stale branch should be deleted or is still used by someone?
m
I check if a PR was created
if so, was the PR merged or closed
if yes then it's probably safe to delete
if the PR is still open, then investigate PR state
if no PR ever open, then I contact the author or someone else
j
👍🏻 thanks!
m
also, what can be done is check if the branch is ahead or not
if the branch is not ahead but only behind, then it was probably created and not used, so it's just sitting there getting slightly more and more out of date with every merged PR
🔍 2