diff --git a/src/commands/research.ts b/src/commands/research.ts index f615b13942..45a03ddc4b 100644 --- a/src/commands/research.ts +++ b/src/commands/research.ts @@ -149,7 +149,7 @@ function fmtGithub(results?: GitHubItem[]): string { return results .map((item) => { const lines: string[] = []; - if (item.resultType === 'repo_readme') { + if (item.number == null && item.pageType == null) { lines.push(`[${item.repo ?? '?'}] README`); } else { const ref = item.number != null ? `#${item.number}` : ''; diff --git a/src/types/research.ts b/src/types/research.ts index d4c122219f..a810c08435 100644 --- a/src/types/research.ts +++ b/src/types/research.ts @@ -53,7 +53,6 @@ export interface PaperHit { } export interface GitHubItem { - resultType?: string; repo?: string; url?: string; pageType?: string;