ostk0069/Unmerged PR Branch Cleaner
Safely delete branches belonging to closed, unmerged pull requests.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | A token with Pull requests and Contents read access for dry runs; actual deletion requires Contents write. | no | ${{ github.token }} |
| dry-run | Report branches without deleting them. | no | true |
| max-deletions | Maximum number of branches that one non-dry-run invocation may delete. | no | 20 |
| exclude-branches | Newline- or comma-separated glob patterns for branches that must never be deleted. | no | "" |
| minimum-closed-age-days | Minimum age in whole days of the newest matching closed PR. | no | 0 |
| allow-fork-repositories | Allow execution when the repository itself is a fork. | no | false |
Outputs
| name | description |
|---|---|
| deleted-branches | JSON array of deleted branch names. |
| skipped-branches | JSON array of skipped branches and reasons. |
| failed-branches | JSON array of failed branches and reasons. |
| deleted-total | Total number of deleted branches, including entries omitted from detailed outputs. |
| skipped-total | Total number of skipped branches, including entries omitted from detailed outputs. |
| failed-total | Total number of failed branches, including entries omitted from detailed outputs. |
| candidate-count | Number of branches that passed the preflight checks. |
| candidate-branches | JSON array of branch names that passed the preflight checks, subject to the output size budget. |
| outputs-truncated | Whether one or more detailed JSON outputs were truncated. |