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

Function getSearchQueryBugLabel

source/features/bugs-tab.tsx:58–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56});
57
58async function getSearchQueryBugLabel(): Promise<string> {
59 const {label} = await bugs.getCached() ?? {};
60 return `(label:${SearchQuery.escapeValue(label ?? 'bug')} OR type:Bug)`;
61}
62
63async function isBugsListing(): Promise<boolean> {
64 return SearchQuery.from(location).includes(await getSearchQueryBugLabel());

Callers 2

isBugsListingFunction · 0.85
addBugsTabFunction · 0.85

Calls 1

escapeValueMethod · 0.80

Tested by

no test coverage detected