MCPcopy
hub / github.com/refined-github/refined-github / getPrUrl

Function getPrUrl

source/features/list-prs-for-file.tsx:16–20  ·  view source on GitHub ↗
(prNumber: number)

Source from the content-addressed store, hash-verified

14import listPrsForFileQuery from './list-prs-for-file.gql';
15
16function 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
22function getHovercardUrl(prNumber: number): string {
23 return buildRepoUrl('pull', prNumber, 'hovercard');

Callers 1

getDropdownFunction · 0.70

Calls 1

buildRepoUrlFunction · 0.85

Tested by

no test coverage detected