Uploaded image for project: 'Skara'
  1. Skara
  2. SKARA-1870

Make pr processing optional

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.0
    • None
    • bots
    • None

      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.

            zsong Zhao Song
            erikj Erik Joelsson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: