Package org.kohsuke.github
Class GHCheckSuite
- java.lang.Object
-
- org.kohsuke.github.GHObject
-
- org.kohsuke.github.GHCheckSuite
-
public class GHCheckSuite extends GHObject
Represents a check suite.- See Also:
- documentation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GHCheckSuite.HeadCommit
The Class HeadCommit.
-
Field Summary
-
Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields
-
-
Constructor Summary
Constructors Constructor Description GHCheckSuite()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getAfter()
The SHA of the most recent commit on ref after the push.GHApp
getApp()
Gets the GitHub app this check suite belongs to, included in response.String
getBefore()
The SHA of the most recent commit on ref before the push.URL
getCheckRunsUrl()
The url used to list all the check runs belonged to this suite.String
getConclusion()
Gets conclusion of a completed check suite.String
getHeadBranch()
The head branch name the changes are on.GHCheckSuite.HeadCommit
getHeadCommit()
The commit of current head.String
getHeadSha()
Gets the HEAD SHA.URL
getHtmlUrl()
Check suite doesn't have a HTML URL.int
getLatestCheckRunsCount()
The quantity of check runs that had run as part of the latest push.String
getNodeId()
Gets the global node id to access most objects in GitHub.List<GHPullRequest>
getPullRequests()
Gets the pull requests participated in this check suite.GitHub
getRoot()
Deprecated.For access to theGitHub
instance, use a local copy instead of pulling it out of objects.String
getStatus()
Gets status of the check suite.-
Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
-
-
-
Method Detail
-
getNodeId
public String getNodeId()
Gets the global node id to access most objects in GitHub.- Overrides:
getNodeId
in classGHObject
- Returns:
- global node id
- See Also:
- documentation
-
getHeadBranch
public String getHeadBranch()
The head branch name the changes are on.- Returns:
- head branch name
-
getHeadSha
public String getHeadSha()
Gets the HEAD SHA.- Returns:
- sha for the HEAD commit
-
getStatus
public String getStatus()
Gets status of the check suite. It can be one of request, in_progress, or completed.- Returns:
- status of the check suite
-
getConclusion
public String 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
public String getBefore()
The SHA of the most recent commit on ref before the push.- Returns:
- sha of a commit
-
getAfter
public String 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
public URL getCheckRunsUrl()
The url used to list all the check runs belonged to this suite.- Returns:
- url containing all check runs
-
getHeadCommit
public GHCheckSuite.HeadCommit getHeadCommit()
The commit of current head.- Returns:
- head commit
-
getApp
public GHApp getApp()
Gets the GitHub app this check suite belongs to, included in response.- Returns:
- GitHub App
-
getPullRequests
public List<GHPullRequest> getPullRequests() throws IOException
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
-
getHtmlUrl
public URL getHtmlUrl()
Check suite doesn't have a HTML URL.- Specified by:
getHtmlUrl
in classGHObject
- Returns:
- null
-
getRoot
@Deprecated public GitHub getRoot()
Deprecated.For access to theGitHub
instance, use a local copy instead of pulling it out of objects.Get the rootGitHub
instance for this object.- Returns:
- the root
GitHub
instance
-
-