(body: string)
| 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. |
| 123 | export 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 |
no outgoing calls
no test coverage detected