Configuration
Learn how to configure Sometimes
Sometimes is configured using the sometimesreview.json
file in the root of your connected repository. The configuration file has the following structure and defaults:
NOTE: If a commit makes any changes to
sometimesreview.json
it will always require a review.
Configuration Options
riskCategory
Default: STANDARD
riskCategory
is used to customize your risk tolerance for a given repository. There are 3 options:
STANDARD
(default)EFFICIENT
CONSERVATIVE
STANDARD
is the default and recommended value. It provides a balanced middle-ground between efficiency and confidence. If the context of your repo or team require adjusting this tolerance, you can increase or decrease the likelihood of PRs needing review by using the EFFICIENT
or CONSERVATIVE
options.
minDeveloperPRs
Default: 10
If a given author has contributed (i.e. merged) fewer PRs to this repository than minDeveloperPRs
, then their PRs will always require a review. So if minDeveloperPRs
is set to 10 (the default), but a developer has only submitted 5 merged PRs to this repository, then their PR will require a review.
requiredApprovals
Default: 1
If a PR must be reviewed, then how many approvals does it require?