Package org.kohsuke.github
Class GitCommit
- java.lang.Object
-
- org.kohsuke.github.GitCommit
-
- Direct Known Subclasses:
GHCommit.ShortInfo
public class GitCommit extends Object
The Class GitCommit.- Author:
- Emily Xia-Reinert
- See Also:
GHContentUpdateResponse#getCommit()
-
-
Constructor Summary
Constructors Constructor Description GitCommit()Instantiates a new git commit.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GitUsergetAuthor()Gets author.DategetAuthoredDate()Gets authored date.DategetCommitDate()Gets commit date.GitUsergetCommitter()Gets committer.StringgetHtmlUrl()Gets HTML URL.StringgetMessage()Gets message.StringgetNodeId()Gets node id.GHRepositorygetOwner()Gets owner.List<String>getParentSHA1s()Gets the parent SHA 1 s.StringgetSha()Gets SHA.StringgetSHA1()Gets SHA1.StringgetTreeSHA1()Gets the tree SHA 1.StringgetTreeUrl()Gets the tree url.StringgetUrl()Gets URL.GHVerificationgetVerification()Gets Verification Status.
-
-
-
Method Detail
-
getOwner
public GHRepository getOwner()
Gets owner.- Returns:
- the repository that contains the commit.
-
getSHA1
public String getSHA1()
Gets SHA1.- Returns:
- The SHA1 of this commit
-
getSha
public String getSha()
Gets SHA.- Returns:
- The SHA of this commit
-
getNodeId
public String getNodeId()
Gets node id.- Returns:
- The node id of this commit
-
getUrl
public String getUrl()
Gets URL.- Returns:
- The URL of this commit
-
getHtmlUrl
public String getHtmlUrl()
Gets HTML URL.- Returns:
- The HTML URL of this commit
-
getAuthor
@WithBridgeMethods(value=GHAuthor.class, adapterMethod="gitUserToGHAuthor") public GitUser getAuthor()
Gets author.- Returns:
- the author
-
getAuthoredDate
public Date getAuthoredDate()
Gets authored date.- Returns:
- the authored date
-
getCommitter
@WithBridgeMethods(value=GHAuthor.class, adapterMethod="gitUserToGHAuthor") public GitUser getCommitter()
Gets committer.- Returns:
- the committer
-
getCommitDate
public Date getCommitDate()
Gets commit date.- Returns:
- the commit date
-
getMessage
public String getMessage()
Gets message.- Returns:
- Commit message.
-
getVerification
public GHVerification getVerification()
Gets Verification Status.- Returns:
- the Verification status
-
getTreeSHA1
public String getTreeSHA1()
Gets the tree SHA 1.- Returns:
- the tree SHA 1
-
getTreeUrl
public String getTreeUrl()
Gets the tree url.- Returns:
- the tree url
-
-