binbandit/HacktoberSentinel
Spam detector for Hacktoberfest PRs
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | GitHub token with repo scope (use the default secrets.GITHUB_TOKEN) | yes | — |
| close-spam | Auto-close PRs that exceed the spam threshold. | no | false |
| label-name | Label to apply to flagged PRs. Created automatically if it doesn't exist. | no | spam |
| comment-message | Comment to post when a PR is flagged. | no | This PR looks low-effort (e.g., README tweak). Please take another pass and use our contribution guide for context. Hacktoberfest tips: https://hacktoberfest.com/participation/#spam |
| min-score | Number of matched rules required to flag a PR. | no | 2 |
| custom-regex | Optional custom regex (or /pattern/flags) evaluated against the diff and body. | no | — |
| enable-readme-only | Enable rule: PR changes only README.md. | no | true |
| enable-contributor-regex | Enable rule: Adds contributor-style lines. | no | true |
| enable-generic-body | Enable rule: Generic PR title/body phrases. | no | true |
| enable-new-contributor | Enable rule: Author has fewer public repos than the threshold. | no | true |
| enable-custom-regex | Enable rule: Custom regex. | no | true |
| new-contributor-threshold | Threshold for public repos considered low signal. | no | 5 |
Outputs
| name | description |
|---|---|
| flagged | Whether the PR was flagged as spam. |
| score | Spam score assigned to the PR. |
| matched-rules | Comma-separated list of matched rule identifiers. |