org.kohsuke.github
Class GHEventPayload.Push

java.lang.Object
  extended by org.kohsuke.github.GHEventPayload
      extended by org.kohsuke.github.GHEventPayload.Push
Enclosing class:
GHEventPayload

public static class GHEventPayload.Push
extends GHEventPayload

A commit was pushed.

See Also:
authoritative source

Nested Class Summary
static class GHEventPayload.Push.PushCommit
          Commit in a push
 
Nested classes/interfaces inherited from class org.kohsuke.github.GHEventPayload
GHEventPayload.IssueComment, GHEventPayload.PullRequest, GHEventPayload.Push
 
Field Summary
 
Fields inherited from class org.kohsuke.github.GHEventPayload
root
 
Constructor Summary
GHEventPayload.Push()
           
 
Method Summary
 String getBefore()
          This is undocumented, but it looks like this captures the commit that the ref was pointing to before the push.
 List<GHEventPayload.Push.PushCommit> getCommits()
          The list of pushed commits.
 String getHead()
          The SHA of the HEAD commit on the repository
 String getRef()
          The full Git ref that was pushed.
 int getSize()
          The number of commits in the push.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GHEventPayload.Push

public GHEventPayload.Push()
Method Detail

getHead

public String getHead()
The SHA of the HEAD commit on the repository


getBefore

public String getBefore()
This is undocumented, but it looks like this captures the commit that the ref was pointing to before the push.


getRef

public String getRef()
The full Git ref that was pushed. Example: “refs/heads/master”


getSize

public int getSize()
The number of commits in the push. Is this always the same as getCommits().size()?


getCommits

public List<GHEventPayload.Push.PushCommit> getCommits()
The list of pushed commits.



Copyright © 2014. All rights reserved.