* Replaces owner/repo#123 references with clickable hyperlinks to GitHub.
(text: string)
| 708 | * Replaces owner/repo#123 references with clickable hyperlinks to GitHub. |
| 709 | */ |
| 710 | function linkifyIssueReferences(text: string): string { |
| 711 | if (!supportsHyperlinks()) { |
| 712 | return text |
| 713 | } |
| 714 | return text.replace( |
| 715 | ISSUE_REF_PATTERN, |
| 716 | (_match, prefix, repo, num) => |
| 717 | prefix + |
| 718 | createHyperlink( |
| 719 | `https://github.com/${repo}/issues/${num}`, |
| 720 | `${repo}#${num}`, |
| 721 | ), |
| 722 | ) |
| 723 | } |
| 724 | |
| 725 | function numberToLetter(n: number): string { |
| 726 | let result = '' |
no test coverage detected