Skip to content

Commit 5ef9213

Browse files
authored
Rename isOrganizationDiscussion to isTeamDiscussion (#144)
1 parent 234ac20 commit 5ef9213

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ export const isOrganizationProfile = (): boolean => exists('meta[name="hovercard
185185

186186
export const isOrganizationRepo = (): boolean => Boolean(document.querySelector<HTMLElement>('[data-owner-scoped-search-url]')?.dataset['ownerScopedSearchUrl']!.startsWith('/org'));
187187

188-
export const isOrganizationDiscussion = (url: URL | HTMLAnchorElement | Location = location): boolean => /^orgs\/[^/]+\/teams\/[^/]+($|\/discussions)/.test(getCleanPathname(url));
189-
addTests('isOrganizationDiscussion', [
188+
export const isTeamDiscussion = (url: URL | HTMLAnchorElement | Location = location): boolean => /^orgs\/[^/]+\/teams\/[^/]+($|\/discussions)/.test(getCleanPathname(url));
189+
addTests('isTeamDiscussion', [
190190
'https://github.com/orgs/refined-github/teams/core-team/discussions?pinned=1',
191191
'https://github.com/orgs/refined-github/teams/core-team/discussions/1',
192192
'https://github.com/orgs/refined-github/teams/core-team',
@@ -630,7 +630,7 @@ export const hasComments = (url: URL | HTMLAnchorElement | Location = location):
630630
isPR(url)
631631
|| isIssue(url)
632632
|| isCommit(url)
633-
|| isOrganizationDiscussion(url)
633+
|| isTeamDiscussion(url)
634634
|| isSingleGist(url);
635635

636636
addTests('hasRichTextEditor', combinedTestOnly);

0 commit comments

Comments
 (0)