MCPcopy Index your code
hub / github.com/refined-github/refined-github / createRghIssueLink

Function createRghIssueLink

source/helpers/rgh-links.tsx:5–18  ·  view source on GitHub ↗
(issueNumber: number | string, newTab = false)

Source from the content-addressed store, hash-verified

3import {getOldFeatureNames} from '../feature-data.js';
4
5export function createRghIssueLink(issueNumber: number | string, newTab = false): Element {
6 const issueUrl = `https://github.com/refined-github/refined-github/issues/${issueNumber}`;
7 return (
8 <a
9 data-hovercard-type="issue"
10 data-hovercard-url={issueUrl + '/hovercard'}
11 href={issueUrl}
12 target={newTab ? '_blank' : undefined}
13 rel={newTab ? 'noopener noreferrer' : undefined}
14 >
15 #{issueNumber}
16 </a>
17 );
18}
19
20export function getFeatureUrl(id: FeatureId): string {
21 return `https://github.com/refined-github/refined-github/blob/main/source/features/${id}.tsx`;

Callers 3

linkifyIssueFunction · 0.85
getDisabledReasonFunction · 0.85
markLocalHotfixesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected