Configuring webhooks in GitHub Enterprise

You can configure a webhook so that you can link work items to Git commits.

Procedure

  1. Go to the GitHub repository page in the web browser.
  2. Click the Settings tab.
  3. In the navigation pane, click Hooks.
  4. Click Add Webhook.
  5. In the Payload URL field, paste the webhook URL that you copied in Registering and configuring the GitHub repository.
  6. In the Content type field, select any content type (both JSON and x-www-form-urlencoded are supported).
  7. In the Secret Key field, provide the same secret that you provided in Registering and configuring the GitHub repository.
  8. Below Which events would you like to trigger this webhook?, select Let me select individual events. In the options displayed, ensure that the Push option is not selected.
  9. Ensure that the Active check box is selected. This option keeps the webhook enabled and sends notifications whenever an event is triggered.
  10. Click Add webhook to complete the configuration of the webhook in GitHub Enterprise.