(repoLink: HTMLElement)
| 138 | } |
| 139 | |
| 140 | async 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 | |
| 151 | async function init(signal: AbortSignal): Promise<void> { |
| 152 | observe( |
nothing calls this directly
no test coverage detected