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:
PR was created
PR got trolled
Random troll assignment - Refactor commit Troll
PR build got crashed by the Refactor troll with explanation that refactor commit should be added to that PR.
Refactor troll waits for PR update
PR was updated
Refactor troll found refactor commit in updated PR
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: