Skip to content

Commit 0bb8ed7

Browse files
freganteclaude
andcommitted
Meta: Turn "Includes" notes into @see and drop "Since" comments
Co-authored-by: Claude Dragon 🐉 <noreply@anthropic.com>
1 parent ebe8fad commit 0bb8ed7

2 files changed

Lines changed: 13 additions & 9 deletions

File tree

‎collector.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ for (const statement of source.getVariableStatements()) {
2323
}
2424

2525
export function getTests(detectName: string): string[] {
26-
return testableUrls.get(detectName)?.flatMap(url => url.startsWith('http') ? url : getTests(url) ?? []) ?? [];
26+
return [...new Set(testableUrls.get(detectName)?.flatMap(url => url.startsWith('http') ? url : getTests(url)))];
2727
}
2828

2929
export function getAllUrls(): Set<string> {

‎index.ts‎

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ export const isPRConflicts = (url: URL | HTMLAnchorElement | Location = location
337337
export const isPRList = (url: URL | HTMLAnchorElement | Location = location): boolean => isRepoPRList(url) || isGlobalPRList(url);
338338

339339
/**
340-
* Since December 2025
341340
* @example https://github.com/sindresorhus/refined-github/pull/148/commits/1e27d7998afdd3608d9fc3bf95ccf27fa5010641
342341
* @example https://github.com/sindresorhus/refined-github/pull/148/commits/1e27d79
343342
* @example https://github.com/sindresorhus/refined-github/pull/148/changes/1e27d7998afdd3608d9fc3bf95ccf27fa5010641
@@ -359,7 +358,6 @@ export const isPRConversation = (url: URL | HTMLAnchorElement | Location = locat
359358
export const isPRCommitList = (url: URL | HTMLAnchorElement | Location = location): boolean => /^pull\/\d+\/commits$/.test(getRepo(url)?.path);
360359

361360
/**
362-
* Since December 2025
363361
* @see isPRCommit
364362
* // File contents but lacks "Viewed" checkbox, has commit information
365363
* @example https://github.com/sindresorhus/refined-github/pull/148/files
@@ -468,10 +466,10 @@ export const hasWikiPageEditor = (url: URL | HTMLAnchorElement | Location = loca
468466
* Repo URLs from detections that also cover non-repo pages
469467
* These URLs are repos but don't match any specific detection
470468
* @see isActionRun
471-
* // Includes isActionJobRun URLs
469+
* @see isActionJobRun
472470
* @see isBranches
473471
* @see isCompare
474-
* // Includes isQuickPR URLs
472+
* @see isQuickPR
475473
* @see isDeletingFile
476474
* @see isEditingFile
477475
* @see isEditingRelease
@@ -486,23 +484,29 @@ export const hasWikiPageEditor = (url: URL | HTMLAnchorElement | Location = loca
486484
* @see isNewIssue
487485
* @see isNewRelease
488486
* @see isPR
489-
* // Includes isPRConversation, isPRFiles (→isPRCommit), isPRCommitList
487+
* @see isPRConversation
488+
* @see isPRFiles
489+
* @see isPRCommitList
490490
* @see isPRConflicts
491491
* @see isProjects
492492
* @see isReleases
493493
* @see isRepoPRList
494494
* @see isRepoCommitList
495495
* @see isRepoForksList
496496
* @see isRepoGitObject
497-
* // Includes isRepoTree (→isRepoRoot→isRepoHome), isSingleFile (→isRenderedTextFile), isBlame
497+
* @see isRepoTree
498+
* @see isSingleFile
499+
* @see isBlame
498500
* @see isRepoIssueList
499501
* @see isRepoNetworkGraph
500502
* @see isRepoSearch
501503
* @see isRepoSettings
502-
* // Includes isRepoMainSettings
504+
* @see isRepoMainSettings
503505
* @see isRepoTaxonomyIssueOrPRList
504506
* @see isRepoWiki
505-
* // Includes isNewWikiPage, isEditingWikiPage, isCompareWikiPage
507+
* @see isNewWikiPage
508+
* @see isEditingWikiPage
509+
* @see isCompareWikiPage
506510
* @see isRepositoryActions
507511
* @see isSingleCommit
508512
* @see isSingleReleaseOrTag

0 commit comments

Comments
 (0)