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

Function areDiscussionsEnabled

source/github-helpers/index.ts:144–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142}
143
144export function areDiscussionsEnabled(): boolean {
145 const repo = getRepo()!;
146 return elementExists(`${navigationBarSelector} a[href^="/${repo.nameWithOwner}/discussions"]`);
147}
148
149export const cacheByRepo = (): string => getRepo()!.nameWithOwner;
150

Callers 2

getResolvedTextFunction · 0.85
initBannerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected