[CheckRuns] Add method for listing checkruns for given ref

This commit is contained in:
Andrej Vano
2020-03-14 16:18:32 +01:00
parent 6752b46f67
commit 5cb6bfa633
28 changed files with 2305 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
package org.kohsuke.github;
/**
* Represents the one page of check-runs result when listing check-runs.
*/
class GHCheckRunsPage {
private int total_count;
private GHCheckRun[] check_runs;
public int getTotalCount() {
return total_count;
}
GHCheckRun[] getCheckRuns(GitHub root) {
for (GHCheckRun check_run : check_runs) {
check_run.wrap(root);
}
return check_runs;
}
}