(nodes: any)
| 81 | } |
| 82 | |
| 83 | function parsePullRequests(nodes: any): PullRequest[] { |
| 84 | return nodes.map((pr) => { |
| 85 | return { |
| 86 | title: pr.title, |
| 87 | body: pr.body, |
| 88 | createdAt: new Date(pr.createdAt).toLocaleString("zh-CN"), |
| 89 | repository: { |
| 90 | nameWithOwner: pr.repository.nameWithOwner, |
| 91 | description: pr.repository.description, |
| 92 | }, |
| 93 | }; |
| 94 | }); |
| 95 | } |
| 96 | |
| 97 | async function fetchUserDataBatched( |
| 98 | octokit: Octokit, |
no outgoing calls
no test coverage detected