crazy-matt/Manage Stale Branches

This action deletes branches that have not had a commit in the last `stale-duration` (hours, days or weeks).

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
github-tokenGitHub Token with repository write access. no${{ github.token }}
stale-durationTime threshold for stale branches (e.g., "60d", "2w", "1440h"). Accept only a single unit.no60d
suggested-durationTime threshold for suggested branches (e.g., "30d", "1w", "720h"). Accept only a single unit.no30d
concurrencyNumber of branches to process concurrently.no4
dry-runRun in dry-run mode (no actual deletion).notrue
archive-staleArchive instead of deleting stale branches.nofalse
exclude-patternsBranches to exclude from cleanup. It can be a comma-separated list or a multiline string (yaml list). It can use regex patterns. no""
rate-limit-thresholdGitHub API rate limit threshold percentage (0-100). The action will exit gracefully when the rate limit usage reaches this threshold. The action defaults to no threshold (100). no100
namedescription
summarySummary of deleted/suggested branches.
merged-branchesJSON array string listing the merged branches which have been deleted. Used in dry-run mode, you can pass it easily to a matrix job to handle yourself these branches.
merged-branches-countDeleted merged branches count.
stale-branchesJSON array string listing the stale branches. Used in dry-run mode, you can pass it easily to a matrix job to handle yourself these branches.
stale-branches-countStale branches count.
suggested-branchesJSON array string listing the branches suggested for deletion. Used in dry-run mode, you can pass it easily to a matrix job to handle yourself these branches.
suggested-branches-countSuggested branches count.