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

Function init

source/features/repo-wide-file-finder.tsx:10–14  ·  view source on GitHub ↗
(signal: AbortSignal)

Source from the content-addressed store, hash-verified

8import {buildRepoUrl} from '../github-helpers/index.js';
9
10async function init(signal: AbortSignal): Promise<void> {
11 const ref = getCurrentGitRef() ?? await getDefaultBranch();
12 const url = buildRepoUrl('tree', ref) + '?search=1';
13 registerHotkey('t', url, {signal});
14}
15
16void features.add(import.meta.url, {
17 include: [

Callers

nothing calls this directly

Calls 4

getCurrentGitRefFunction · 0.85
getDefaultBranchFunction · 0.85
buildRepoUrlFunction · 0.85
registerHotkeyFunction · 0.85

Tested by

no test coverage detected