MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / linkifyIssueReferences

Function linkifyIssueReferences

source code/utils/markdown.ts:297–310  ·  view source on GitHub ↗

* Replaces owner/repo#123 references with clickable hyperlinks to GitHub.

(text: string)

Source from the content-addressed store, hash-verified

295 * Replaces owner/repo#123 references with clickable hyperlinks to GitHub.
296 */
297function linkifyIssueReferences(text: string): string {
298 if (!supportsHyperlinks()) {
299 return text
300 }
301 return text.replace(
302 ISSUE_REF_PATTERN,
303 (_match, prefix, repo, num) =>
304 prefix +
305 createHyperlink(
306 `https://github.com/${repo}/issues/${num}`,
307 `${repo}#${num}`,
308 ),
309 )
310}
311
312function numberToLetter(n: number): string {
313 let result = ''

Callers 1

formatTokenFunction · 0.85

Calls 2

supportsHyperlinksFunction · 0.85
createHyperlinkFunction · 0.85

Tested by

no test coverage detected