(prNumber: number)
| 14 | import listPrsForFileQuery from './list-prs-for-file.gql'; |
| 15 | |
| 16 | function getPrUrl(prNumber: number): string { |
| 17 | // https://caniuse.com/url-scroll-to-text-fragment |
| 18 | const hash = isFirefox() ? '' : `#:~:text=${new GitHubFileUrl(location.href).filePath}`; |
| 19 | return buildRepoUrl('pull', prNumber, 'files') + hash; |
| 20 | } |
| 21 | |
| 22 | function getHovercardUrl(prNumber: number): string { |
| 23 | return buildRepoUrl('pull', prNumber, 'hovercard'); |
no test coverage detected