Skip to content

Commit

Permalink
feat: octokit.actions.listDownloadsForSelfHostedRunnerApplication()
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Feb 2, 2020
1 parent 72abbb7 commit aab7d1d
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 75 deletions.
38 changes: 20 additions & 18 deletions src/generated/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,14 @@ export default {
},
url: "/repos/:owner/:repo/actions/runs/:run_id"
},
listDownloadsForSelfHostedRunnerApplication: {
method: "GET",
params: {
owner: { required: true, type: "string" },
repo: { required: true, type: "string" }
},
url: "/repos/:owner/:repo/actions/runners/downloads"
},
listJobsForWorkflowRun: {
method: "GET",
params: {
Expand All @@ -142,10 +150,14 @@ export default {
listRepoWorkflowRuns: {
method: "GET",
params: {
actor: { type: "string" },
branch: { type: "string" },
event: { type: "string" },
owner: { required: true, type: "string" },
page: { type: "integer" },
per_page: { type: "integer" },
repo: { required: true, type: "string" }
repo: { required: true, type: "string" },
status: { enum: ["completed", "status", "conclusion"], type: "string" }
},
url: "/repos/:owner/:repo/actions/runs"
},
Expand Down Expand Up @@ -215,10 +227,14 @@ export default {
listWorkflowRuns: {
method: "GET",
params: {
actor: { type: "string" },
branch: { type: "string" },
event: { type: "string" },
owner: { required: true, type: "string" },
page: { type: "integer" },
per_page: { type: "integer" },
repo: { required: true, type: "string" },
status: { enum: ["completed", "status", "conclusion"], type: "string" },
workflow_id: { required: true, type: "integer" }
},
url: "/repos/:owner/:repo/actions/workflows/:workflow_id/runs"
Expand Down Expand Up @@ -510,20 +526,12 @@ export default {
},
checkAccountIsAssociatedWithAny: {
method: "GET",
params: {
account_id: { required: true, type: "integer" },
page: { type: "integer" },
per_page: { type: "integer" }
},
params: { account_id: { required: true, type: "integer" } },
url: "/marketplace_listing/accounts/:account_id"
},
checkAccountIsAssociatedWithAnyStubbed: {
method: "GET",
params: {
account_id: { required: true, type: "integer" },
page: { type: "integer" },
per_page: { type: "integer" }
},
params: { account_id: { required: true, type: "integer" } },
url: "/marketplace_listing/stubbed/accounts/:account_id"
},
checkAuthorization: {
Expand Down Expand Up @@ -1549,8 +1557,6 @@ export default {
params: {
comment_id: { required: true, type: "integer" },
owner: { required: true, type: "string" },
page: { type: "integer" },
per_page: { type: "integer" },
repo: { required: true, type: "string" }
},
url: "/repos/:owner/:repo/issues/comments/:comment_id"
Expand Down Expand Up @@ -2718,11 +2724,7 @@ export default {
get: {
headers: { accept: "application/vnd.github.inertia-preview+json" },
method: "GET",
params: {
page: { type: "integer" },
per_page: { type: "integer" },
project_id: { required: true, type: "integer" }
},
params: { project_id: { required: true, type: "integer" } },
url: "/projects/:project_id"
},
getCard: {
Expand Down
133 changes: 76 additions & 57 deletions src/generated/rest-endpoint-methods-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23432,7 +23432,7 @@ type ActionsListWorkflowRunsResponse = {
total_count: number;
workflow_runs: Array<ActionsListWorkflowRunsResponseWorkflowRunsItem>;
};
type ActionsListWorkflowRunArtifactsResponseItemArtifactsItem = {
type ActionsListWorkflowRunArtifactsResponseArtifactsItem = {
archive_download_url: string;
created_at: string;
expired: string;
Expand All @@ -23442,8 +23442,8 @@ type ActionsListWorkflowRunArtifactsResponseItemArtifactsItem = {
node_id: string;
size_in_bytes: number;
};
type ActionsListWorkflowRunArtifactsResponseItem = {
artifacts: Array<ActionsListWorkflowRunArtifactsResponseItemArtifactsItem>;
type ActionsListWorkflowRunArtifactsResponse = {
artifacts: Array<ActionsListWorkflowRunArtifactsResponseArtifactsItem>;
total_count: number;
};
type ActionsListSelfHostedRunnersForRepoResponseItemItem = {
Expand All @@ -23452,13 +23452,13 @@ type ActionsListSelfHostedRunnersForRepoResponseItemItem = {
os: string;
status: string;
};
type ActionsListSecretsForRepoResponseItemSecretsItem = {
type ActionsListSecretsForRepoResponseSecretsItem = {
created_at: string;
name: string;
updated_at: string;
};
type ActionsListSecretsForRepoResponseItem = {
secrets: Array<ActionsListSecretsForRepoResponseItemSecretsItem>;
type ActionsListSecretsForRepoResponse = {
secrets: Array<ActionsListSecretsForRepoResponseSecretsItem>;
total_count: number;
};
type ActionsListRepoWorkflowsResponseWorkflowsItem = {
Expand Down Expand Up @@ -23659,15 +23659,15 @@ type ActionsListRepoWorkflowRunsResponse = {
total_count: number;
workflow_runs: Array<ActionsListRepoWorkflowRunsResponseWorkflowRunsItem>;
};
type ActionsListJobsForWorkflowRunResponseItemWorkflowJobsItemStepsItem = {
type ActionsListJobsForWorkflowRunResponseJobsItemStepsItem = {
completed_at: string;
conclusion: string;
name: string;
number: number;
started_at: string;
status: string;
};
type ActionsListJobsForWorkflowRunResponseItemWorkflowJobsItem = {
type ActionsListJobsForWorkflowRunResponseJobsItem = {
check_run_url: string;
completed_at: string;
conclusion: string;
Expand All @@ -23680,16 +23680,18 @@ type ActionsListJobsForWorkflowRunResponseItemWorkflowJobsItem = {
run_url: string;
started_at: string;
status: string;
steps: Array<
ActionsListJobsForWorkflowRunResponseItemWorkflowJobsItemStepsItem
>;
steps: Array<ActionsListJobsForWorkflowRunResponseJobsItemStepsItem>;
url: string;
};
type ActionsListJobsForWorkflowRunResponseItem = {
type ActionsListJobsForWorkflowRunResponse = {
jobs: Array<ActionsListJobsForWorkflowRunResponseJobsItem>;
total_count: number;
workflow_jobs: Array<
ActionsListJobsForWorkflowRunResponseItemWorkflowJobsItem
>;
};
type ActionsListDownloadsForSelfHostedRunnerApplicationResponseItem = {
architecture: string;
download_url: string;
filename: string;
os: string;
};
type ActionsGetWorkflowRunResponseRepositoryOwner = {
avatar_url: string;
Expand Down Expand Up @@ -23932,18 +23934,12 @@ type ActionsCreateRegistrationTokenResponse = {
expires_at: string;
token: string;
};
type ActionsListJobsForWorkflowRunResponse = Array<
ActionsListJobsForWorkflowRunResponseItem
>;
type ActionsListSecretsForRepoResponse = Array<
ActionsListSecretsForRepoResponseItem
type ActionsListDownloadsForSelfHostedRunnerApplicationResponse = Array<
ActionsListDownloadsForSelfHostedRunnerApplicationResponseItem
>;
type ActionsListSelfHostedRunnersForRepoResponse = Array<
Array<ActionsListSelfHostedRunnersForRepoResponseItemItem>
>;
type ActionsListWorkflowRunArtifactsResponse = Array<
ActionsListWorkflowRunArtifactsResponseItem
>;
type ActivityListNotificationsResponse = Array<
ActivityListNotificationsResponseItem
>;
Expand Down Expand Up @@ -24391,6 +24387,10 @@ export type ActionsGetWorkflowRunParams = {
repo: string;
run_id: number;
};
export type ActionsListDownloadsForSelfHostedRunnerApplicationParams = {
owner: string;
repo: string;
};
export type ActionsListJobsForWorkflowRunParams = {
owner: string;
/**
Expand All @@ -24405,6 +24405,18 @@ export type ActionsListJobsForWorkflowRunParams = {
run_id: number;
};
export type ActionsListRepoWorkflowRunsParams = {
/**
* Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run.
*/
actor?: string;
/**
* Returns workflow runs associated with a branch. Use the name of the branch of the `push`.
*/
branch?: string;
/**
* Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)" in the GitHub Help documentation.
*/
event?: string;
owner: string;
/**
* Page number of the results to fetch.
Expand All @@ -24415,6 +24427,10 @@ export type ActionsListRepoWorkflowRunsParams = {
*/
per_page?: number;
repo: string;
/**
* Returns workflow runs associated with the check run `status` or `conclusion` you specify. For example, a conclusion can be `success` or a status can be `completed`. For more information, see the `status` and `conclusion` options available in "[Create a check run](https://developer.github.com/v3/checks/runs/#create-a-check-run)."
*/
status?: "completed" | "status" | "conclusion";
};
export type ActionsListRepoWorkflowsParams = {
owner: string;
Expand Down Expand Up @@ -24492,6 +24508,18 @@ export type ActionsListWorkflowRunLogsParams = {
run_id: number;
};
export type ActionsListWorkflowRunsParams = {
/**
* Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run.
*/
actor?: string;
/**
* Returns workflow runs associated with a branch. Use the name of the branch of the `push`.
*/
branch?: string;
/**
* Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)" in the GitHub Help documentation.
*/
event?: string;
owner: string;
/**
* Page number of the results to fetch.
Expand All @@ -24502,6 +24530,10 @@ export type ActionsListWorkflowRunsParams = {
*/
per_page?: number;
repo: string;
/**
* Returns workflow runs associated with the check run `status` or `conclusion` you specify. For example, a conclusion can be `success` or a status can be `completed`. For more information, see the `status` and `conclusion` options available in "[Create a check run](https://developer.github.com/v3/checks/runs/#create-a-check-run)."
*/
status?: "completed" | "status" | "conclusion";
workflow_id: number;
};
export type ActionsReRunWorkflowParams = {
Expand Down Expand Up @@ -24834,25 +24866,9 @@ export type AppsAddRepoToInstallationParams = {
};
export type AppsCheckAccountIsAssociatedWithAnyParams = {
account_id: number;
/**
* Page number of the results to fetch.
*/
page?: number;
/**
* Results per page (max 100)
*/
per_page?: number;
};
export type AppsCheckAccountIsAssociatedWithAnyStubbedParams = {
account_id: number;
/**
* Page number of the results to fetch.
*/
page?: number;
/**
* Results per page (max 100)
*/
per_page?: number;
};
export type AppsCheckAuthorizationParams = {
access_token: string;
Expand Down Expand Up @@ -25839,14 +25855,6 @@ export type IssuesGetParams = {
export type IssuesGetCommentParams = {
comment_id: number;
owner: string;
/**
* Page number of the results to fetch.
*/
page?: number;
/**
* Results per page (max 100)
*/
per_page?: number;
repo: string;
};
export type IssuesGetEventParams = {
Expand Down Expand Up @@ -27438,14 +27446,6 @@ export type ProjectsDeleteColumnParams = {
column_id: number;
};
export type ProjectsGetParams = {
/**
* Page number of the results to fetch.
*/
page?: number;
/**
* Results per page (max 100)
*/
per_page?: number;
project_id: number;
};
export type ProjectsGetCardParams = {
Expand Down Expand Up @@ -32882,6 +32882,21 @@ export type RestEndpointMethods = {

endpoint: EndpointInterface;
};
/**
* Lists binaries for the self-hosted runner application that you can download and run. Anyone with admin access to the repository can use this endpoint. GitHub Apps must have the `administration` permission to use this endpoint.
*/
listDownloadsForSelfHostedRunnerApplication: {
(
params?: RequestParameters &
ActionsListDownloadsForSelfHostedRunnerApplicationParams
): Promise<
OctokitResponse<
ActionsListDownloadsForSelfHostedRunnerApplicationResponse
>
>;

endpoint: EndpointInterface;
};
/**
* Lists jobs for a workflow run. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint.
*/
Expand All @@ -32893,7 +32908,9 @@ export type RestEndpointMethods = {
endpoint: EndpointInterface;
};
/**
* Lists all workflow runs for a repository. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint.
* Lists all workflow runs for a repository. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://developer.github.com/v3/#parameters).
*
* Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint.
*/
listRepoWorkflowRuns: {
(params?: RequestParameters & ActionsListRepoWorkflowRunsParams): Promise<
Expand Down Expand Up @@ -32967,7 +32984,9 @@ export type RestEndpointMethods = {
endpoint: EndpointInterface;
};
/**
* List all workflow runs for a workflow. You can also replace `:workflow_id` with `:workflow_file_name`. For example, you could use `main.yml`. Anyone with read access to the repository can use this endpoint.
* List all workflow runs for a workflow. You can also replace `:workflow_id` with `:workflow_file_name`. For example, you could use `main.yml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://developer.github.com/v3/#parameters).
*
* Anyone with read access to the repository can use this endpoint.
*/
listWorkflowRuns: {
(params?: RequestParameters & ActionsListWorkflowRunsParams): Promise<
Expand Down

0 comments on commit aab7d1d

Please sign in to comment.