【问题标题】:GitHub - Enabling "comment" events / error: unable to process webhookGitHub - 启用“评论”事件/错误:无法处理 webhook
【发布时间】:2021-09-13 09:01:33
【问题描述】:

在我的存储库中,我试图配置一个 webhook,只要发出(拉取请求)comment 事件就会触发该 webhook。但是,当我测试该功能时,我一直看到错误

{"error":"unable to process webhook: <repo_name> does not have comment events enabled"}

每当我在 Webhooks / Manage webhook 页面下检查 Recent Deliveries 时。

问题:如何为我的存储库启用comment 事件? 请注意,即使我在 您希望触发此 webhook 的哪些事件?

下选择 将所有内容发送给我,错误仍然存​​在

【问题讨论】:

    标签: github continuous-integration webhooks github-api continuous-deployment


    【解决方案1】:

    我会发布我自己问题的答案,以防将来有人遇到类似问题。该问题已通过以下方式解决:

    1. 在 CI 服务仪表板中为存储库启用 comment Webhook 事件(而不是在 GitHub 中配置存储库设置)
    2. 在 GitHub webhook 设置中启用 Issue comment 事件(当进行 PR 评论时,显然会触发 Issue comment 事件而不是 Pull request review comment)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-06-05
      • 2010-12-31
      • 2023-02-15
      • 1970-01-01
      • 1970-01-01
      • 2013-07-10
      • 2011-10-02
      • 1970-01-01
      相关资源
      最近更新 更多