* Replaces owner/repo#123 references with clickable hyperlinks to GitHub.
(text: string)
| 293 | * Replaces owner/repo#123 references with clickable hyperlinks to GitHub. |
| 294 | */ |
| 295 | function 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 | |
| 310 | function numberToLetter(n: number): string { |
| 311 | let result = '' |
no test coverage detected