From e24cb33363a07e6aaccc34c43ca2d8d62fe7bb4b Mon Sep 17 00:00:00 2001 From: Lena <241371603+zelenenka@users.noreply.github.com> Date: Mon, 2 Mar 2026 12:16:00 +0100 Subject: [PATCH] Fix duplicate bot versioning in false neg:s reporting (#50479) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The case of false negatives (“Missed opportunities”) was not considered when the bot versioning was added. Now we're also automatically attributing the false negatives to the bot version that made them. Release Notes: - N/A --- script/github-track-duplicate-bot-effectiveness.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/github-track-duplicate-bot-effectiveness.py b/script/github-track-duplicate-bot-effectiveness.py index 18bad6bbda..05e64026d9 100644 --- a/script/github-track-duplicate-bot-effectiveness.py +++ b/script/github-track-duplicate-bot-effectiveness.py @@ -92,6 +92,7 @@ def fetch_issue(issue_number): "node_id": data["node_id"], "author": (data.get("user") or {}).get("login", ""), "type_name": (data.get("type") or {}).get("name"), + "created_at": data.get("created_at", ""), } @@ -419,7 +420,8 @@ def classify_as_missed_opportunity(issue): """Issue closed as duplicate but the bot never commented.""" print(" -> Missed opportunity") add_or_update_project_item( - issue["node_id"], outcome="Missed opportunity", closed_as="duplicate", status="Auto-classified") + issue["node_id"], outcome="Missed opportunity", closed_as="duplicate", status="Auto-classified", + bot_comment_time=issue["created_at"]) def classify_open():