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

Function getFeatureRelatedIssuesQuery

source/helpers/rgh-links.tsx:24–29  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

22}
23
24export function getFeatureRelatedIssuesQuery(id: string): string {
25 const oldNames = getOldFeatureNames(id);
26 const searchTerms = [id, ...oldNames].map(name => `"${name}"`);
27 const joinedTerms = searchTerms.length > 1 ? `(${searchTerms.join(' OR ')})` : searchTerms[0];
28 return `state:open ${joinedTerms}`;
29}
30
31export function getFeatureRelatedIssuesUrl(id: string): URL {
32 const conversationsUrl = new URL('https://github.com/refined-github/refined-github/issues');

Callers 3

rgh-links.test.tsFile · 0.85

Calls 1

getOldFeatureNamesFunction · 0.85

Tested by

no test coverage detected