@@ -466,13 +466,12 @@ def compute_conflicts(pr: dict[str, Any]) -> str:
466466 return "no"
467467
468468
469- def compute_facts (raw : dict [str , Any ], events : list [ dict [ str , Any ]], author : str ) -> dict [str , Any ]:
469+ def compute_facts (raw : dict [str , Any ], author : str ) -> dict [str , Any ]:
470470 pr = raw ["pr" ]
471471 checks = raw ["checks" ]
472472 failing = [c for c in checks if (c .get ("state" ) or "" ).upper () in ("FAILURE" , "ERROR" )]
473473 pending = [c for c in checks if (c .get ("state" ) or "" ).upper () in ("PENDING" , "QUEUED" , "IN_PROGRESS" )]
474- substantive = [e for e in events if is_substantive_activity (e )]
475- last_activity_ts = parse_ts ((substantive [- 1 ] or {}).get ("timestamp" )) if substantive else None
474+ last_activity_ts = parse_ts (pr ["updatedAt" ])
476475 api_author = actor_login (pr .get ("author" ) or {})
477476 return {
478477 "author" : author ,
@@ -974,7 +973,7 @@ def build_pr_result(
974973 raw = fetch_pr_raw (repo , owner , repo_name , pr_summary )
975974 author , delegator = effective_author (raw )
976975 events = normalize_events (raw , author , reviewers )
977- facts = compute_facts (raw , events , author )
976+ facts = compute_facts (raw , author )
978977 threads = group_discussion_threads (raw , events , author , reviewers , facts )
979978 classifications = classify_threads (repo , number , raw ["pr" ], facts , threads , model )
980979 side = route_pr (facts , classifications )
0 commit comments