跳至主要内容

重新投递 Webhooks

为帮助从失败的投递中恢复,您可以重新投递过去 3 天内的 Webhook 投递。

关于重新投递 Webhooks

您可能希望重新投递 Webhook,以帮助测试您的应用程序或从服务器宕机中恢复。您可以重新投递过去 3 天内发生的 Webhook 投递。GitHub 不会自动重新投递失败的投递。

重新投递仓库 Webhooks

只有拥有仓库管理员权限的人员才能在该仓库中重新投递 Webhooks。

您可以使用 GitHub 网页界面或 REST API 为仓库重新投递 Webhooks。有关使用 REST API 重新投递 Webhooks 的更多信息,请参阅 仓库 Webhooks 的 REST API 端点

  1. 在 GitHub 上,导航至仓库的主页面。

  2. 在您的仓库名称下,点击 设置。如果看不到 “设置” 选项卡,请选择 下拉菜单,然后点击 设置

    Screenshot of a repository header showing the tabs. The "Settings" tab is highlighted by a dark orange outline.

  3. 在侧边栏的“代码与自动化”部分,点击 Webhooks

  4. 在 Webhooks 列表中,点击您想重新投递的 Webhook 的 URL。如果未配置任何 Webhook,则列表中不会出现任何项。

    Screenshot of a list of webhooks. The URL link to view a webhook is highlighted with an orange outline.

  5. 点击 Recent deliveries。将列出过去 3 天内的所有投递。如果该 Webhook 在过去 3 天内未曾投递,则不会列出任何投递。

  6. 点击您想重新投递的投递对应的 GUID。

  7. 点击 重新投递

重新投递组织 Webhooks

只有组织所有者才能在该组织中重新投递 Webhooks。

您可以使用 GitHub 网页界面或 REST API 为组织重新投递 Webhooks。有关使用 REST API 重新投递 Webhooks 的更多信息,请参阅 组织 Webhooks 的 REST API 端点

  1. 在 GitHub 上,前往该组织的首页。

  2. 在您的组织名称下,点击 设置。如果看不到 “设置” 选项卡,请选择 下拉菜单,然后点击 设置

    Screenshot of the tabs in an organization's profile. The "Settings" tab is outlined in dark orange.

  3. 在侧边栏的“代码与自动化”部分,点击 Webhooks

  4. 在 Webhooks 列表中,点击您想重新投递的 Webhook 的 URL。如果未配置任何 Webhook,则列表中不会出现任何项。

    Screenshot of a list of webhooks. The URL link to view a webhook is highlighted with an orange outline.

  5. 点击 Recent deliveries。将列出过去 3 天内的所有投递。如果该 Webhook 在过去 3 天内未曾投递,则不会列出任何投递。

  6. 点击您想重新投递的投递对应的 GUID。

  7. 点击 重新投递

重新投递 GitHub App Webhooks

GitHub App 的所有者可以为该应用重新投递 Webhooks。如果该应用所有者为 GitHub App 指定了应用管理员,则这些管理员也可以重新投递 Webhooks。

您可以使用 GitHub 网页界面或 REST API 为 GitHub App 重新投递 Webhooks。有关使用 REST API 重新投递的更多信息,请参阅 GitHub App Webhooks 的 REST API 端点

  1. 在 GitHub 任意页面的右上角,点击您的个人资料图片。

  2. 前往您的账户设置。

    • 对于由个人账户拥有的 App,点击 设置
    • 对于由组织拥有的 App
      1. 点击 您的组织
      2. 在组织右侧,点击 设置
  3. 在左侧边栏,点击 开发者设置

  4. 在左侧边栏,点击 GitHub Apps

  5. 在您想重新投递 Webhook 的 GitHub App 旁边,点击 编辑

  6. 在侧边栏,点击 高级

  7. 在 “Recent deliveries” 下,过去 3 天内的所有投递都会列出。如果该 Webhook 在过去 3 天内未曾投递,则不会列出任何投递。如果 Webhooks 未激活,则不会出现 “Recent Deliveries” 部分。

    点击您想重新投递的投递对应的 GUID。

    Screenshot of the "Recent deliveries" list for a webhook. A delivery GUID in the list of deliveries is highlighted with an orange outline.

  8. 点击 重新投递

重新投递 GitHub Marketplace Webhooks

GitHub App 的所有者可以为该应用重新投递 GitHub Marketplace Webhooks。如果该应用所有者为 GitHub App 指定了应用管理员,则这些管理员也可以重新投递 Webhooks。

  1. 前往您的 GitHub Marketplace 列表页面

  2. 在您想重新投递 Webhooks 的 GitHub Marketplace 列表旁边,点击 管理列表

  3. 在侧栏,点击 Webhook

  4. 在 “Recent deliveries” 下,过去 3 天内的所有投递都会列出。如果该 Webhook 在过去 3 天内未曾投递,则不会列出任何投递。如果 Webhooks 未激活,则不会出现 “Recent Deliveries” 部分。

    点击您想重新投递的投递对应的 GUID。

    Screenshot of the "Recent deliveries" list for a webhook. A delivery GUID in the list of deliveries is highlighted with an orange outline.

  5. 点击 重新投递

重新投递 GitHub Sponsors Webhooks

只有受赞助账户的所有者才能为该账户重新投递赞助 Webhooks。

  1. 在任何页面的右上角,点击您的个人资料图片,然后点击 您的赞助者

  2. 在您想重新投递 Webhooks 的账户旁边,点击 仪表板

  3. 在侧边栏,点击 Webhooks

  4. 在 Webhooks 列表中,点击您想重新投递的 Webhook 的 URL。如果未配置任何 Webhook,则列表中不会出现任何项。

    Screenshot of a list of webhooks. The URL link to view a webhook is highlighted with an orange outline.

  5. 在 “Recent deliveries” 下,过去 3 天内的所有投递都会列出。如果该 Webhook 在过去 3 天内未曾投递,则不会列出任何投递。如果 Webhooks 未激活,则不会出现 “Recent Deliveries” 部分。

    点击您想重新投递的投递对应的 GUID。

    Screenshot of the "Recent deliveries" list for a webhook. A delivery GUID in the list of deliveries is highlighted with an orange outline.

  6. 点击 重新投递

© . This site is unofficial and not affiliated with GitHub, Inc.