Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate clean up of warden registration branches #10482

Open
jacobheun opened this issue Jun 5, 2023 · 0 comments
Open

Automate clean up of warden registration branches #10482

jacobheun opened this issue Jun 5, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@jacobheun
Copy link
Contributor

Problem / opportunity:

There currently is no clear retention policy on warden registration PR branches. When closed, the branches aren't always deleted, leaving an excessive number of branches remaining in git history.

Desired outcome

Branches for closed PR's are automatically deleted after 30days.

Solution

Add a github action to automatically clean up PR branches that have been closed after 30 days.

Additional context

Github PR branch retention period is currently indefinite, so branches can be manually deleted on closed PR's right away. We shouldn't rely on a human needing to do this though. 30days is probably excessive, in reality this could probably be immediate, but we do need to bulk remove the older branches if we did this as a PR closed action.

@jacobheun jacobheun added the enhancement New feature or request label Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant