Giter VIP home page Giter VIP logo

pr-troll's Introduction

pr-troll

The troll that will challenge your PR

pr-troll's People

Contributors

jacekelgda avatar

Watchers

James Cloos avatar

pr-troll's Issues

Trolling UI

If build is failing, we should have a nice way of explaining why. There is a random factor in here which says if and how PR will be trolled. Before PR is submitted author doesn't know if and how it will be trolled. That's why, we should provide nice information why build failed ( got trolled ) and what are the steps to make it nice.

Trolling logic

This is the main logic of trolls. Trolls can fail or pass a builds of PR.

There are multiple trolls. Each with different trolling ability. Rules are characteristics of trolls https://github.com/jacekelgda/pr-troll/issues?q=is%3Aissue+is%3Aopen+label%3Arule .

There are two stages of trolling in each created PR.

First level per each PR decides if PR is going to be trolled ( Described in here #11 ). Depending on trolling level there will be a one in a x chance PR is going to be trolled.

Second level applies only for PRs that are trolled. There is a random troll assigned to the PR which should stick with it. Each PR update since assignment should have that troll.

Example:

  1. PR was created
  2. PR got trolled
  3. Random troll assignment - Refactor commit Troll
  4. PR build got crashed by the Refactor troll with explanation that refactor commit should be added to that PR.
  5. Refactor troll waits for PR update
  6. PR was updated
  7. Refactor troll found refactor commit in updated PR
  8. Troll passes the build for PR and goes away

Documentation

This troll should check if Readme.md was updated.

Count number of PRs from author

One of the first important abilities of troll will be to pinpoint which PR it is from specific author. It could be used for various things. This will lead the way to other functionalities.

Technical debt

This troll should check if some files are stale in the project.

Note: There should be a filter to it to exclude config files and those without living code.

Trolling levels

Trolling lvl hard, medium, soft

There should be a place where admin can assign trolling level to a project. Each PR will have a chance of being trolled based on lvl factor.

hard - 80% chance of being trolled
medium - 50% chance of being trolled
soft - 30% chance of being trolled

Consistency

This is a nice troll. It is a black sheep of the troll family. It will appreciate your consistent contributions. It counts each merged PR by author and give away goods for round numbers.

5, 10, 15, 20 - contributions will be converted to coins!

Refactor

This troll checks if there was a refactor commit included inside PR. It should be announced what is the commit message format for such commit. This could even be a smart commit addition, example: Normal commit message --refactor #3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.