From fe7f9146813ceca1b3c531b96902fb914ee91133 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Sat, 13 Jun 2026 14:42:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=5Fhandle=5Fpull=5Frequest=20=E8=A1=A5?= =?UTF-8?q?=E5=85=85=20synchronize=20action=20dispatch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 姜维排查发现 _handle_pull_request 只处理 opened/closed, Gitea 发 pull_request + action=synchronize 时被静默丢弃。 _handle_pr_synchronize 已存在但未被 dispatch 到。 修复:加 elif action == synchronize dispatch。 pull_request_sync 注册保留作为双保险。 --- src/api/toolchain_routes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api/toolchain_routes.py b/src/api/toolchain_routes.py index e42f3cb..36ee3b3 100644 --- a/src/api/toolchain_routes.py +++ b/src/api/toolchain_routes.py @@ -342,6 +342,8 @@ async def _handle_pull_request(payload: Dict[str, Any]) -> None: await _handle_pr_opened(payload) elif action == "closed": await _handle_pr_closed(payload) + elif action == "synchronize": + await _handle_pr_synchronize(payload) async def _handle_pr_opened(payload: Dict[str, Any]) -> None: