java.lang.Object
org.kohsuke.github.GHEventPayload.Push.PushCommit
- Enclosing class:
- GHEventPayload.Push
Commit in a push. Note: sha is an alias for id.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAdded()
Gets added.Gets author.Gets committer.Gets message.Gets modified.Gets removed.getSha()
Gets sha (id).Obtains the timestamp of the commit.getUrl()
Points to the commit API resource.boolean
Whether this commit is distinct from any that have been pushed before.
-
Constructor Details
-
PushCommit
public PushCommit()Create default PushCommit instance
-
-
Method Details
-
getAuthor
Gets author.- Returns:
- the author
-
getCommitter
Gets committer.- Returns:
- the committer
-
getUrl
Points to the commit API resource.- Returns:
- the url
-
getSha
Gets sha (id).- Returns:
- the sha
-
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
-
getAdded
Gets added.- Returns:
- the added
-
getRemoved
Gets removed.- Returns:
- the removed
-
getModified
Gets modified.- Returns:
- the modified
-
getTimestamp
Obtains the timestamp of the commit.- Returns:
- the timestamp
-