跳至主要内容

查看 webhook 交付

您可以查看过去 3 天内 webhook 交付的详细信息。

关于 webhook 交付

您可以查看过去 3 天内发生的 webhook 交付的详细信息。查看过去的交付可以帮助您验证 webhook 是否按预期工作。

对于每个 webhook 交付,您可以查看

  • GitHub 发送的请求头和负载
  • 请求发送的时间
  • GitHub 从您的服务器收到的响应

您也可以重新发送最近的 webhook 交付。欲了解更多信息,请参阅 重新递送 webhook

查看仓库 webhook 交付

仅拥有仓库管理员访问权限的人员才能查看该仓库 webhook 的交付。

您可以使用 GitHub 网页界面或 REST API 查看仓库的最近 webhook 交付。有关使用 REST API 查看最近交付的更多信息,请参阅 仓库 webhook 的 REST API 端点

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

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

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

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

  4. 在 webhook 列表中,点击您想查看交付的 webhook 的 URL。如果未配置任何 webhook,则不会列出任何 webhook。

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

  5. 点击 最近的交付。将列出过去 3 天内的所有交付。如果该 webhook 在过去 3 天内未有交付,则不会列出任何交付。

  6. 点击交付 GUID 查看详情。

查看组织 webhook 交付

仅组织所有者可以查看该组织 webhook 的交付。

您可以使用 GitHub 网页界面或 REST API 查看组织的最近 webhook 交付。有关使用 REST API 查看最近交付的更多信息,请参阅 组织 webhook 的 REST API 端点

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

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

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

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

  4. 在 webhook 列表中,点击您想查看交付的 webhook 的 URL。如果未配置任何 webhook,则不会列出任何 webhook。

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

  5. 点击 最近的交付。将列出过去 3 天内的所有交付。如果该 webhook 在过去 3 天内未有交付,则不会列出任何交付。

  6. 点击交付 GUID 查看详情。

查看 GitHub App webhook 交付

GitHub App 的所有者可以查看该应用的最近 webhook 交付。如果该应用的所有者为 GitHub App 指定了应用管理员,则这些应用管理员也可以查看最近的 webhook 交付。

您可以使用 GitHub 网页界面或 REST API 查看 GitHub App 的最近 webhook 交付。有关使用 REST API 查看最近交付的更多信息,请参阅 GitHub App webhook 的 REST API 端点

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

  2. 前往您的账户设置。

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

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

  5. 在您想查看 webhook 交付的 GitHub App 旁边,点击 编辑

  6. 在侧边栏,点击 高级

  7. 在 “最近的交付” 下,将列出过去 3 天内的所有交付。如果该 webhook 在过去 3 天内未有交付,则不会列出任何交付。如果 webhook 未启用,“最近的交付” 部分将不存在。

    点击交付 GUID 查看详情。

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

查看 GitHub Marketplace webhook 交付

GitHub App 的所有者可以查看该应用的最近 GitHub Marketplace webhook 交付。如果该应用的所有者为 GitHub App 指定了应用管理员,则这些应用管理员也可以查看最近的 webhook 交付。

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

  2. 在您想查看 webhook 发送记录的 GitHub Marketplace 列表旁,点击 管理列表

  3. 在侧栏,点击 Webhook

  4. 在 “最近的交付” 下,将列出过去 3 天内的所有交付。如果该 webhook 在过去 3 天内未有交付,则不会列出任何交付。如果 webhook 未启用,“最近的交付” 部分将不存在。

    点击交付 GUID 查看详情。

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

查看 GitHub Sponsors webhook 交付

仅受赞助账户的所有者可以查看该账户的赞助 webhook 交付。

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

  2. 在您想查看 webhook 交付的账户旁边,点击 仪表盘

  3. 在侧边栏,点击 Webhook

  4. 在 webhook 列表中,点击您想查看交付的 webhook 的 URL。如果未配置任何 webhook,则不会列出任何 webhook。

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

  5. 在 “最近的交付” 下,将列出过去 3 天内的所有交付。如果该 webhook 在过去 3 天内未有交付,则不会列出任何交付。如果 webhook 未启用,“最近的交付” 部分将不存在。

    点击交付 GUID 查看详情。

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

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