Package org.kohsuke.github
Class GHCheckRunBuilder
- java.lang.Object
-
- org.kohsuke.github.GHCheckRunBuilder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGHCheckRunBuilder.ActionThe Class Action.static classGHCheckRunBuilder.AnnotationThe Class Annotation.static classGHCheckRunBuilder.ImageThe Class Image.static classGHCheckRunBuilder.OutputThe Class Output.
-
Field Summary
Fields Modifier and Type Field Description protected GHRepositoryrepoThe repo.protected org.kohsuke.github.RequesterrequesterThe requester.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GHCheckRunBuilderadd(GHCheckRunBuilder.Action action)Adds the.GHCheckRunBuilderadd(GHCheckRunBuilder.Output output)Adds the.GHCheckRuncreate()Actually creates the check run.GHCheckRunBuilderwithCompletedAt(Date completedAt)With completed at.GHCheckRunBuilderwithConclusion(GHCheckRun.Conclusion conclusion)With conclusion.GHCheckRunBuilderwithDetailsURL(String detailsURL)With details URL.GHCheckRunBuilderwithExternalID(String externalID)With external ID.GHCheckRunBuilderwithStartedAt(Date startedAt)With started at.GHCheckRunBuilderwithStatus(GHCheckRun.Status status)With status.
-
-
-
Field Detail
-
repo
protected final GHRepository repo
The repo.
-
requester
protected final org.kohsuke.github.Requester requester
The requester.
-
-
Method Detail
-
withDetailsURL
@NonNull public GHCheckRunBuilder withDetailsURL(@CheckForNull String detailsURL)
With details URL.- Parameters:
detailsURL- the details URL- Returns:
- the GH check run builder
-
withExternalID
@NonNull public GHCheckRunBuilder withExternalID(@CheckForNull String externalID)
With external ID.- Parameters:
externalID- the external ID- Returns:
- the GH check run builder
-
withStatus
@NonNull public GHCheckRunBuilder withStatus(@CheckForNull GHCheckRun.Status status)
With status.- Parameters:
status- the status- Returns:
- the GH check run builder
-
withConclusion
@NonNull public GHCheckRunBuilder withConclusion(@CheckForNull GHCheckRun.Conclusion conclusion)
With conclusion.- Parameters:
conclusion- the conclusion- Returns:
- the GH check run builder
-
withStartedAt
@NonNull public GHCheckRunBuilder withStartedAt(@CheckForNull Date startedAt)
With started at.- Parameters:
startedAt- the started at- Returns:
- the GH check run builder
-
withCompletedAt
@NonNull public GHCheckRunBuilder withCompletedAt(@CheckForNull Date completedAt)
With completed at.- Parameters:
completedAt- the completed at- Returns:
- the GH check run builder
-
add
@NonNull public GHCheckRunBuilder add(@NonNull GHCheckRunBuilder.Output output)
Adds the.- Parameters:
output- the output- Returns:
- the GH check run builder
-
add
@NonNull public GHCheckRunBuilder add(@NonNull GHCheckRunBuilder.Action action)
Adds the.- Parameters:
action- the action- Returns:
- the GH check run builder
-
create
@NonNull public GHCheckRun create() throws IOException
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
-
-