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.
isArchivedRepo
1 parent ea0e865 commit 9848053Copy full SHA for 9848053
index.ts
@@ -364,7 +364,7 @@ export const isEmptyRepo = (): boolean => exists('[aria-label="Cannot fork becau
364
365
export const isPublicRepo = (): boolean => exists('meta[name="octolytics-dimension-repository_public"][content="true"]');
366
367
-export const isArchivedRepo = (): boolean => Boolean(isRepo() && $('#repository-container-header .Label')!.textContent!.endsWith('archive'));
+export const isArchivedRepo = (): boolean => Boolean(isRepo() && $('main > .flash-warn')?.textContent!.includes('archived'));
368
369
export const isBlank = (): boolean => exists('main .blankslate');
370
0 commit comments