MCPcopy Create free account
hub / github.com/47ng/nuqs / fetchClosingIssues

Function fetchClosingIssues

packages/scripts/lib/commit-graph.ts:394–414  ·  view source on GitHub ↗
(
  prNumbers: number[],
  githubToken: string
)

Source from the content-addressed store, hash-verified

392// author, or participant nodes (the fields finalize never reads). The body is
393// parsed for target references to surface discussion candidates.
394function 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

Callers 1

makeGitHubGraphReaderFunction · 0.85

Calls 1

fetchPRNodesFunction · 0.85

Tested by

no test coverage detected