Skip to content

Instantly share code, notes, and snippets.

@freakynit
Created February 9, 2026 03:51
Show Gist options
  • Select an option

  • Save freakynit/c351872e4e8f2d73e3f21c467853d968 to your computer and use it in GitHub Desktop.

Select an option

Save freakynit/c351872e4e8f2d73e3f21c467853d968 to your computer and use it in GitHub Desktop.

Decision can also be made on derived spam score:

[3 points] PR title contains "update readme" or "update README.md" (case insensitive)
[2 points] PR body/description is empty or contains less than 20 characters
[3 points] Only README.md file is modified (single file change)
[2 points] Total additions and deletions are less than 5 lines (trivial changes)
[3 points] GitHub account age is less than 7 days old
[1 point] User has fewer than 2 public repositories on their profile
[2 point] PR has no linked issues or references
[2 points] Commit message is generic (e.g., "update", "fix", "changes", single word)
[1 point] User has zero contributions to other repositories
[2 points] Changes are only whitespace, formatting, or single character typos

Scoring Thresholds

[6-8 points] Label as "potential-spam" for manual review
[9-11 points] Label as "likely-spam" for manual review
[12+ points] Label as "confirmed-spam" and auto-close PR

Note: A separate reusable github action can be created with all this that any repo can use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment