MCPcopy Index your code
hub / github.com/codeaashu/claude-code / linkifyIssueReferences

Function linkifyIssueReferences

src/utils/markdown.ts:295–308  ·  view source on GitHub ↗

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

(text: string)

Source from the content-addressed store, hash-verified

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

Callers 1

formatTokenFunction · 0.85

Calls 2

supportsHyperlinksFunction · 0.85
createHyperlinkFunction · 0.85

Tested by

no test coverage detected