Skip to content

Specific detection for file and directory commit lists #89

Closed

Description

@shinenelson

Following from refined-github/refined-github#4677 (review)

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.

Activity

  1. fregante commented on Aug 19, 2021

    @fregante
    Member

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions