This is the first release of the Prune Stale Branches Action which is capable of finding stale and/or unused branches in a repository.
The action will perform the following steps on each run:
- Search all branches for any without activity since the provided
stale-branch-age
parameter. - If no activity has occurred since the provided date, check if an issue to alert the team has already been created.
- If an issue has NOT been created, create one to alert owners of the branch deletion.
- If an issue has been created, check if it's been open longer than the
stale-branch-issue-age
parameter specifies and delete the branch if so.