Package org.kohsuke.github
Class GHEventPayload.Push.PushCommit
- java.lang.Object
-
- org.kohsuke.github.GHEventPayload.Push.PushCommit
-
- Enclosing class:
- GHEventPayload.Push
public static class GHEventPayload.Push.PushCommit extends Object
Commit in a push. Note: sha is an alias for id.
-
-
Constructor Summary
Constructors Constructor Description PushCommit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getAdded()
Gets added.GitUser
getAuthor()
Gets author.GitUser
getCommitter()
Gets committer.String
getMessage()
Gets message.List<String>
getModified()
Gets modified.List<String>
getRemoved()
Gets removed.String
getSha()
Gets sha (id).Date
getTimestamp()
Obtains the timestamp of the commitString
getUrl()
Points to the commit API resource.boolean
isDistinct()
Whether this commit is distinct from any that have been pushed before.
-
-
-
Method Detail
-
getAuthor
public GitUser getAuthor()
Gets author.- Returns:
- the author
-
getCommitter
public GitUser getCommitter()
Gets committer.- Returns:
- the committer
-
getUrl
public String getUrl()
Points to the commit API resource.- Returns:
- the url
-
getSha
public String getSha()
Gets sha (id).- Returns:
- the sha
-
getMessage
public String getMessage()
Gets message.- Returns:
- the message
-
isDistinct
public boolean isDistinct()
Whether this commit is distinct from any that have been pushed before.- Returns:
- the boolean
-
getTimestamp
public Date getTimestamp()
Obtains the timestamp of the commit- Returns:
- the timestamp
-
-