java.lang.Object
org.kohsuke.github.GHTree
Provides information for Git Trees https://developer.github.com/v3/git/trees/
- Author:
- Daniel Teixeira - https://github.com/ddtxra
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionFinds a tree entry by its name.getSha()
The SHA for this trees.getTree()
Return an array of entries of the trees.getUrl()
The API URL of this tag, such as "url": "https://api.github.com/repos/octocat/Hello-World/trees/fc6274d15fa3ae2ab983129fb037999f264ba9a7",boolean
Returns true if the number of items in the tree array exceeded the GitHub maximum limit.
-
Constructor Details
-
GHTree
public GHTree()Create default GHTree instance
-
-
Method Details
-
getSha
The SHA for this trees.- Returns:
- the sha
-
getTree
Return an array of entries of the trees.- Returns:
- the tree
-
getEntry
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 if the number of items in the tree array exceeded the GitHub maximum limit otherwise false.
-
getUrl
The API URL of this tag, such as "url": "https://api.github.com/repos/octocat/Hello-World/trees/fc6274d15fa3ae2ab983129fb037999f264ba9a7",- Returns:
- the url
-