Skip to main content
我们经常发布文档更新,此页面的翻译可能仍在进行中。 有关最新信息,请访问英语文档

About webhooks

Webhooks provide a way for notifications to be delivered to an external web server whenever certain actions occur on a repository or organization.

Tip: 只有拥有组织所有者权限或仓库管理员权限的成员才能 manage webhooks for an organization. 有关详细信息,请参阅“组织中的角色”。

Webhooks can be triggered whenever a variety of actions are performed on a repository or an organization. For example, you can configure a webhook to execute whenever:

  • A repository is pushed to
  • A pull request is opened
  • A GitHub Pages site is built
  • A new member is added to a team

Using the GitHub Enterprise Server API, you can make these webhooks update an external issue tracker, trigger CI builds, update a backup mirror, or even deploy to your production server.

To set up a new webhook, you'll need access to an external server and familiarity with the technical procedures involved. For help on building a webhook, including a full list of actions you can associate with, see "About webhooks."