Skip to content

Add workflow to close low effort PRs - #80

Closed
ozh wants to merge 1 commit into
mainfrom
ozh-spam-pr
Closed

Add workflow to close low effort PRs#80
ozh wants to merge 1 commit into
mainfrom
ozh-spam-pr

Conversation

@ozh

@ozh ozh commented Aug 22, 2026

Copy link
Copy Markdown
Member

Hey @YOURLS/core,

Proposal to auto close those spam PRs.

This simple workflow, no dependency, simply checks the author's account age and the PR post length.

  • If age < 7 days or body < 100 chars (one of these 2 conditions is enough), PR is automatically closed
  • Bots, known contributors, are whitelisted

The workflow will not run in this PR branch, but here are its results in a test repo :

Thoughts ?

Not willing to engage a measure/counter-measure/counter-counter-measure/etc... war with the spammers, but for the spam PR we've had lately, this should do OK

@ozh

ozh commented Aug 22, 2026

Copy link
Copy Markdown
Member Author

(Maybe name: Close low effort PRs isn't the best - a new account could legit make a fine PR. Will rename it Close suspicious PRs maybe)

@ozh

ozh commented Aug 23, 2026

Copy link
Copy Markdown
Member Author

Closing. See internal discussion https://github.com/YOURLS/.github-private/discussions/92

@ozh ozh closed this Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant