diff --git a/src/common/github-service.ts b/src/common/github-service.ts index 51cc3b1..ec8f5e4 100644 --- a/src/common/github-service.ts +++ b/src/common/github-service.ts @@ -365,12 +365,11 @@ class GitHubService { return pullRequests.map((pr) => { return { ...pr, - // @ts-expect-error sadasd - labels: pr.labels.nodes, + labels: pr.labels?.nodes ?? [], user: pr.author, html_url: pr.url, }; - }); + }) as any as PrItem[]; } } diff --git a/src/pages/release-notes/release-notes.tsx b/src/pages/release-notes/release-notes.tsx index ab0f40a..8cd512d 100644 --- a/src/pages/release-notes/release-notes.tsx +++ b/src/pages/release-notes/release-notes.tsx @@ -38,6 +38,14 @@ export const ReleaseNotes: FC = ({ version, onVersionChange, ignoredPrior const loadPrs = useCallback(async () => { setLoading(true); setProgress(undefined); + + if (version === 'serverless') { + setPrs(await github.getPrsForServerless(config)); + setLoading(false); + setProgress(100); + return; + } + try { subscriptionRef.current = ( await github.getPrsForVersion(