Skip to main content

Send GitHub Webhook to Kook

Project description

Repo2Kook

PyPI PyPI - License pdm-managed Zeabur-Deployed
优雅地转发 GitHub Webhook 事件到 Kook

📷 截图

issue example pr example push example comment example

🔨 使用

使用 Zeabur 上部署的公用服务

公用服务版不支持使用 GitHub Webhook Secret 和飞书 Webhook Secret。优点是使用方便,仅需替换 Webhook URL 即可。

具体步骤 👇
  1. 在飞书群组中添加一个 Webhook 机器人。

添加 Webhook 机器人

  1. 获取飞书 Webhook URL(注:公用服务版不支持签名校验)

获取 Webhook

  1. GitHub Repo Settings 中填写 Webhook URL,选择需要的事件。填写 https://webhook.zeabur.app/open-apis/bot/v2/hook/{你的飞书 Webhook Token}(或直接将 open.feushu.cn 替换为 webhook.zeabur.app) token 位于飞书 Webhook URL 结尾,形如b8b957dc-****...

填写 Webhook URL

  1. 现在,当有指定事件发生时,飞书群组中就会收到消息了。
issue example

使用 Zeabur 一键部署公用版

Deploy on Zeabur

使用 Zeabur 一键部署独立版

TODO

📦 使用 Docker 部署

TODO

🔒 安全性

使用 GitHub/飞书 Webhook Secret 可以提高安全性,但需要独立部署。

📅 支持的事件

  • push

  • pull_request

    • assigned

    • review_request

  • pull_request_review

  • pull_request_comment

  • issue

    • assigned
  • issue_comment

  • workflow_run

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

repo2kook-0.0.1.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

repo2kook-0.0.1-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file repo2kook-0.0.1.tar.gz.

File metadata

  • Download URL: repo2kook-0.0.1.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.18.2 CPython/3.10.12 Linux/6.4.0-060400rc1-generic

File hashes

Hashes for repo2kook-0.0.1.tar.gz
Algorithm Hash digest
SHA256 568a48a211420e1964ab1ed13e03e354043d6a498ab7e60588bfd16769e19a9e
MD5 f75e8906bcd5c76fd9be2112f6c48c98
BLAKE2b-256 ac84982b33332697c5af9792ade10b7c3896875dd6962ccf2f1df2b4268939bb

See more details on using hashes here.

File details

Details for the file repo2kook-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: repo2kook-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.18.2 CPython/3.10.12 Linux/6.4.0-060400rc1-generic

File hashes

Hashes for repo2kook-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 94bd75d972e4b11831ad8b680aa5e8c525a36eafa02041c3a9fd449218bae20e
MD5 afb0cb48ffd01f2503d36030f9c4852b
BLAKE2b-256 934aeee534d2eeea07303831078a30c2f3c064eb80f2d83dad96aa6f8a16100c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page