We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isOrganizationRepo
1 parent 93d0102 commit b3284c2Copy full SHA for b3284c2
1 file changed
index.ts
@@ -186,7 +186,8 @@ TEST: addTests('isNotifications', [
186
187
export const isOrganizationProfile = (): boolean => exists('meta[name="hovercard-subject-tag"][content^="organization"]');
188
189
-export const isOrganizationRepo = (): boolean => exists('.AppHeader-context-full [data-hovercard-type="organization"]');
+// TODO: Remove the second check after June 2026
190
+export const isOrganizationRepo = (): boolean => Boolean($('qbsearch-input')?.getAttribute('data-current-org')) || exists('.AppHeader-context-full [data-hovercard-type="organization"]');
191
192
export const isTeamDiscussion = (url: URL | HTMLAnchorElement | Location = location): boolean => Boolean(getOrg(url)?.path.startsWith('teams'));
193
TEST: addTests('isTeamDiscussion', [
0 commit comments