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

Function createLinkGroup

source/features/unreleased-commits.tsx:96–114  ·  view source on GitHub ↗
(latestTag: string, aheadBy: number)

Source from the content-addressed store, hash-verified

94}
95
96async 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
116async function addToHome(branchSelectorElement: HTMLButtonElement): Promise<void> {
117 // React issues. Duplicates appear after a color scheme update

Callers 1

addToHomeFunction · 0.85

Calls 4

userHasPushAccessFunction · 0.85
groupButtonsFunction · 0.85
buildRepoUrlFunction · 0.85
createLinkFunction · 0.70

Tested by

no test coverage detected