当为回购发布新的 GitHub 版本时,通过 Push API 或 Push-bullet 发送通知?

Sending a notification Via Push API or Push-bullet when a new GitHub release is published for a repo?

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

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

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

This is a endpoint for github and bitbucket post-receive webhook notifications.
It uses PushBullet to send a summary of the commits to your Android device.

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

  • 如何监听 webhook JSON 有效载荷
  • 如何通过 PushBullet 发送通知