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

Function addForRepositoryActions

source/features/action-pr-link.tsx:14–19  ·  view source on GitHub ↗
(prLink: HTMLAnchorElement)

Source from the content-addressed store, hash-verified

12}
13
14async function addForRepositoryActions(prLink: HTMLAnchorElement): Promise<void> {
15 const prNumber = prLink.textContent.slice(1);
16
17 const runLink = $('a:has(.Link--primary)', closestElement('.Box-row', prLink));
18 setSearchParameter(runLink, 'pr', prNumber);
19}
20
21async function addForPr(actionLink: HTMLAnchorElement): Promise<void> {
22 setSearchParameter(actionLink, 'pr', String(getConversationNumber()));

Callers

nothing calls this directly

Calls 1

setSearchParameterFunction · 0.85

Tested by

no test coverage detected