Fix unsend msg:

This commit is contained in:
Raykov-MS 2026-03-05 18:40:42 +03:00
parent aff5d95d74
commit f4f3c43128

View File

@ -1100,6 +1100,13 @@ async def gitea_webhook(
await handle_issue_comment(payload) await handle_issue_comment(payload)
return {"ok": "true"} return {"ok": "true"}
if x_gitea_event == "pull_request_comment":
if payload.get("comment"):
await handle_pull_request_comment(payload)
elif payload.get("review"):
await handle_pr_reviewed(payload)
return {"ok": "true"}
if x_gitea_event in ("pull_request_review", "pull_request_approved", "pull_request_rejected") and payload.get("review"): if x_gitea_event in ("pull_request_review", "pull_request_approved", "pull_request_rejected") and payload.get("review"):
await handle_pr_reviewed(payload) await handle_pr_reviewed(payload)
return {"ok": "true"} return {"ok": "true"}