All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kohsuke.github.GHWorkflowRunsPage Maven / Gradle / Ivy

There is a newer version: 2.0.0-alpha-2
Show newest version
package org.kohsuke.github;

// TODO: Auto-generated Javadoc
/**
 * Represents the one page of workflow runs result when listing workflow runs.
 */
class GHWorkflowRunsPage {
    private int totalCount;
    private GHWorkflowRun[] workflowRuns;

    /**
     * Gets the total count.
     *
     * @return the total count
     */
    public int getTotalCount() {
        return totalCount;
    }

    /**
     * Gets the workflow runs.
     *
     * @param owner
     *            the owner
     * @return the workflow runs
     */
    GHWorkflowRun[] getWorkflowRuns(GHRepository owner) {
        for (GHWorkflowRun workflowRun : workflowRuns) {
            workflowRun.wrapUp(owner);
        }
        return workflowRuns;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy