Configuring webhooks in GitHub Enterprise
You can configure a webhook so that you can link work items to Git commits.
Procedure
- Go to the GitHub repository page in the web browser.
- Click the Settings tab.
- In the navigation pane, click Hooks.
- Click Add Webhook.
- In the Payload URL field, paste the webhook URL that you copied in Registering and configuring the GitHub repository.
- In the Content type field, select any content type (both JSON and x-www-form-urlencoded are supported).
- In the Secret Key field, provide the same secret that you provided in Registering and configuring the GitHub repository.
- 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.
- Ensure that the Active check box is selected. This option keeps the webhook enabled and sends notifications whenever an event is triggered.
- Click Add webhook to complete the configuration of the webhook in GitHub Enterprise.