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
-
Go to the repository and select
Settings
-
Select 'Branches'
-
For each branch, add a branch rule by selection
Add rule
-
Enter the branch name and select the
Require status checks to pass before merging
andRequire branches to be up to date before merging
options, then click theCreate
button at the bottom of the page.