Skip to content

Conversation

OlufunkeMoronfolu
Copy link
Collaborator

@OlufunkeMoronfolu OlufunkeMoronfolu commented May 16, 2025

This PR introduces a GitHub Action that automates branch deletion and removes the need for authors to delete branches by themselves (as we currently do).

This Loop document shares more info about the process involved with creating this PR.

Activity diagram for easy understanding:

Image (1)

@ConnorLand
Copy link
Collaborator

I am a little wary of monthly automated branch deletions, as it is possible that I might merge something and then need to go back to the merged branch 4 weeks later for something.

For safety, would it be possible to set PRs assigned to me as Manual delete status only?

@ConnorLand
Copy link
Collaborator

  • Branches with "backup" in the name are never deleted, regardless of their merge age or whether they have been merged into the development branch or not

I think Olu's writing above solves my issue. I'll just include "backup" in the important ones.

Copy link
Collaborator

@MarkvanMents MarkvanMents left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @OlufunkeMoronfolu
This all looks good as far as I can tell.
However, it might be a good idea for you to walk me through the code so that I can understand it better and we can ensure that there are no edge cases we have forgotten.

But it is a great use of GitHub actions and perhaps will help us to create more actions in the future?

Set up a meeting when you are back from PTO and we can go through it together - perhaps when we are both in the office.

Thanks for doing this

Mark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants