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.Discussion,GHEventPayload.DiscussionComment,GHEventPayload.Fork,GHEventPayload.Installation,GHEventPayload.InstallationRepositories,GHEventPayload.Issue,GHEventPayload.IssueComment,GHEventPayload.Label,GHEventPayload.Member,GHEventPayload.Membership,GHEventPayload.Ping,GHEventPayload.ProjectsV2Item,GHEventPayload.Public,GHEventPayload.PullRequest,GHEventPayload.PullRequestReview,GHEventPayload.PullRequestReviewComment,GHEventPayload.Push,GHEventPayload.Release,GHEventPayload.Repository,GHEventPayload.Star,GHEventPayload.Status,GHEventPayload.Team,GHEventPayload.TeamAdd,GHEventPayload.WorkflowDispatch,GHEventPayload.WorkflowJob,GHEventPayload.WorkflowRun
Base type for types used in databinding of the event payload.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA check run event has been created, rerequested, completed, or has a requested_action.static classA check suite event has been requested, rerequested or completed.static classWrapper for changes on issue and pull request review comments action="edited".static classA comment was added to a commit.static classA repository, branch, or tag was created.static classA branch, or tag was deleted.static classA deployment.static classA deployment status.static classA discussion was closed, reopened, created, edited, deleted, pinned, unpinned, locked, unlocked, transferred, category_changed, answered, or unanswered.static classA discussion comment was created, deleted, or edited.static classA user forked a repository.static classAn installation has been installed, uninstalled, or its permissions have been changed.static classA repository has been added or removed from an installation.static classA Issue has been assigned, unassigned, labeled, unlabeled, opened, edited, milestoned, demilestoned, closed, or reopened.static classA comment was added to an issue.static classA label was created, edited or deleted.static classA member event was triggered.static classA membership event was triggered.static classA ping.static classA project v2 item was archived, converted, created, edited, restored, deleted, or reordered.static classA repository was made public.static classA pull request status has changed.static classA review was added to a pull request.static classA review comment was added to a pull request.static classA commit was pushed.static classA release was added to the repo.static classA repository was created, deleted, made public, or made private.static classA star was created or deleted on a repository.static classA git commit status was changed.static classA team event was triggered.static classA team_add event was triggered.static classOccurs when someone triggered a workflow run or sends a POST request to the "Create a workflow dispatch event" endpoint.static classA workflow job has been queued, is in progress, or has been completed.static classA workflow run was requested or completed. -
Method Summary
Modifier and TypeMethodDescriptionGets the action for the triggered event.Gets installation.Gets organization.Gets repository.Gets the sender ornullif accessed via the events API.
-
Method Details
-
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
-
getInstallation
Gets installation.- Returns:
- the installation
-
getOrganization
Gets organization.- Returns:
- the organization
-
getRepository
Gets repository.- Returns:
- the repository
-
getSender
Gets the sender ornullif accessed via the events API.- Returns:
- the sender or
nullif accessed via the events API.
-