Skip to content

Automate clean up of warden registration branches #10482

Open
@jacobheun

Description

@jacobheun

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions