Github project settings

This page describes the configuration needed to setup the communication between ci.centos.org and github.

WebHooks

For more details, see the CentOS wiki.

  1. Open the project settings

    Settings button

  2. Select Webhooks

    Webhook menu button

  3. Click “Add a webhook” button

    Webhook add button

  4. Create a push webhook to the url https://ci.centos.org/github-webhook/

    Webhook for the Github plugin

  5. Click “Add a webhook” button

    Webhook add button

  6. Create a push webhook to the url https://ci.centos.org/ghprbhook/

    • select ‘Let me select individual events’
    • unselect ‘Push’ and select ‘Pull Request’ and ‘Issue Comment’

    Webhook for the Github Pull Request Builder plugin

  7. Check that the webhooks are correctly configured (green)

    Webhook status

Protected branches

When we have a stable repo, we can enforce ci testing by using the following steps:

  1. Open the project settings

    Settings button

  2. Select Webhooks

    Webhook menu button

  3. Select the branch you want to protect

    Webhook menu button

  4. Select “Protect this Branch”, “Require status checks to pass before merging”, unselect “Require branches to be up to date before merging”, and select “ci.centos.org”. If you do not see “ci.centos.org”, it means that there has not yet been any pull requests tests on the repo.

    Webhook menu button