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
Modifier and TypeClassDescriptionstatic class
A check run event has been created, rerequested, completed, or has a requested_action.static class
A check suite event has been requested, rerequested or completed.static class
Wrapper for changes on issue and pull request review comments action="edited".static class
A comment was added to a commit.static class
A repository, branch, or tag was created.static class
A branch, or tag was deleted.static class
A deployment.static class
A deployment status.static class
A discussion was closed, reopened, created, edited, deleted, pinned, unpinned, locked, unlocked, transferred, category_changed, answered, or unanswered.static class
A discussion comment was created, deleted, or edited.static class
A user forked a repository.static class
An installation has been installed, uninstalled, or its permissions have been changed.static class
A repository has been added or removed from an installation.static class
A Issue has been assigned, unassigned, labeled, unlabeled, opened, edited, milestoned, demilestoned, closed, or reopened.static class
A comment was added to an issue.static class
A label was created, edited or deleted.static class
A member event was triggered.static class
A membership event was triggered.static class
A ping.static class
A project v2 item was archived, converted, created, edited, restored, deleted, or reordered.static class
A repository was made public.static class
A pull request status has changed.static class
A review was added to a pull request.static class
A review comment was added to a pull request.static class
A commit was pushed.static class
A release was added to the repo.static class
A repository was created, deleted, made public, or made private.static class
A star was created or deleted on a repository.static class
A git commit status was changed.static class
A team event was triggered.static class
A team_add event was triggered.static class
Occurs when someone triggered a workflow run or sends a POST request to the "Create a workflow dispatch event" endpoint.static class
A workflow job has been queued, is in progress, or has been completed.static class
A 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 ornull
if 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
-
getSender
Gets the sender ornull
if accessed via the events API.- Returns:
- the sender or
null
if accessed via the events API.
-
getRepository
Gets repository.- Returns:
- the repository
-
getOrganization
Gets organization.- Returns:
- the organization
-
getInstallation
Gets installation.- Returns:
- the installation
-