Repository navigation
URL include cleanup - #5143
URL include cleanup#5143kidonng wants to merge 7 commits into
include cleanup#5143Conversation
This feature does not make sense there.
| () => pageDetect.isGlobalSearchResults() && searchType() === 'code', | ||
| () => pageDetect.isRepoSearch() && (searchType() ?? 'code') === 'code', |
There was a problem hiding this comment.
Note to self: this should be backported into github-url-detection's hasCode
There was a problem hiding this comment.
Let's do it there directly then
| () => pageDetect.isGlobalSearchResults() && searchType() === 'code', | ||
| () => pageDetect.isRepoSearch() && (searchType() ?? 'code') === 'code', |
There was a problem hiding this comment.
Let's do it there directly then
| exclude: [ | ||
| pageDetect.isGist, | ||
| ], |
There was a problem hiding this comment.
It's ok here, but it feels like we should treat isGist similarly to what we do with is404: If the includes/asLongAs have isGist, then enable the feature there, if not don't. There might only be a handful of situation where features can still apply to isGist, like hasCode, but maybe it's better to edit those instead, e.g.
include: [
hasCode,
isGist,
]This reverts commit 862540a.
This comment has been minimized.
This comment has been minimized.
|
Closing as there's no usable code here (as mentioned in the review). Avoid keeping PRs open for 2 months 😃 |
It would be better as an issue instead, I just prefer actual code (and hate writing similar stuff twice). Also the feedback would be more related (like in this PR. Thanks!)
Sorry but that's probably just me being myself again. I don't have an issue with that though. Does it really matter if external changes aren't that much? |
Extracting stuff from #5113
Note to self: this PR mainly does two things:
isRepoSearchand friends since they are excluded fromisRepohasFooEditorgithub-url-detection#105Test URLs
linkify-codeshow-user-top-repositories: https://gist.github.com/kidonngScreenshot