fix(toolchain): 注册 pull_request_sync + pull_request_comment event type #41
Reference in New Issue
Block a user
Delete Branch "fix/toolchain-event-type-registration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
审查结果:APPROVED
✅ 正确性:
pull_request_sync(非pull_requestaction=synchronize),PR #38 原实现挂在错误的事件类型上pull_request_comment映射到_handle_pull_request_review安全:payload 无 review 字段时 handler early-return(仅 log warning)_handle_pull_request中移除 synchronize 分支正确,避免重复处理⚠️ 备注(非阻断):
pull_request_comment实际是 plain PR comment,映射到 review handler 会每次触发 warning log。如果 Gitea 的 issue_comment 已覆盖 plain PR comment(当前确实如此,L544),可以考虑后续移除pull_request_comment映射Approve