Jenkins GitHub Branch Integration - johnttaylor/epc GitHub Wiki

To enforce the workflow of the CI builds must be be successful before merging a Pull Request, the following setup needs to be performed in GitHub. The steps should be applied to both the develop and main branches.

Enable Branch Rules

  1. Go to the repository and select Settings

    image

  2. Select 'Branches'

    image

  3. For each branch, add a branch rule by selection Add rule

    image

  4. Enter the branch name and select the Require status checks to pass before merging and Require branches to be up to date before merging options, then click the Create button at the bottom of the page.

    image