How It Works
Understanding the Sometimes review process
Sometimes uses a variety of factors to determine whether or not a PR requires review. Just a few of these factors are:
- Number of lines changed in the PR
- Average number of comments the PR author receives on PRs for this repo
These values are run through an algorithm that determines the odds that this type of PR should be reviewed. For example, a given author may submit a PR with 65 lines of code changed, and Sometimes would determine that a PR with these characteristics should be reviewed 72% of the time. Sometimes then uses a random number generator to determine if this specific PR will require review.
That same author may create a PR with 15 lines of code changed, which would require review 52% of the time.
This plot roughly depicts the relation between these 2 factors and how they impact the odds of a PR requiring review.
The power of Sometimes comes from its ability to determine if a PR should require a review. In order for this to work, you will need to disable GitHub's built-in "Require approvals" setting within your branch protection rules.