Skip to main content

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

Metadata

Release files for Repo2Kook 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Repo2Kook 0.0.2
File Size Uploaded
repo2kook-0.0.2.tar.gz 20.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Repo2Kook 0.0.2
File Interpreter ABI Platform
repo2kook-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 40.5 kB

Release files / repo2kook-0.0.2.tar.gz

Download URL repo2kook-0.0.2.tar.gz
Size 20.0 kB
Tags Source
SHA-256 checksum
How to use checksums
45ad90f251aeb194d0c0db63ea61f4fc272a2a57813360127ade5e5d370482ae
BLAKE2b-256 checksum
How to use checksums
37a508994d83648c2592890804c7828c32e2737aa1f9843a5abc2afca6cc144e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.22.1 CPython/3.10.12 Linux/6.4.0-060400rc1-generic

Release files / repo2kook-0.0.2-py3-none-any.whl

Download URL repo2kook-0.0.2-py3-none-any.whl
Size 20.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1596dbb8be6eb111d552daa21e9d9e00656d360c810303ef58549c99117ad1df
BLAKE2b-256 checksum
How to use checksums
ddcef913e8d4d064763715c1982504fe9849e78e1ec24d0a5ee32e391449c4f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.22.1 CPython/3.10.12 Linux/6.4.0-060400rc1-generic

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page