ostk0069/Unmerged PR Branch Cleaner

Safely delete branches belonging to closed, unmerged pull requests.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
github-tokenA token with Pull requests and Contents read access for dry runs; actual deletion requires Contents write.no${{ github.token }}
dry-runReport branches without deleting them.notrue
max-deletionsMaximum number of branches that one non-dry-run invocation may delete.no20
exclude-branchesNewline- or comma-separated glob patterns for branches that must never be deleted.no""
minimum-closed-age-daysMinimum age in whole days of the newest matching closed PR.no0
allow-fork-repositoriesAllow execution when the repository itself is a fork.nofalse
namedescription
deleted-branchesJSON array of deleted branch names.
skipped-branchesJSON array of skipped branches and reasons.
failed-branchesJSON array of failed branches and reasons.
deleted-totalTotal number of deleted branches, including entries omitted from detailed outputs.
skipped-totalTotal number of skipped branches, including entries omitted from detailed outputs.
failed-totalTotal number of failed branches, including entries omitted from detailed outputs.
candidate-countNumber of branches that passed the preflight checks.
candidate-branchesJSON array of branch names that passed the preflight checks, subject to the output size budget.
outputs-truncatedWhether one or more detailed JSON outputs were truncated.