GitHub Webhook 设置
- 在 GitHub 仓库中前往 Settings -> Webhooks -> Add webhook
- Payload URL 设置为
http://你的服务器地址:8000/github-webhook - Content type 选择
application/json - Secret 填写与配置文件中
SECRET相同的值 - 选择需要监听的事件(或选择 "Send me everything" 接收所有事件)
- 启用 webhook(勾选 "Active")