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 Details

    • PushCommit

      public PushCommit()
  • Method Details

    • 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
    • getAdded

      public List<String> getAdded()
      Gets added.
      Returns:
      the added
    • getRemoved

      public List<String> getRemoved()
      Gets removed.
      Returns:
      the removed
    • getModified

      public List<String> getModified()
      Gets modified.
      Returns:
      the modified
    • getTimestamp

      public Date getTimestamp()
      Obtains the timestamp of the commit.
      Returns:
      the timestamp