public static class GHEventPayload.Push extends GHEventPayload
| Modifier and Type | Class and Description |
|---|---|
static class |
GHEventPayload.Push.PushCommit
Commit in a push
|
static class |
GHEventPayload.Push.Pusher |
GHEventPayload.CommitComment, GHEventPayload.Create, GHEventPayload.Delete, GHEventPayload.Deployment, GHEventPayload.DeploymentStatus, GHEventPayload.Fork, GHEventPayload.IssueComment, GHEventPayload.Ping, GHEventPayload.Public, GHEventPayload.PullRequest, GHEventPayload.Push, GHEventPayload.Repositoryroot| Constructor and Description |
|---|
Push() |
| Modifier and Type | Method and Description |
|---|---|
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
|
GHEventPayload.Push.Pusher |
getPusher() |
String |
getRef()
The full Git ref that was pushed.
|
GHRepository |
getRepository() |
int |
getSize()
The number of commits in the push.
|
boolean |
isCreated() |
boolean |
isDeleted() |
boolean |
isForced() |
void |
setPusher(GHEventPayload.Push.Pusher pusher) |
getSender, setSenderpublic String getHead()
public String getBefore()
public String getRef()
public int getSize()
getCommits().size()?public boolean isCreated()
public boolean isDeleted()
public boolean isForced()
public List<GHEventPayload.Push.PushCommit> getCommits()
public GHRepository getRepository()
public GHEventPayload.Push.Pusher getPusher()
public void setPusher(GHEventPayload.Push.Pusher pusher)
Copyright © 2017. All rights reserved.