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

Function markPrivate

source/features/repo-header-info.tsx:55–64  ·  view source on GitHub ↗
(repoLink: HTMLElement, isPrivate: boolean)

Source from the content-addressed store, hash-verified

53}
54
55function markPrivate(repoLink: HTMLElement, isPrivate: boolean): void {
56 // GitHub may already show this icon natively, so we match its position
57 if (isPrivate && !elementExists('.octicon-lock', repoLink)) {
58 appendBefore(
59 repoLink,
60 '.octicon-repo-forked',
61 <LockIcon className="ml-1 tmp-ml-1" width={12} height={12} />,
62 );
63 }
64}
65
66function addStars(repoLink: HTMLElement, stargazerCount: number, viewerHasStarred: boolean): void {
67 if (stargazerCount <= 1) {

Callers 1

addFunction · 0.70

Calls 1

appendBeforeFunction · 0.85

Tested by

no test coverage detected