【问题标题】:Sending a notification Via Push API or Push-bullet when a new GitHub release is published for a repo?在为 repo 发布新的 GitHub 版本时通过 Push API 或 Push-bullet 发送通知?
【发布时间】:2017-08-30 23:31:14
【问题描述】:

我们的应用程序的一个问题是它是在 Github 上发布的,因此用户必须主动检查是否有新的更新。然后让我很震惊,如果我们在发布新版本的应用程序时(自动)发送通知怎么办?但这比我预期的要复杂得多。我想通过我们的应用程序网站执行此操作。

【问题讨论】:

    标签: github push-notification backend pushbullet


    【解决方案1】:

    您需要设置一个与 release event 关联的 webhook。

    该 webhook 的 URL 必须引用您控制的服务器,并且您在该服务器上安装了 dgryski/ghpbhook

    这是 github 和 bitbucket 接收后 webhook 通知的端点。
    它使用 PushBullet 将提交摘要发送到您的 Android 设备。

    您需要调整该项目才能解码发布负载(而不是提交负载)。
    但它让您了解:

    • 如何监听 webhook JSON 负载
    • 如何通过 PushBullet 发送通知

    【讨论】:

      猜你喜欢
      • 2017-03-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-30
      • 1970-01-01
      • 1970-01-01
      • 2015-02-14
      • 1970-01-01
      相关资源
      最近更新 更多