Skip to content

Add score-based spam detection besides blacklist #3

@ktos

Description

@ktos
  • I'm submitting a ...
    [ ] spammer report
    [ ] bug report
    [X] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary

It seems that this tool is only a simple blacklist - but I think some kind of negative scoring system may be introduced.

  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

I believe we can score PRs negatively (and positively) and mark as spam if a defined threshold is met. For example some things deducting score may be:

  • Changes only in text files (.md, .html).
  • Changes only in one file (or removal a single file),
  • Changes only in one line,
  • Changes consisting of words "awesome" or "amazing" ;) (aka: blacklisting words in commits messages and diffs themselves),
  • Empty descriptions,
  • "patch-1" as a name of remote branch.

Of course, it's not the best solution, as it won't be 100% bulletproof, but what do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions