Skip to content

Commit 77baafa

Browse files
committed
Add method for updating check run by ID
1 parent 224d8c7 commit 77baafa

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/main/java/org/kohsuke/github/GHRepository.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1958,6 +1958,19 @@ public GHCommitStatus createCommitStatus(String sha1, GHCommitState state, Strin
19581958
return new GHCheckRunBuilder(this, name, headSHA);
19591959
}
19601960

1961+
/**
1962+
* Updates an existing check run.
1963+
*
1964+
* @param checkId
1965+
* the existing checkId
1966+
* @return a builder which you should customize, then call {@link GHCheckRunBuilder#create}
1967+
*/
1968+
@Preview
1969+
@Deprecated
1970+
public @NonNull GHCheckRunBuilder updateCheckRun(long checkId) {
1971+
return new GHCheckRunBuilder(this, checkId);
1972+
}
1973+
19611974
/**
19621975
* Lists repository events.
19631976
*

0 commit comments

Comments
 (0)