mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-20 17:13:49 +00:00
fix(push): render created tags/branches as create events instead of 0 commits
This commit is contained in:
4 files changed
+36
-2
No files matched your search
@@ -20,6 +20,10 @@
|
||||
- 用户需先执行 `/gh login`,且 OAuth 密钥(`GITHUB_CLIENT_ID` / `GITHUB_CLIENT_SECRET`、`BASE_URL`)已配置。
|
||||
- 斜杠命令由定时任务每 5 分钟同步;全局注册可能需要约 1 小时传播。
|
||||
|
||||
## 创建标签/分支后收到"0 个提交"的推送消息
|
||||
|
||||
通过 `git push` 创建标签或空分支时,事件以 `created: true` 且无提交的 push 事件到达——由于载荷带有 `created` 标志,会被渲染为正常的创建消息。若仍看到"0 个提交",说明载荷中缺少 `created` 标志(例如旧或不合规的投递)。
|
||||
|
||||
## 删除分支后收到"0 个提交"的推送消息
|
||||
|
||||
通过 `git push --delete` 删除分支时,事件以 `deleted: true` 的 push 事件到达——会被渲染为正常的删除消息。若仍看到"0 个提交",说明载荷中缺少 `deleted` 标志(例如旧投递)。
|
||||
|
||||
Reference in new issue
Block a user