Skip to content

Commit bcf5b1e

Browse files
committed
Adds method to filter out check run
1 parent 43e129a commit bcf5b1e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2210,6 +2210,16 @@ public PagedIterable<GHCheckRun> getCheckRuns(String ref) throws IOException {
22102210
return new GHCheckRunsIterable(this, request);
22112211
}
22122212

2213+
@Preview(ANTIOPE)
2214+
public PagedIterable<GHCheckRun> getCheckRuns(String ref, Map<String, Object> params) throws IOException {
2215+
GitHubRequest request = root().createRequest()
2216+
.withUrlPath(String.format("/repos/%s/%s/commits/%s/check-runs", getOwnerName(), name, ref))
2217+
.with(params)
2218+
.withPreview(ANTIOPE)
2219+
.build();
2220+
return new GHCheckRunsIterable(this, request);
2221+
}
2222+
22132223
/**
22142224
* Creates a commit status.
22152225
*

0 commit comments

Comments
 (0)