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 GitUser
getAuthor()
Gets author.Date
getAuthoredDate()
Gets authored date.Date
getCommitDate()
Gets commit date.GitUser
getCommitter()
Gets committer.String
getHtmlUrl()
Gets HTML URL.String
getMessage()
Gets message.String
getNodeId()
Gets node id.GHRepository
getOwner()
Gets owner.List<String>
getParentSHA1s()
Gets the parent SHA 1 s.String
getSha()
Gets SHA.String
getSHA1()
Gets SHA1.String
getTreeSHA1()
Gets the tree SHA 1.String
getTreeUrl()
Gets the tree url.String
getUrl()
Gets URL.GHVerification
getVerification()
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
-
-