java.lang.Object
org.kohsuke.github.GHObject
org.kohsuke.github.GHCheckRun
Represents a check run.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The Enum AnnotationLevel.static enum
Final conclusion of the check.static class
Represents an output in a check run to include summary and other results.static enum
The Enum Status. -
Field Summary
Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetApp()
Gets the GitHub app this check run belongs to, included in response.Gets the check suite this check run belongs to.Gets the completed time of the check run in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.Gets conclusion of a completed check run.Gets the details URL from which to find full details of the check run on the integrator's site.Gets a reference for the check run on the integrator's system.Gets the HEAD SHA.Gets the HTML URL: https://github.com/[owner]/[repo-name]/runs/[check-run-id], usually an GitHub Action page of the check run.getName()
Gets the custom name of this check run.Gets the global node id to access most objects in GitHub.Gets an output for a check run.Gets the pull requests participated in this check run.Gets the start time of the check run in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.Gets status of the check run.update()
Updates this check run.Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
Constructor Details
-
GHCheckRun
public GHCheckRun()Create default GHCheckRun instance
-
-
Method Details
-
getStatus
Gets status of the check run.- Returns:
- Status of the check run
- See Also:
-
getConclusion
Gets conclusion of a completed check run.- Returns:
- Status of the check run
- See Also:
-
getName
Gets the custom name of this check run.- Returns:
- Name of the check run
-
getHeadSha
Gets the HEAD SHA.- Returns:
- sha for the HEAD commit
-
getPullRequests
Gets the pull requests participated in this check run. Note this field is only populated for events. When getting aGHCheckRun
outside of an event, this is always empty.- Returns:
- the list of
GHPullRequest
s for this check run. Only populated for events. - Throws:
IOException
- the io exception
-
getHtmlUrl
Gets the HTML URL: https://github.com/[owner]/[repo-name]/runs/[check-run-id], usually an GitHub Action page of the check run.- Returns:
- HTML URL
-
getNodeId
Gets the global node id to access most objects in GitHub. -
getExternalId
Gets a reference for the check run on the integrator's system.- Returns:
- Reference id
-
getDetailsUrl
Gets the details URL from which to find full details of the check run on the integrator's site.- Returns:
- Details URL
-
getStartedAt
Gets the start time of the check run in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.- Returns:
- Timestamp of the start time
-
getCompletedAt
Gets the completed time of the check run in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.- Returns:
- Timestamp of the completed time
-
getApp
Gets the GitHub app this check run belongs to, included in response.- Returns:
- GitHub App
-
getCheckSuite
Gets the check suite this check run belongs to.- Returns:
- Check suite
-
getOutput
Gets an output for a check run.- Returns:
- Output of a check run
-
update
Updates this check run.- Returns:
- a builder which you should customize, then call
GHCheckRunBuilder.create()
-