You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Specific detection for file and directory commit lists #89
We do not have a detection that distinguishes commit lists for files and directories. There is isCommitList which is a merge of isRepoCommitList and isPRCommitList.
Maybe, we should add a isFileCommitList and isDirectoryCommitList and merge them into isRepoCommitList.
However, I am not sure how to distinguish between a directory and a file from the URL. File extensions seems like a non-safe of detection. If there is a more safer way to distinguish between the file and directories, I will be happy to open a pull request for it.
Yeah there’s no way from the URL and it doesn’t need to be added here. It can be determined from the DOM, ideally from some meta tags in the HEAD, otherwise we just need to look for specific /blob/ links on the page
Activity
fregante commentedon Aug 19, 2021
Yeah there’s no way from the URL and it doesn’t need to be added here. It can be determined from the DOM, ideally from some meta tags in the HEAD, otherwise we just need to look for specific /blob/ links on the page