mirror of
https://github.com/zed-industries/zed.git
synced 2026-05-31 19:05:00 +07:00
Fix duplicate bot versioning in false neg:s reporting (#50479)
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
This commit is contained in:
parent
c05e5859c6
commit
183d1a41f7
1 changed files with 3 additions and 1 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Reference in a new issue