diff --git a/packages/collector/src/getProjectIssues.ts b/packages/collector/src/getProjectIssues.ts index 581e3da14..668df4272 100644 --- a/packages/collector/src/getProjectIssues.ts +++ b/packages/collector/src/getProjectIssues.ts @@ -22,7 +22,7 @@ export async function getProjectIssues( }); return issues.data.map((issue) => ({ description: issue.body ?? "", - link: publicRepo ? issue.html_url : undefined, + ...(publicRepo && { link: issue.html_url }), number: issue.number, title: issue.title, }));