cbrgm/Cleanup Stale Branches Action
Automatically delete abandoned / stale branches from a GitHub repository
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| token | GitHub token for authentication | yes | — |
| repository | The target GitHub repository in the format "owner/repo" | yes | — |
| ignore-branches | Comma-separated list of branches to ignore | no | "" |
| allowed-prefixes | Comma-separated list of prefixes a branch must match to be deleted | no | "" |
| ignored-prefixes | Comma-separated list of prefixes a branch must NOT match to be deleted | no | "" |
| last-commit-age-days | Number of days since the last commit for a branch to be considered abandoned | no | 30 |
| dry-run | Perform a dry run without actually deleting branches | no | true |
| rate-limit | Stop the action if it exceeds 95% of the GitHub API rate limit | no | true |
| github-enterprise-url | The base URL for GitHub Enterprise (if applicable) | no | "" |
Outputs
no outputs