Skip to content

Commit 9f22c60

Browse files
protm on comment is not detect by the script
1 parent cdee423 commit 9f22c60

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dev/stats/get_important_pr_candidates.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,7 @@ def search_prs_with_filters(
778778
if len(all_prs) >= limit:
779779
break
780780

781+
is_protm_query = "protm" in query.lower()
781782
console.print(f"[blue]Searching: {query}[/]")
782783

783784
try:
@@ -802,6 +803,7 @@ def search_prs_with_filters(
802803
"created_at": issue.created_at,
803804
"updated_at": issue.updated_at,
804805
"reactions_count": getattr(issue, "reactions", {}).get("total_count", 0),
806+
"found_by_protm_search": is_protm_query,
805807
}
806808

807809
all_prs.append(pr_info)
@@ -855,7 +857,7 @@ def quick_score_prs(self, prs: list[dict]) -> list[tuple[int, float]]:
855857
score *= 1.2
856858

857859
full_text = f"{pr.get('title', '')} {pr.get('body', '')}".lower()
858-
if "protm" in full_text:
860+
if "protm" in full_text or pr.get("found_by_protm_search"):
859861
score *= 20
860862
console.print(f"[magenta]🔥 Found PROTM PR: #{pr['number']} - {pr['title']}[/]")
861863

0 commit comments

Comments
 (0)