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
The type Pusher.
|
GHEventPayload.CheckRun, GHEventPayload.CommitComment, GHEventPayload.Create, GHEventPayload.Delete, GHEventPayload.Deployment, GHEventPayload.DeploymentStatus, GHEventPayload.Fork, GHEventPayload.Issue, GHEventPayload.IssueComment, GHEventPayload.Ping, GHEventPayload.Public, GHEventPayload.PullRequest, GHEventPayload.PullRequestReview, GHEventPayload.PullRequestReviewComment, GHEventPayload.Push, GHEventPayload.Release, 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()
Gets pusher.
|
String |
getRef()
The full Git ref that was pushed.
|
GHRepository |
getRepository()
Gets repository.
|
int |
getSize()
The number of commits in the push.
|
boolean |
isCreated()
Is created boolean.
|
boolean |
isDeleted()
Is deleted boolean.
|
boolean |
isForced()
Is forced boolean.
|
void |
setPusher(GHEventPayload.Push.Pusher pusher)
Sets 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)
pusher - the pusherCopyright © 2020. All rights reserved.