( prNumbers: number[], githubToken: string )
| 392 | // author, or participant nodes (the fields finalize never reads). The body is |
| 393 | // parsed for target references to surface discussion candidates. |
| 394 | function fetchClosingIssues( |
| 395 | prNumbers: number[], |
| 396 | githubToken: string |
| 397 | ): Promise<PRClosingIssues[]> { |
| 398 | return fetchPRNodes({ |
| 399 | prNumbers, |
| 400 | githubToken, |
| 401 | fnLabel: 'fetchClosingIssues', |
| 402 | selection: ` |
| 403 | number |
| 404 | body |
| 405 | closingIssuesReferences(first: 10) { |
| 406 | edges { |
| 407 | node { |
| 408 | number |
| 409 | } |
| 410 | } |
| 411 | }`, |
| 412 | nodeSchema: prClosingIssuesSchema |
| 413 | }) |
| 414 | } |
| 415 | |
| 416 | // Resolve which of the candidate numbers are actually discussions. A number that |
| 417 | // isn't one (an issue, a PR, a deleted number) comes back as `NOT_FOUND` — the |
no test coverage detected