@@ -457,11 +457,46 @@ export const isRepo = (url: URL | HTMLAnchorElement | Location = location): bool
457457} ;
458458
459459TEST: addTests ( 'isRepo' , [
460- // Some of these are here simply as "gotchas" to other detections
461- 'https://github.com/sindresorhus/refined-github/blame/master/package.json' ,
462- 'https://github.com/sindresorhus/refined-github/issues/146' ,
463- 'https://github.com/sindresorhus/notifications/' , // Gotcha for isNotifications
464- 'https://github.com/sindresorhus/refined-github/pull/148' ,
460+ 'isActionRun' , // Includes isActionJobRun URLs
461+ 'isBranches' ,
462+ 'isCompare' , // Includes isQuickPR URLs
463+ 'isDeletingFile' ,
464+ 'isEditingFile' ,
465+ 'isEditingRelease' ,
466+ 'isFileFinder' ,
467+ 'isForkingRepo' ,
468+ 'isIssue' ,
469+ 'isLabelList' ,
470+ 'isMilestone' ,
471+ 'isMilestoneList' ,
472+ 'isNewAction' ,
473+ 'isNewFile' ,
474+ 'isNewIssue' ,
475+ 'isNewRelease' ,
476+ 'isPR' , // Includes isPRConversation, isPRFiles (→isPRCommit), isPRCommitList
477+ 'isPRConflicts' ,
478+ 'isProjects' ,
479+ 'isReleases' ,
480+ 'isRepoPRList' ,
481+ 'isRepoCommitList' ,
482+ 'isRepoForksList' ,
483+ 'isRepoGitObject' , // Includes isRepoTree (→isRepoRoot→isRepoHome), isSingleFile (→isRenderedTextFile), isBlame
484+ 'isRepoIssueList' ,
485+ 'isRepoNetworkGraph' ,
486+ 'isRepoSearch' ,
487+ 'isRepoSettings' , // Includes isRepoMainSettings
488+ 'isRepoTaxonomyIssueOrPRList' ,
489+ 'isRepoWiki' , // Includes isNewWikiPage, isEditingWikiPage, isCompareWikiPage
490+ 'isRepositoryActions' ,
491+ 'isSingleCommit' ,
492+ 'isSingleReleaseOrTag' ,
493+ 'isTags' ,
494+ // Repo URLs from detections that also cover non-repo pages
495+ 'https://github.com/sindresorhus/refined-github/projects/3' , // from isProject
496+ 'https://github.com/tophf/mpiv/discussions/50' , // from isDiscussion
497+ 'https://github.com/withastro/roadmap/discussions/new?category=proposal' , // from isNewDiscussion
498+ 'https://github.com/tophf/mpiv/discussions' , // from isDiscussionList
499+ // These URLs are repos but don't match any specific detection
465500 'https://github.com/sindresorhus/refined-github/milestones/new' , // Gotcha for isRepoTaxonomyIssueOrPRList
466501 'https://github.com/sindresorhus/refined-github/milestones/1/edit' , // Gotcha for isRepoTaxonomyIssueOrPRList
467502 'https://github.com/sindresorhus/refined-github/issues/new/choose' , // Gotcha for isRepoIssueList
0 commit comments