MCPcopy Create free account
hub / github.com/shfshanyue/Daily-Question / getIssues

Function getIssues

scripts/issue.ts:17–27  ·  view source on GitHub ↗
(after: string | undefined = undefined)

Source from the content-addressed store, hash-verified

15const sdk = getSdk(client)
16
17async function getIssues(after: string | undefined = undefined): Promise<any> {
18 const data = await sdk.issues({
19 after
20 })
21 const issues = data.repository?.issues
22 let moreIssues = []
23 if (issues?.pageInfo.endCursor) {
24 moreIssues = await getIssues(issues?.pageInfo?.endCursor)
25 }
26 return ([...issues?.nodes || [], ...moreIssues]).filter((issue: any) => issue.title.startsWith('【Q'))
27}
28
29retry(async (i: number) => {
30 console.log('Retring ', i)

Callers 1

issue.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected