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.Discussion,GHEventPayload.DiscussionComment,GHEventPayload.Fork,GHEventPayload.Installation,GHEventPayload.InstallationRepositories,GHEventPayload.Issue,GHEventPayload.IssueComment,GHEventPayload.Label,GHEventPayload.Ping,GHEventPayload.ProjectsV2Item,GHEventPayload.Public,GHEventPayload.PullRequest,GHEventPayload.PullRequestReview,GHEventPayload.PullRequestReviewComment,GHEventPayload.Push,GHEventPayload.Release,GHEventPayload.Repository,GHEventPayload.Star,GHEventPayload.Status,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 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 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.getRoot()Deprecated.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.voidDeprecated.Do not use this method.
-
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
-
getSender
Gets the sender ornullif accessed via the events API.- Returns:
- the sender or
nullif accessed via the events API.
-
setSender
Deprecated.Do not use this method. It was added due to incomplete understanding of Jackson binding.Sets sender.- Parameters:
sender- the sender
-
getRepository
Gets repository.- Returns:
- the repository
-
setRepository
Deprecated.Do not use this method. It was added due to incomplete understanding of Jackson binding.Sets repository.- Parameters:
repository- the repository
-
getOrganization
Gets organization.- Returns:
- the organization
-
setOrganization
Deprecated.Do not use this method. It was added due to incomplete understanding of Jackson binding.Sets organization.- Parameters:
organization- the organization
-
getInstallation
Gets installation.- Returns:
- the installation
-
getRoot
Deprecated.For access to theGitHubinstance, use a local copy instead of pulling it out of objects.Get the rootGitHubinstance for this object.- Returns:
- the root
GitHubinstance
-
GitHubinstance, use a local copy instead of pulling it out of objects.