Skip to content

Commit 9848053

Browse files
authored
Add support for new GitHub navigation to isArchivedRepo (#167)
1 parent ea0e865 commit 9848053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ export const isEmptyRepo = (): boolean => exists('[aria-label="Cannot fork becau
364364

365365
export const isPublicRepo = (): boolean => exists('meta[name="octolytics-dimension-repository_public"][content="true"]');
366366

367-
export const isArchivedRepo = (): boolean => Boolean(isRepo() && $('#repository-container-header .Label')!.textContent!.endsWith('archive'));
367+
export const isArchivedRepo = (): boolean => Boolean(isRepo() && $('main > .flash-warn')?.textContent!.includes('archived'));
368368

369369
export const isBlank = (): boolean => exists('main .blankslate');
370370

0 commit comments

Comments
 (0)