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

Function linkifyIssue

source/features/linkify-text.tsx:11–18  ·  view source on GitHub ↗
(paragraph: HTMLParagraphElement)

Source from the content-addressed store, hash-verified

9import observe from '../helpers/selector-observer.js';
10
11function linkifyIssue(paragraph: HTMLParagraphElement): void {
12 // Already linkified
13 if (elementExists('a', paragraph)) {
14 logError(new Error(`${paragraph.textContent} is already linkified`));
15 }
16
17 linkifyIssues(getRepo()!, paragraph);
18}
19
20function init(signal: AbortSignal): void {
21 observe(

Callers

nothing calls this directly

Calls 2

logErrorFunction · 0.85
linkifyIssuesFunction · 0.85

Tested by

no test coverage detected