From b556dc943e916fe349e83943e6f61bbaee157d8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=BB=BA=E5=B9=B3?= Date: Wed, 23 Apr 2025 15:23:27 +0800 Subject: [PATCH] . --- apps/pr/views.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/pr/views.py b/apps/pr/views.py index d8e2be0..13f9a4c 100644 --- a/apps/pr/views.py +++ b/apps/pr/views.py @@ -94,9 +94,10 @@ class WebHookView(View): labels = json_data["labels"] if labels and labels[0].get("title"): if json_data.get("object_attributes").get("detailed_merge_status") == "mergeable": - provider.save_pr_agent_log( - request_data=json_data, project_id=project_config.get("project_id") - ) + if json_data.get("object_attributes").get("action") == "update": + provider.save_pr_agent_log( + request_data=json_data, project_id=project_config.get("project_id") + ) # TODO:暂时官方没适配gitea # elif GIT_TYPE == "gitea": # if json_data.get("action") == "opened":