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
Constructors -
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
-
getAdded
Gets added.- Returns:
- the added
-
getAuthor
Gets author.- Returns:
- the author
-
getCommitter
Gets committer.- Returns:
- the committer
-
getMessage
Gets message.- Returns:
- the message
-
getModified
Gets modified.- Returns:
- the modified
-
getRemoved
Gets removed.- Returns:
- the removed
-
getSha
Gets sha (id).- Returns:
- the sha
-
getTimestamp
@WithBridgeMethods(value=java.util.Date.class, adapterMethod="instantToDate") public Instant getTimestamp()Obtains the timestamp of the commit.- Returns:
- the timestamp
-
getUrl
Points to the commit API resource.- Returns:
- the url
-
isDistinct
public boolean isDistinct()Whether this commit is distinct from any that have been pushed before.- Returns:
- the boolean
-