googlecodelabs / tools

Codelabs management & hosting tools
Apache License 2.0
4.23k stars 1.14k forks source link

Address Spam Issues and Pull Requests (ideally with an automated Bot) #864

Open vorburger opened 1 year ago

vorburger commented 1 year ago

794 follow-up: This project has a surprising amount of clear Spam Issues and Pull Requests.

It would be fun if they could be tagged with a spam sort of label, which would post a standard comment on them, and close them.

It would be even more fun if their authors could be automagically added to a spammers.txt kind of file at the root of this repository... 😃

Perhaps something like this already exists as a ready-made Git Hub Action?

vorburger commented 1 year ago

Perhaps something like this already exists as a ready-made Git Hub Action?

https://github.com/marketplace?category=&type=actions&verification=&query=spam ...

vorburger commented 1 year ago

Quick Evaluation:

  1. https://github.com/balevine/mark-as-spam simple enough
  2. https://github.com/maximelafarie/spamtoberfest implements my "spammers list" blocklist idea. But unmainted? Let's not.
  3. https://github.com/andrewslotin/rummelsnuff (original with 46 Stars) = https://github.com/asmodat/rummelsnuff fork, but do those heuristics really work?
  4. https://github.com/liamg/antispam-action with simpler heuristics (e.g. here and here)

I suggest we start with 1. and will raise a PR for that, and if accepted I'll do a round of review and /spam what I find.

If more is ever needed, then 4. looks interesting, to me; and possibly to hack on extending.

vorburger commented 1 year ago

I just noticed that GitHub Orgs, on https://github.com/organizations/.../settings/blocked_users, have Block a user under Moderation. I wonder if that's available by API... if it is, it would be cool to have an Action which, on a "/spam" comment, would add the author of the Comment or Pull Request to that Block list from GitHub.