Skip to content

A GitHub App built with Probot. A probot app to try label spammy pull requests. Upon listening to the news of how people were spamming legit repos with spammy PRs for a Hacktoberfest T-shirt, I decided to take matter in my own hands

License

Notifications You must be signed in to change notification settings

Chinmay-KB/project-spampr

Repository files navigation

Starware

All Contributors

The bot is live in marketplace!!

PS- This probot app was built at Hero Hacks. You can check out the project here

project-spampr

A GitHub App built with Probot. A probot app to try label spammy pull requests. Upon listening to the news of how people were spamming legit repos with spammy PRs for a Hacktoberfest T-shirt, I decided to take matter in my own hands😎😎

What it does

If the bot feels the PR is a spammy pr, it will add "spam", "invalid", "spamprbot-reject" and "spamtober" tags in the pr, along with a personalized comment! If the bot feels the PR is legit, it adds a "spamprbot-accept" tag and a simple comment. The maintainer then can view all the pull requests by this tag and close them if required.

How it does

Assumptions were made The bot takes a dumb assumption that if a user has been assigned an issue, only then will his/her PR be seen as a legit PR. If someone who is not assigned any issue makes a contribution, their PR will me marked invalid. This may not be a perfect use case, but may be helpful for repositories who are getting tens and hundreds of such spammy PRs for hacktoberfest. If this workflow can hinder your contributions in the PR, then kindly do not use this bot

Setup

# Install dependencies
npm install

# Run the bot
npm start

This will run the bot in localhost. You can install it in your repositories from localhost itself.

Contributing

If you have suggestions for how project-spampr could be improved, or want to report a bug, open an issue! I'd love all and any contributions.

For more, check out the Contributing Guide.

License

ISC © 2020 Chinmay Kabi [email protected]

Starware

project-spampr is Starware.
This means you're free to use the project, as long as you star its GitHub repository.
Your appreciation makes us grow and glow up. ⭐

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Chinmay Kabi

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

About

A GitHub App built with Probot. A probot app to try label spammy pull requests. Upon listening to the news of how people were spamming legit repos with spammy PRs for a Hacktoberfest T-shirt, I decided to take matter in my own hands

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •