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

Function extractTargetReferences

packages/scripts/lib/commit-graph.ts:123–129  ·  view source on GitHub ↗
(body: string)

Source from the content-addressed store, hash-verified

121// way to find a discussion a release resolved. Cross-repo `owner/repo#N`
122// references are skipped — we only comment on this repo's discussions.
123export function extractTargetReferences(body: string): number[] {
124 const numbers = new Set<number>()
125 for (const [, n] of body.matchAll(TARGET_REFERENCE)) {
126 numbers.add(Number(n))
127 }
128 return Array.from(numbers).sort((a, b) => a - b)
129}
130
131// --- Pure core: contributors ----------------------------------------------
132

Callers 2

discussionCandidatesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected