From cce808aea9b35fa6a968125763601723a036cd26 Mon Sep 17 00:00:00 2001 From: Dave Nicolson Date: Sat, 21 Nov 2026 20:24:30 +0100 Subject: [PATCH] `isForkedRepo` - Detect React fork header --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index deb6f7d..51c6a4f 100644 --- a/index.ts +++ b/index.ts @@ -766,7 +766,7 @@ TEST: addTests('isRepoNetworkGraph', [ 'https://github.com/sindresorhus/refined-github/network', ]); -export const isForkedRepo = (): boolean => exists('meta[name="octolytics-dimension-repository_is_fork"][content="true"]'); +export const isForkedRepo = (): boolean => exists('meta[name="octolytics-dimension-repository_is_fork"][content="true"], [data-testid="fork-parent"]'); export const isForkingRepo = (url: URL | HTMLAnchorElement | Location = location): boolean => getRepo(url)?.path === 'fork'; TEST: addTests('isForkingRepo', [