anti-slop
Version updated for https://github.com/peakoss/anti-slop to version v0.3.0.
- This action is used across all versions by 103 repositories.
Action Type
This is a Node action using Node version 24.
Go to the GitHub Marketplace to find the latest changes.
Action Summary
Anti Slop is a GitHub Action designed to automatically detect and close low-quality or AI-generated pull requests (PRs) before they reach the review queue. It leverages 34 configurable rules to evaluate PR attributes such as branch names, descriptions, commit messages, file changes, and contributor history, helping maintainers save time and focus on meaningful contributions. The action is language-agnostic, highly configurable with sensible defaults, and ensures open-source inclusivity while effectively mitigating spam and low-effort submissions.
What’s Changed
Added
maxChangedFilesandmaxChangedLinesoptions for new PR size checks that limit the number of changed files and changed lines (additions + deletions)requirePublicProfileoption that requires the PR author to have a public GitHub profileautofix-ci[bot]to default bot exemptions
Changed
- Reduced compiled action size
v0.2 v0.3 Reduction 51,478 lines (2.3 MB) 20,815 lines (0.9 MB) 60% maxDailyForksdefault from7to6- Reduce spam username consecutive digit threshold from 4 to 2
- Remove
public profilefrom profile completeness signals (now a separaterequirePublicProfilecheck) - Read
ownerandrepofrom the webhook payload instead of theGITHUB_REPOSITORYenv var, aligning with how all other context data is read, preparing for a future ecosystem CI and simplifying local testing (no need to edit the.envfile all the time)
Fixed
- Skip merge checks when the user profile is private, since merge data cannot be computed for private profiles
- Set
resultoutput topassedwhen check failures do not reachmaxFailures(previously the output was unset)
Refactored
- Convert
Inputenum to aconstobject - Switch to
Number.isNaNto avoid type coercion
Maintenance
- Cleanup input descriptions, add missing valid ranges and v0.3 changes to README
- Add v0.2 and v0.3 changes to
.env.example - Align test event fixtures with
context.ts - Switch indentation from spaces to tabs
- Reorganize and harden
tsconfig.json - Add
bunfig.tomlwith hardened bun install settings - Upgrade all dependencies
- Update tsdown dependency bundling config syntax
- Add tsx to
devDependenciesto make local testing work with bunlinker = "isolated" - Add
@types/nodetodevDependencies - Move
@octokit/webhooks-typestodevDependencies - Add import sorting to prettier
- Add
checkandtest:allscripts topackage.json - Add caching to eslint and prettier
- Improve eslint rule comment
- Simplify and consolidate
.gitignore - Add branch and commit ahead prerequisite checks to the release script
- Improve
.prettierignore