Package org.kohsuke.github
Class GHEventPayload
- java.lang.Object
-
- org.kohsuke.github.GHEventPayload
-
- Direct Known Subclasses:
GHEventPayload.CheckRun,GHEventPayload.CheckSuite,GHEventPayload.CommitComment,GHEventPayload.Create,GHEventPayload.Delete,GHEventPayload.Deployment,GHEventPayload.DeploymentStatus,GHEventPayload.Fork,GHEventPayload.Installation,GHEventPayload.InstallationRepositories,GHEventPayload.Issue,GHEventPayload.IssueComment,GHEventPayload.Label,GHEventPayload.Ping,GHEventPayload.Public,GHEventPayload.PullRequest,GHEventPayload.PullRequestReview,GHEventPayload.PullRequestReviewComment,GHEventPayload.Push,GHEventPayload.Release,GHEventPayload.Repository,GHEventPayload.Status,GHEventPayload.WorkflowDispatch,GHEventPayload.WorkflowRun
public class GHEventPayload extends Object
Base type for types used in databinding of the event payload.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGHEventPayload.CheckRunA check run event has been created, rerequested, completed, or has a requested_action.static classGHEventPayload.CheckSuiteA check suite event has been requested, rerequested or completed.static classGHEventPayload.CommitCommentA comment was added to a commitstatic classGHEventPayload.CreateA repository, branch, or tag was createdstatic classGHEventPayload.DeleteA branch, or tag was deletedstatic classGHEventPayload.DeploymentA deploymentstatic classGHEventPayload.DeploymentStatusA deployment statusstatic classGHEventPayload.ForkA user forked a repositorystatic classGHEventPayload.InstallationAn installation has been installed, uninstalled, or its permissions have been changed.static classGHEventPayload.InstallationRepositoriesA repository has been added or removed from an installation.static classGHEventPayload.IssueA Issue has been assigned, unassigned, labeled, unlabeled, opened, edited, milestoned, demilestoned, closed, or reopened.static classGHEventPayload.IssueCommentA comment was added to an issuestatic classGHEventPayload.LabelA label was created, edited or deleted.static classGHEventPayload.PingA ping.static classGHEventPayload.PublicA repository was made public.static classGHEventPayload.PullRequestA pull request status has changed.static classGHEventPayload.PullRequestReviewA review was added to a pull requeststatic classGHEventPayload.PullRequestReviewCommentA review comment was added to a pull requeststatic classGHEventPayload.PushA commit was pushed.static classGHEventPayload.ReleaseA release was added to the repostatic classGHEventPayload.RepositoryA repository was created, deleted, made public, or made private.static classGHEventPayload.StatusA git commit status was changed.static classGHEventPayload.WorkflowDispatchOccurs when someone triggered a workflow run or sends a POST request to the "Create a workflow dispatch event" endpoint.static classGHEventPayload.WorkflowRunA workflow run was requested or completed.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetAction()Gets the action for the triggered event.GHAppInstallationgetInstallation()Gets installationGHOrganizationgetOrganization()Gets organization.GHRepositorygetRepository()Gets repository.GHUsergetSender()Gets the sender ornullif accessed via the events API.voidsetOrganization(GHOrganization organization)Deprecated.Do not use this method.voidsetRepository(GHRepository repository)Deprecated.Do not use this method.voidsetSender(GHUser sender)Deprecated.Do not use this method.
-
-
-
Method Detail
-
getAction
public String getAction()
Gets the action for the triggered event. Most but not all webhook payloads contain an action property that contains the specific activity that triggered the event.- Returns:
- event action
-
getSender
public GHUser getSender()
Gets the sender ornullif accessed via the events API.- Returns:
- the sender or
nullif accessed via the events API.
-
setSender
@Deprecated public void setSender(GHUser sender)
Deprecated.Do not use this method. It was added due to incomplete understanding of Jackson binding.Sets sender.- Parameters:
sender- the sender
-
getRepository
public GHRepository getRepository()
Gets repository.- Returns:
- the repository
-
setRepository
@Deprecated public void setRepository(GHRepository repository)
Deprecated.Do not use this method. It was added due to incomplete understanding of Jackson binding.Sets repository.- Parameters:
repository- the repository
-
getOrganization
public GHOrganization getOrganization()
Gets organization.- Returns:
- the organization
-
setOrganization
@Deprecated public void setOrganization(GHOrganization organization)
Deprecated.Do not use this method. It was added due to incomplete understanding of Jackson binding.Sets organization.- Parameters:
organization- the organization
-
getInstallation
public GHAppInstallation getInstallation()
Gets installation- Returns:
- the installation
-
-