Repository navigation
Add isProfileRepoList - #170
Conversation
So would you fancy something like this? const getProfileTab(): 'main' | 'repositories' | 'stars' | ... | undefinedOr is this more suitable to be handled in userspace? If we are talking about RGH specifically, I think we don't need to care about specific profile tab (i.e. |
|
That could be useful as a "util" and would be different from a classic detection. Given the rarity, it could be worth it, but we'd lose the automated cross-testing of URLs because that expects true/false.
I'd be happy to expose your util and deprecate those functions (which we only ever implemented as "just in case" and "doesn't hurt") |
We have these detections:
Which nowadays are unnecessarily specific since repository lists are similar in DOM, and will only get more similar (HOPEFULLY):
For the same reason I'm not adding an org-specific detection.
I haven't merged this yet to make sure I choose the right name here. I think
*Tabwas the wrong choice because:butisRepoSettingsTabisRepoSettingsWe can rename those separately, potentially deprecate
isUserProfileRepoTabcompletely.