(link: HTMLAnchorElement)
| 23 | } |
| 24 | |
| 25 | function addRepoAvatar(link: HTMLAnchorElement): void { |
| 26 | const [owner] = link.textContent.trim().split('/'); |
| 27 | |
| 28 | link.firstElementChild!.prepend( |
| 29 | <span className="ActionListItem-visual ActionListItem-visual--leading d-none d-xl-inline-block"> |
| 30 | {createAvatar(owner, 14)} |
| 31 | </span>, |
| 32 | ); |
| 33 | } |
| 34 | |
| 35 | function addAvatar(link: HTMLElement): void { |
| 36 | const username = link.textContent; |
nothing calls this directly
no test coverage detected