About global webhooks
You can use global webhooks to notify an external web server when events occur within your enterprise. You can configure the server to receive the webhook's payload, then run an application or code that monitors, responds to, or enforces rules for user and organization management for your enterprise. For more information, see "Webhooks."
For example, you can configure your GitHub Enterprise Server instance to send a webhook when someone creates, deletes, or modifies a repository or organization within your enterprise. You can configure the server to automatically perform a task after receiving the webhook.
您也可以使用 GitHub Enterprise Server APIs 来管理全局 web 挂钩。 有关操作的完整列表,请参阅“全局 Webhook”。
Adding a global webhook
-
在 GitHub Enterprise Server 的右上角,单击� 的个人资料照片,然后单击“企业设置”。
-
在企业帐户侧边� �中,单击 “设置”。
-
在“ 设置”下,单击“挂钩”。
-
Click Add webhook.
-
Type the URL where you'd like to receive payloads.
-
Optionally, use the Content type drop-down menu, and click a payload format.
-
Optionally, in the Secret field, type a string to use as a
secret
key. -
Optionally, if your payload URL is HTTPS and you would not like GitHub Enterprise Server to verify SSL certificates when delivering payloads, select Disable SSL verification. Read the information about SSL verification, then click I understand my webhooks may not be secure.
Warning: SSL verification helps ensure that hook payloads are delivered securely. We do not recommend disabling SSL verification.
-
Decide if you'd like this webhook to trigger for every event or for selected events.
- For every event, select Send me everything.
- To choose specific events, select Let me select individual events.
-
If you chose to select individual events, select the events that will trigger the webhook.
-
Confirm that the Active checkbox is selected.
-
Click Add webhook.
Editing a global webhook
- 在 GitHub Enterprise Server 的右上角,单击� 的个人资料照片,然后单击“企业设置”。
- 在企业帐户侧边� �中,单击 “设置”。
- 在“ 设置”下,单击“挂钩”。
- Next to the webhook you'd like to edit, click Edit.
- Update the webhook's settings.
- Click Update webhook.
Deleting a global webhook
- 在 GitHub Enterprise Server 的右上角,单击� 的个人资料照片,然后单击“企业设置”。
- 在企业帐户侧边� �中,单击 “设置”。
- 在“ 设置”下,单击“挂钩”。
- Next to the webhook you'd like to delete, click Delete.
- Read the information about deleting a webhook, then click Yes, delete webhook.
Viewing recent deliveries and responses
- 在 GitHub Enterprise Server 的右上角,单击� 的个人资料照片,然后单击“企业设置”。
- 在企业帐户侧边� �中,单击 “设置”。
- 在“ 设置”下,单击“挂钩”。
- In the list of webhooks, click the webhook for which you'd like to see deliveries.
- Under "Recent deliveries", click a delivery to view details.