News for hackers. Stuff that matters.
Re:We stopped AI bot spam in our GitHub repo using Git's –au... by drusepth on Monday May 18, 2026 @04:56PM (#48185508)
What is the benefit of deleting a PR over just closing it? It seems like closing has the benefit of signaling what kinds of PRs aren't acceptable, which deleting would lose.
Re:We stopped AI bot spam in our GitHub repo using Git's –au... by TuxSH on Monday May 18, 2026 @05:17PM (#48185767)
Closing a PR or issue still makes it discoverable in PR/issue search results, as opposed to deleting an issue.
Re:We stopped AI bot spam in our GitHub repo using Git's –au... by karussell on Monday May 18, 2026 @07:06PM (#48187094)
This. But OP wanted special requirements to open a PR. I.e. if those requirements are not met the PR is never visible to all and so admins can reject spam PRs without giving them a platform.
Re:We stopped AI bot spam in our GitHub repo using Git's –au... by halapro on Tuesday May 19, 2026 @04:50AM (#48190878)
We occasionally get traditional SPAM PRs pointing to their product. In that case it is very useful to clear out title, PR body and reset the commits as well, so none of that appears on the repo.

This is time consuming.

Unfortunately the PR and the PR author will forever be listed there and linking to their product anyway.

Re:We stopped AI bot spam in our GitHub repo using Git's –au... by TuxSH on Wednesday May 20, 2026 @11:16AM (#48209204)
> Unfortunately the PR and the PR author will forever be listed there

If they've been doing that to the other repo (and especially if they're just a spam account), there's a good chance using the "report" button and/or contacting GH support directly can yield positive results, up to the spam account being deleted (and the PR is usually deleted).

Unfortunately this doesn't scale.

Re:We stopped AI bot spam in our GitHub repo using Git's –au... by halapro on Thursday May 21, 2026 @09:19AM (#48222174)
> Unfortunately this doesn't scale

Correct. I used to report them, but 3/4 years ago they made it more difficult to report anything because you have to explain what's wrong even when it's very clear.

Re:We stopped AI bot spam in our GitHub repo using Git's –au... by halapro on Tuesday May 19, 2026 @04:49AM (#48190861)
In the future, when you're looking at past PRs, you'll end up with a list of closed PRs that look legitimate from their titles. You'll waste time opening each one to figure out why it was closed.

This is particularly annoying because PRs also show up in the issue and in the issue list as "this issue has 3 PRs that will close it", when it's all. just. spam.