From 39add8d78a02736cc9870fa98f582fb532589959 Mon Sep 17 00:00:00 2001 From: huangyoje Date: Wed, 6 Aug 2025 10:14:33 +0800 Subject: [PATCH] Fix comment_id name in handle_ask_line --- pr_agent/servers/gitlab_webhook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr_agent/servers/gitlab_webhook.py b/pr_agent/servers/gitlab_webhook.py index 37e95f66..868756d7 100644 --- a/pr_agent/servers/gitlab_webhook.py +++ b/pr_agent/servers/gitlab_webhook.py @@ -287,7 +287,7 @@ def handle_ask_line(body, data): question = body.replace('/ask', '').strip() path = data['object_attributes']['position']['new_path'] side = 'RIGHT' # if line_range_['start']['type'] == 'new' else 'LEFT' - _id = data['object_attributes']["discussion_id"] + comment_id = data['object_attributes']["discussion_id"] get_logger().info("Handling line ") body = f"/ask_line --line_start={start_line} --line_end={end_line} --side={side} --file_name={path} --comment_id={comment_id} {question}" except Exception as e: