Skip to content

Import 'Allow specified actors to bypass required pull requests' rule

Tetiana Zavediuk requested to merge tz-384939-require-pr-before-merging into master

What does this MR do and why?

It resolves Branch protection rule: Require a pull request before merging - Allow specified actors to bypass required pull requests.

Screenshots or screen recordings

allow-specified-actors-to-bypass-required-pr

How to set up and validate locally

  1. On GitHub have a project which belongs to the organisation
  2. On GitHub create a protection rule for any branch of the project with Require a pull request before merging - Allow specified actors to bypass required pull requests enabled. Add users to the list of users who can bypass required pull requests (these users must have a public-facing email address on GitHub that matches their GitLab email address)
  3. Import this project into a GitLab group (users who can bypass required pull requests have to be group members)
  4. Go to project -> Settings -> Repository -> expand Protected branches section
  5. Ensure the same branch is protected on GitLab with such setting:
  • Allowed to push - the users who can bypass required pull requests

MR acceptance checklist

Edited by Tetiana Zavediuk

Merge request reports