sichoi42/Cleaning up Stale Branches

Automatically find up stale branches and cleanup them

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
repo-tokenToken for the repository. Can be passed in using `{{ secrets.GITHUB_TOKEN }}`.no${{ github.token }}
days-before-staleThe age in days before a branch is considered stale. Can be passed in using `30`.no30
days-before-deleteThe age in days after a branch is considered stale, before it is deleted. Can be passed in using `7`.no7
ignoring-branchesComma separated list of branches that should be ignored. Default is `main,master`.nomain,master
ignore-branches-patternPattern of branches that should be ignored.norelease/*
stale-branch-messageThe message to post on webhook when a branch is considered stale.noThese branches were considered stale and will be deleted in a few days.
delete-branch-messageThe message to post on webhook when a branch is deleted.noThese branches were deleted because they were stale.
dry-runIf true, the action will only log the branches that would be deleted.nofalse
use-webhookIf true, the action will send a message to webhook when branches are considered for deletion or deleted.nofalse
webhook-urlWebhook URL to send a message when branches are considered for deletion or deleted. Recommend to use `{{ secrets.WEBHOOK_URL }}`.no""
webhook-typeThe type of webhook to send. Can be `discord` or `slack`.nodiscord
namedescription
staled-branchesThe list of branches that were considered stale.
deleted-branchesThe list of branches that were deleted.