Package org.kohsuke.github
Class GHEventPayload.Status
- java.lang.Object
-
- org.kohsuke.github.GHEventPayload
-
- org.kohsuke.github.GHEventPayload.Status
-
- Enclosing class:
- GHEventPayload
public static class GHEventPayload.Status extends GHEventPayload
A git commit status was changed.- See Also:
- status event, Repository Statuses
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.kohsuke.github.GHEventPayload
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
-
-
Constructor Summary
Constructors Constructor Description Status()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GHCommitgetCommit()Gets the commit associated with the status event.StringgetContext()Gets the status content.StringgetDescription()Gets the status description.GHCommitStategetState()Gets the status state.StringgetTargetUrl()The optional link added to the status.voidsetCommit(GHCommit commit)Sets the commit associated with the status event.voidsetState(GHCommitState state)Sets the status stage.-
Methods inherited from class org.kohsuke.github.GHEventPayload
getAction, getInstallation, getOrganization, getRepository, getSender, setOrganization, setRepository, setSender
-
-
-
-
Method Detail
-
getContext
public String getContext()
Gets the status content.- Returns:
- status content
-
getTargetUrl
public String getTargetUrl()
The optional link added to the status.- Returns:
- a url
-
getDescription
public String getDescription()
Gets the status description.- Returns:
- status description
-
getState
public GHCommitState getState()
Gets the status state.- Returns:
- status state
-
setState
public void setState(GHCommitState state)
Sets the status stage.- Parameters:
state- status state
-
getCommit
public GHCommit getCommit()
Gets the commit associated with the status event.- Returns:
- commit
-
setCommit
public void setCommit(GHCommit commit)
Sets the commit associated with the status event.- Parameters:
commit- commit
-
-