Package org.kohsuke.github
Class GHCheckRun
- java.lang.Object
-
- org.kohsuke.github.GHObject
-
- org.kohsuke.github.GHCheckRun
-
public class GHCheckRun extends GHObject
Represents a check run.- See Also:
- documentation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGHCheckRun.AnnotationLevelstatic classGHCheckRun.Conclusionstatic classGHCheckRun.OutputRepresents an output in a check run to include summary and other results.static classGHCheckRun.Status
-
Field Summary
-
Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields
-
-
Constructor Summary
Constructors Constructor Description GHCheckRun()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GHAppgetApp()Gets the GitHub app this check run belongs to, included in response.GHCheckSuitegetCheckSuite()Gets the check suite this check run belongs toDategetCompletedAt()Gets the completed time of the check run in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.StringgetConclusion()Gets conclusion of a completed check run.URLgetDetailsUrl()Gets the details URL from which to find full details of the check run on the integrator's site.StringgetExternalId()Gets a reference for the check run on the integrator's system.StringgetHeadSha()Gets the HEAD SHA.URLgetHtmlUrl()Gets the HTML URL: https://github.com/[owner]/[repo-name]/runs/[check-run-id], usually an GitHub Action page of the check run.StringgetName()Gets the custom name of this check run.StringgetNodeId()Gets the global node id to access most objects in GitHub.GHCheckRun.OutputgetOutput()Gets an output for a check run.DategetStartedAt()Gets the start time of the check run in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.StringgetStatus()Gets status of the check run.-
Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
-
-
-
Method Detail
-
getStatus
public String getStatus()
Gets status of the check run.- Returns:
- Status of the check run
- See Also:
GHCheckRun.Status
-
getConclusion
public String getConclusion()
Gets conclusion of a completed check run.- Returns:
- Status of the check run
- See Also:
GHCheckRun.Conclusion
-
getName
public String getName()
Gets the custom name of this check run.- Returns:
- Name of the check run
-
getHeadSha
public String getHeadSha()
Gets the HEAD SHA.- Returns:
- sha for the HEAD commit
-
getHtmlUrl
public URL getHtmlUrl()
Gets the HTML URL: https://github.com/[owner]/[repo-name]/runs/[check-run-id], usually an GitHub Action page of the check run.- Specified by:
getHtmlUrlin classGHObject- Returns:
- HTML URL
-
getNodeId
public String getNodeId()
Gets the global node id to access most objects in GitHub.- Overrides:
getNodeIdin classGHObject- Returns:
- Global node id
- See Also:
- documentation
-
getExternalId
public String getExternalId()
Gets a reference for the check run on the integrator's system.- Returns:
- Reference id
-
getDetailsUrl
public URL getDetailsUrl()
Gets the details URL from which to find full details of the check run on the integrator's site.- Returns:
- Details URL
-
getStartedAt
public Date 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
public Date 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
public GHApp getApp()
Gets the GitHub app this check run belongs to, included in response.- Returns:
- GitHub App
-
getCheckSuite
public GHCheckSuite getCheckSuite()
Gets the check suite this check run belongs to- Returns:
- Check suite
-
getOutput
public GHCheckRun.Output getOutput()
Gets an output for a check run.- Returns:
- Output of a check run
-
-