java.lang.Object
org.kohsuke.github.GHCheckRunBuilder
Drafts or updates a check run.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
The Class Action.static final class
The Class Annotation.static final class
The Class Image.static final class
The Class Output. -
Field Summary
Modifier and TypeFieldDescriptionprotected final GHRepository
The repo.protected final org.kohsuke.github.Requester
The requester. -
Method Summary
Modifier and TypeMethodDescriptionadd
(GHCheckRunBuilder.Action action) Adds the.add
(GHCheckRunBuilder.Output output) Adds the.create()
Actually creates the check run.withCompletedAt
(Date completedAt) With completed at.withConclusion
(GHCheckRun.Conclusion conclusion) With conclusion.withDetailsURL
(String detailsURL) With details URL.withExternalID
(String externalID) With external ID.With name.withStartedAt
(Date startedAt) With started at.withStatus
(GHCheckRun.Status status) With status.
-
Field Details
-
repo
The repo. -
requester
protected final org.kohsuke.github.Requester requesterThe requester.
-
-
Method Details
-
withName
With name.- Parameters:
name
- the nameoldName
- the old name- Returns:
- the GH check run builder
-
withDetailsURL
With details URL.- Parameters:
detailsURL
- the details URL- Returns:
- the GH check run builder
-
withExternalID
With external ID.- Parameters:
externalID
- the external ID- Returns:
- the GH check run builder
-
withStatus
With status.- Parameters:
status
- the status- Returns:
- the GH check run builder
-
withConclusion
With conclusion.- Parameters:
conclusion
- the conclusion- Returns:
- the GH check run builder
-
withStartedAt
With started at.- Parameters:
startedAt
- the started at- Returns:
- the GH check run builder
-
withCompletedAt
With completed at.- Parameters:
completedAt
- the completed at- Returns:
- the GH check run builder
-
add
Adds the.- Parameters:
output
- the output- Returns:
- the GH check run builder
-
add
Adds the.- Parameters:
action
- the action- Returns:
- the GH check run builder
-
create
Actually creates the check run. (If more than fifty annotations were requested, this is done in batches.)- Returns:
- the resulting run
- Throws:
IOException
- for the usual reasons
-