Class GHTree

    • Constructor Detail

      • GHTree

        public GHTree()
    • Method Detail

      • getSha

        public String getSha()
        The SHA for this trees
        Returns:
        the sha
      • getTree

        public List<GHTreeEntry> getTree()
        Return an array of entries of the trees
        Returns:
        the tree
      • getEntry

        public GHTreeEntry getEntry​(String path)
        Finds a tree entry by its name.

        IOW, find a directory entry by a file name.

        Parameters:
        path - the path
        Returns:
        the entry
      • isTruncated

        public boolean isTruncated()
        Returns true if the number of items in the tree array exceeded the GitHub maximum limit.
        Returns:
        true true if the number of items in the tree array exceeded the GitHub maximum limit otherwise false.
      • getUrl

        public URL getUrl()
        The API URL of this tag, such as "url": "https://api.github.com/repos/octocat/Hello-World/trees/fc6274d15fa3ae2ab983129fb037999f264ba9a7",
        Returns:
        the url