(latestTag: string, aheadBy: number)
| 94 | } |
| 95 | |
| 96 | async function createLinkGroup(latestTag: string, aheadBy: number): Promise<HTMLElement> { |
| 97 | const link = await createLink(latestTag, aheadBy); |
| 98 | if (!(await userHasPushAccess())) { |
| 99 | return link; |
| 100 | } |
| 101 | |
| 102 | return groupButtons([ |
| 103 | link, |
| 104 | // `aria-label` wording taken from $user/$repo/releases page |
| 105 | <a |
| 106 | href={buildRepoUrl('releases/new')} |
| 107 | className="btn px-2 tmp-px-2 tooltipped tooltipped-se" |
| 108 | aria-label="Draft a new release" |
| 109 | data-turbo-frame="repo-content-turbo-frame" |
| 110 | > |
| 111 | <PlusIcon /> |
| 112 | </a>, |
| 113 | ]); |
| 114 | } |
| 115 | |
| 116 | async function addToHome(branchSelectorElement: HTMLButtonElement): Promise<void> { |
| 117 | // React issues. Duplicates appear after a color scheme update |
no test coverage detected