There are two reasons for configuration the PR bot on a repository.
1. Process PRs
2. Process commit commands
Most of the time we want both of these, but sometimes, a repo exists only for commit command processing (typically /backport). For those repositories, we would like to configure them to not even allow PR/MRs, to avoid having users doing so in error. This is currently not possible, as (at least) GitLab will return 403 when listing merge requests for a repository where they are disabled, which in turn causes getPeriodicItems in the PR bot to fail.
To solve this, I would like to make it possible to disable PR processing for a repo through configuration. Perhaps we should also make commit processing optional for symmetry.
1. Process PRs
2. Process commit commands
Most of the time we want both of these, but sometimes, a repo exists only for commit command processing (typically /backport). For those repositories, we would like to configure them to not even allow PR/MRs, to avoid having users doing so in error. This is currently not possible, as (at least) GitLab will return 403 when listing merge requests for a repository where they are disabled, which in turn causes getPeriodicItems in the PR bot to fail.
To solve this, I would like to make it possible to disable PR processing for a repo through configuration. Perhaps we should also make commit processing optional for symmetry.