java.lang.Object
org.kohsuke.github.GHObject
org.kohsuke.github.GHCheckSuite
Represents a check suite.
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAfter()
The SHA of the most recent commit on ref after the push.getApp()
Gets the GitHub app this check suite belongs to, included in response.The SHA of the most recent commit on ref before the push.The url used to list all the check runs belonged to this suite.Gets conclusion of a completed check suite.The head branch name the changes are on.The commit of current head.Gets the HEAD SHA.int
The quantity of check runs that had run as part of the latest push.Gets the global node id to access most objects in GitHub.Gets the pull requests participated in this check suite.Gets status of the check suite.Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
Constructor Details
-
GHCheckSuite
public GHCheckSuite()Create default GHCheckSuite instance
-
-
Method Details
-
getNodeId
Gets the global node id to access most objects in GitHub. -
getHeadBranch
The head branch name the changes are on.- Returns:
- head branch name
-
getHeadSha
Gets the HEAD SHA.- Returns:
- sha for the HEAD commit
-
getStatus
Gets status of the check suite. It can be one of request, in_progress, or completed.- Returns:
- status of the check suite
-
getConclusion
Gets conclusion of a completed check suite. It can be one of success, failure, neutral, cancelled, time_out, action_required, or stale. The check suite will report the highest priority check run conclusion in the check suite's conclusion.- Returns:
- conclusion of the check suite
-
getBefore
The SHA of the most recent commit on ref before the push.- Returns:
- sha of a commit
-
getAfter
The SHA of the most recent commit on ref after the push.- Returns:
- sha of a commit
-
getLatestCheckRunsCount
public int getLatestCheckRunsCount()The quantity of check runs that had run as part of the latest push.- Returns:
- sha of the most recent commit
-
getCheckRunsUrl
The url used to list all the check runs belonged to this suite.- Returns:
- url containing all check runs
-
getHeadCommit
The commit of current head.- Returns:
- head commit
-
getApp
Gets the GitHub app this check suite belongs to, included in response.- Returns:
- GitHub App
-
getPullRequests
Gets the pull requests participated in this check suite. Note this field is only populated for events. When getting aGHCheckSuite
outside of an event, this is always empty.- Returns:
- the list of
GHPullRequest
s for this check suite. Only populated for events. - Throws:
IOException
- the io exception
-