diff --git a/src/home/search/search-scorer.ts b/src/home/search/search-scorer.ts index 6c8ba8d..06059cc 100644 --- a/src/home/search/search-scorer.ts +++ b/src/home/search/search-scorer.ts @@ -95,11 +95,15 @@ export class SearchScorer { let score = 0; if (issue.repository_url) { const repoName = issue.repository_url.split("/").pop()?.toLowerCase() || ""; + const orgName = issue.repository_url.split("/").slice(-2)[0].toLowerCase() || ""; searchTerms.forEach((term) => { if (repoName.startsWith(term.toLowerCase())) { matchDetails.repoMatch = true; score += term.length / repoName.length; } + if (orgName.startsWith(term.toLowerCase())) { + score += term.length / orgName.length; + } }); } return score;