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

Function add

source/features/repo-header-info.tsx:140–149  ·  view source on GitHub ↗
(repoLink: HTMLElement)

Source from the content-addressed store, hash-verified

138}
139
140async function add(repoLink: HTMLElement): Promise<void> {
141 const info = await getRepositoryInfo();
142
143 repoLink.classList.add('rgh-repo-header-info-updated');
144
145 markPrivate(repoLink, info.isPrivate);
146 addStars(repoLink, info.stargazerCount, info.viewerHasStarred);
147 markForked(repoLink, info.forked);
148 addCiStatus(repoLink, info.ciCommit);
149}
150
151async function init(signal: AbortSignal): Promise<void> {
152 observe(

Callers

nothing calls this directly

Calls 5

getRepositoryInfoFunction · 0.85
addStarsFunction · 0.85
markForkedFunction · 0.85
addCiStatusFunction · 0.85
markPrivateFunction · 0.70

Tested by

no test coverage detected