Fix GHRepository#listWorkflows() and add a test

This commit is contained in:
Guillaume Smet
2021-03-29 20:10:18 +02:00
parent cdc0e2ad6b
commit c19cfd98d1
10 changed files with 418 additions and 3 deletions

View File

@@ -2904,9 +2904,7 @@ public class GHRepository extends GHObject {
* @return the paged iterable
*/
public PagedIterable<GHWorkflow> listWorkflows() {
return root.createRequest()
.withUrlPath(getApiTailUrl("actions/workflows"))
.toIterable(GHWorkflow[].class, item -> item.wrapUp(root));
return new GHWorkflowsIterable(this);
}
/**