MCPcopy
hub / github.com/refined-github/refined-github / from

Method from

source/github-helpers/search-query.ts:38–49  ·  view source on GitHub ↗
(source: Source)

Source from the content-addressed store, hash-verified

36 }
37
38 static from(source: Source): SearchQuery {
39 if (source instanceof Location || source instanceof HTMLAnchorElement) {
40 return new SearchQuery(source.href);
41 }
42
43 const url = new URL('https://github.com');
44 for (const [name, value] of Object.entries(source)) {
45 url.searchParams.set(name, value);
46 }
47
48 return new SearchQuery(url);
49 }
50
51 private readonly url: URL;
52 private queryParts: string[];

Callers 11

setStatusFilterFunction · 0.80
addMergeLinkFunction · 0.80
isBugsListingFunction · 0.80
addBugsTabFunction · 0.80
updateLinkFunction · 0.80
addFunction · 0.80
redirectToIssuesFunction · 0.80
createLinkFunction · 0.80
addDropdownItemFunction · 0.80
repeatItemsFunction · 0.80

Calls 1

setMethod · 0.80

Tested by

no test coverage detected