NREL / GEOPHIRES-X

MIT License
26 stars 21 forks source link

Require approved pull requests to merge #211

Closed softwareengineerprogrammer closed 1 month ago

softwareengineerprogrammer commented 1 month ago

Steps to enable:

  1. Go to https://github.com/NREL/GEOPHIRES-X/settings/branches
  2. Branch protection rules -> Add rule
  3. Branch name pattern: main
  4. Protect matching branches:
    1. Check "Require a pull request before merging"
    2. Check "Require approvals"
    3. Check "Require status checks to pass before merging"
    4. Select "py311 (ubuntu)" in "Status checks that are required." section: image
    5. Check "Do not allow bypassing the above settings"
  5. Click "Save changes" button

Full settings should look like this after completion:

Screenshot 2024-05-10 at 09 38 35

branch-settings-part-2

softwareengineerprogrammer commented 1 month ago

Worked with @kfbeckers to configure & validate that settings work as desired, resolving.