tylerdgenius/Repo Janitor
Clean up stale branches and PRs in a repository.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | GitHub token with issues: write to open approval issues. | no | ${{ github.token }} |
| issue_token | GitHub token with issues: write to open approval issues. Overrides github_token if provided. | no | "" |
| branch_age_days | Minimum branch age in days before applying cleanup rules. | no | 7 |
| branch_allow_patterns | Comma-separated JavaScript regex patterns; branches must match at least one to be auto-cleaned. | no | "" |
| branch_deny_patterns | Comma-separated JavaScript regex patterns; branches matching any are excluded from cleanup. | no | "" |
| desk_check_label | Label indicating a PR has a desk check and should not be auto-drafted. | no | desk-check |
| desk_check_comment_phrase | Comment phrase indicating a PR has a desk check and should not be auto-drafted. | no | desk check |
| issue_mention_users | Comma-separated GitHub usernames to tag for approval when branches do not match allow patterns (or when allow patterns are empty). | no | "" |
| issue_wait_minutes | Minutes to wait for issue approval before defaulting to delete. | no | 20 |
| dry_run | When true, logs actions without making changes. | no | false |
Outputs
no outputs