Skip to content

Commit

Permalink
feat: octokit.actions.listDownloadsForSelfHostedRunnerApplication({ o…
Browse files Browse the repository at this point in the history
…wner, repo })
  • Loading branch information
gr2m committed Feb 2, 2020
1 parent 2e345cd commit 8f25a16
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 57 deletions.
3 changes: 3 additions & 0 deletions src/generated/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ const Endpoints: EndpointsDefaultsAndDecorations = {
getWorkflow: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],
getWorkflowJob: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],
getWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],
listDownloadsForSelfHostedRunnerApplication: [
"GET /repos/{owner}/{repo}/actions/runners/downloads"
],
listJobsForWorkflowRun: [
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"
],
Expand Down
133 changes: 76 additions & 57 deletions src/generated/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20100,7 +20100,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 @@ -20110,8 +20110,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 @@ -20120,13 +20120,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 @@ -20327,15 +20327,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 @@ -20348,16 +20348,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 @@ -20600,18 +20602,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 @@ -20999,6 +20995,10 @@ export type ActionsGetWorkflowRunParams = {
repo: string;
run_id: number;
};
export type ActionsListDownloadsForSelfHostedRunnerApplicationParams = {
owner: string;
repo: string;
};
export type ActionsListJobsForWorkflowRunParams = {
owner: string;
/**
Expand All @@ -21013,6 +21013,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 @@ -21023,6 +21035,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 @@ -21100,6 +21116,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 @@ -21110,6 +21138,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 @@ -21442,25 +21474,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 AppsCheckTokenParams = {
/**
Expand Down Expand Up @@ -22359,14 +22375,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 @@ -23577,14 +23585,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 @@ -27428,6 +27428,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 @@ -27439,7 +27454,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 @@ -27513,7 +27530,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 8f25a16

Please sign in to comment.