Skip to content

Commit 8f25a16

Browse files
committed
feat: octokit.actions.listDownloadsForSelfHostedRunnerApplication({ owner, repo })
1 parent 2e345cd commit 8f25a16

File tree

2 files changed

+79
-57
lines changed

2 files changed

+79
-57
lines changed

src/generated/endpoints.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ const Endpoints: EndpointsDefaultsAndDecorations = {
3131
getWorkflow: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],
3232
getWorkflowJob: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],
3333
getWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],
34+
listDownloadsForSelfHostedRunnerApplication: [
35+
"GET /repos/{owner}/{repo}/actions/runners/downloads"
36+
],
3437
listJobsForWorkflowRun: [
3538
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"
3639
],

src/generated/types.ts

Lines changed: 76 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -20100,7 +20100,7 @@ type ActionsListWorkflowRunsResponse = {
2010020100
total_count: number;
2010120101
workflow_runs: Array<ActionsListWorkflowRunsResponseWorkflowRunsItem>;
2010220102
};
20103-
type ActionsListWorkflowRunArtifactsResponseItemArtifactsItem = {
20103+
type ActionsListWorkflowRunArtifactsResponseArtifactsItem = {
2010420104
archive_download_url: string;
2010520105
created_at: string;
2010620106
expired: string;
@@ -20110,8 +20110,8 @@ type ActionsListWorkflowRunArtifactsResponseItemArtifactsItem = {
2011020110
node_id: string;
2011120111
size_in_bytes: number;
2011220112
};
20113-
type ActionsListWorkflowRunArtifactsResponseItem = {
20114-
artifacts: Array<ActionsListWorkflowRunArtifactsResponseItemArtifactsItem>;
20113+
type ActionsListWorkflowRunArtifactsResponse = {
20114+
artifacts: Array<ActionsListWorkflowRunArtifactsResponseArtifactsItem>;
2011520115
total_count: number;
2011620116
};
2011720117
type ActionsListSelfHostedRunnersForRepoResponseItemItem = {
@@ -20120,13 +20120,13 @@ type ActionsListSelfHostedRunnersForRepoResponseItemItem = {
2012020120
os: string;
2012120121
status: string;
2012220122
};
20123-
type ActionsListSecretsForRepoResponseItemSecretsItem = {
20123+
type ActionsListSecretsForRepoResponseSecretsItem = {
2012420124
created_at: string;
2012520125
name: string;
2012620126
updated_at: string;
2012720127
};
20128-
type ActionsListSecretsForRepoResponseItem = {
20129-
secrets: Array<ActionsListSecretsForRepoResponseItemSecretsItem>;
20128+
type ActionsListSecretsForRepoResponse = {
20129+
secrets: Array<ActionsListSecretsForRepoResponseSecretsItem>;
2013020130
total_count: number;
2013120131
};
2013220132
type ActionsListRepoWorkflowsResponseWorkflowsItem = {
@@ -20327,15 +20327,15 @@ type ActionsListRepoWorkflowRunsResponse = {
2032720327
total_count: number;
2032820328
workflow_runs: Array<ActionsListRepoWorkflowRunsResponseWorkflowRunsItem>;
2032920329
};
20330-
type ActionsListJobsForWorkflowRunResponseItemWorkflowJobsItemStepsItem = {
20330+
type ActionsListJobsForWorkflowRunResponseJobsItemStepsItem = {
2033120331
completed_at: string;
2033220332
conclusion: string;
2033320333
name: string;
2033420334
number: number;
2033520335
started_at: string;
2033620336
status: string;
2033720337
};
20338-
type ActionsListJobsForWorkflowRunResponseItemWorkflowJobsItem = {
20338+
type ActionsListJobsForWorkflowRunResponseJobsItem = {
2033920339
check_run_url: string;
2034020340
completed_at: string;
2034120341
conclusion: string;
@@ -20348,16 +20348,18 @@ type ActionsListJobsForWorkflowRunResponseItemWorkflowJobsItem = {
2034820348
run_url: string;
2034920349
started_at: string;
2035020350
status: string;
20351-
steps: Array<
20352-
ActionsListJobsForWorkflowRunResponseItemWorkflowJobsItemStepsItem
20353-
>;
20351+
steps: Array<ActionsListJobsForWorkflowRunResponseJobsItemStepsItem>;
2035420352
url: string;
2035520353
};
20356-
type ActionsListJobsForWorkflowRunResponseItem = {
20354+
type ActionsListJobsForWorkflowRunResponse = {
20355+
jobs: Array<ActionsListJobsForWorkflowRunResponseJobsItem>;
2035720356
total_count: number;
20358-
workflow_jobs: Array<
20359-
ActionsListJobsForWorkflowRunResponseItemWorkflowJobsItem
20360-
>;
20357+
};
20358+
type ActionsListDownloadsForSelfHostedRunnerApplicationResponseItem = {
20359+
architecture: string;
20360+
download_url: string;
20361+
filename: string;
20362+
os: string;
2036120363
};
2036220364
type ActionsGetWorkflowRunResponseRepositoryOwner = {
2036320365
avatar_url: string;
@@ -20600,18 +20602,12 @@ type ActionsCreateRegistrationTokenResponse = {
2060020602
expires_at: string;
2060120603
token: string;
2060220604
};
20603-
type ActionsListJobsForWorkflowRunResponse = Array<
20604-
ActionsListJobsForWorkflowRunResponseItem
20605-
>;
20606-
type ActionsListSecretsForRepoResponse = Array<
20607-
ActionsListSecretsForRepoResponseItem
20605+
type ActionsListDownloadsForSelfHostedRunnerApplicationResponse = Array<
20606+
ActionsListDownloadsForSelfHostedRunnerApplicationResponseItem
2060820607
>;
2060920608
type ActionsListSelfHostedRunnersForRepoResponse = Array<
2061020609
Array<ActionsListSelfHostedRunnersForRepoResponseItemItem>
2061120610
>;
20612-
type ActionsListWorkflowRunArtifactsResponse = Array<
20613-
ActionsListWorkflowRunArtifactsResponseItem
20614-
>;
2061520611
type ActivityListNotificationsResponse = Array<
2061620612
ActivityListNotificationsResponseItem
2061720613
>;
@@ -20999,6 +20995,10 @@ export type ActionsGetWorkflowRunParams = {
2099920995
repo: string;
2100020996
run_id: number;
2100120997
};
20998+
export type ActionsListDownloadsForSelfHostedRunnerApplicationParams = {
20999+
owner: string;
21000+
repo: string;
21001+
};
2100221002
export type ActionsListJobsForWorkflowRunParams = {
2100321003
owner: string;
2100421004
/**
@@ -21013,6 +21013,18 @@ export type ActionsListJobsForWorkflowRunParams = {
2101321013
run_id: number;
2101421014
};
2101521015
export type ActionsListRepoWorkflowRunsParams = {
21016+
/**
21017+
* Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run.
21018+
*/
21019+
actor?: string;
21020+
/**
21021+
* Returns workflow runs associated with a branch. Use the name of the branch of the `push`.
21022+
*/
21023+
branch?: string;
21024+
/**
21025+
* 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.
21026+
*/
21027+
event?: string;
2101621028
owner: string;
2101721029
/**
2101821030
* Page number of the results to fetch.
@@ -21023,6 +21035,10 @@ export type ActionsListRepoWorkflowRunsParams = {
2102321035
*/
2102421036
per_page?: number;
2102521037
repo: string;
21038+
/**
21039+
* 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)."
21040+
*/
21041+
status?: "completed" | "status" | "conclusion";
2102621042
};
2102721043
export type ActionsListRepoWorkflowsParams = {
2102821044
owner: string;
@@ -21100,6 +21116,18 @@ export type ActionsListWorkflowRunLogsParams = {
2110021116
run_id: number;
2110121117
};
2110221118
export type ActionsListWorkflowRunsParams = {
21119+
/**
21120+
* Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run.
21121+
*/
21122+
actor?: string;
21123+
/**
21124+
* Returns workflow runs associated with a branch. Use the name of the branch of the `push`.
21125+
*/
21126+
branch?: string;
21127+
/**
21128+
* 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.
21129+
*/
21130+
event?: string;
2110321131
owner: string;
2110421132
/**
2110521133
* Page number of the results to fetch.
@@ -21110,6 +21138,10 @@ export type ActionsListWorkflowRunsParams = {
2111021138
*/
2111121139
per_page?: number;
2111221140
repo: string;
21141+
/**
21142+
* 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)."
21143+
*/
21144+
status?: "completed" | "status" | "conclusion";
2111321145
workflow_id: number;
2111421146
};
2111521147
export type ActionsReRunWorkflowParams = {
@@ -21442,25 +21474,9 @@ export type AppsAddRepoToInstallationParams = {
2144221474
};
2144321475
export type AppsCheckAccountIsAssociatedWithAnyParams = {
2144421476
account_id: number;
21445-
/**
21446-
* Page number of the results to fetch.
21447-
*/
21448-
page?: number;
21449-
/**
21450-
* Results per page (max 100)
21451-
*/
21452-
per_page?: number;
2145321477
};
2145421478
export type AppsCheckAccountIsAssociatedWithAnyStubbedParams = {
2145521479
account_id: number;
21456-
/**
21457-
* Page number of the results to fetch.
21458-
*/
21459-
page?: number;
21460-
/**
21461-
* Results per page (max 100)
21462-
*/
21463-
per_page?: number;
2146421480
};
2146521481
export type AppsCheckTokenParams = {
2146621482
/**
@@ -22359,14 +22375,6 @@ export type IssuesGetParams = {
2235922375
export type IssuesGetCommentParams = {
2236022376
comment_id: number;
2236122377
owner: string;
22362-
/**
22363-
* Page number of the results to fetch.
22364-
*/
22365-
page?: number;
22366-
/**
22367-
* Results per page (max 100)
22368-
*/
22369-
per_page?: number;
2237022378
repo: string;
2237122379
};
2237222380
export type IssuesGetEventParams = {
@@ -23577,14 +23585,6 @@ export type ProjectsDeleteColumnParams = {
2357723585
column_id: number;
2357823586
};
2357923587
export type ProjectsGetParams = {
23580-
/**
23581-
* Page number of the results to fetch.
23582-
*/
23583-
page?: number;
23584-
/**
23585-
* Results per page (max 100)
23586-
*/
23587-
per_page?: number;
2358823588
project_id: number;
2358923589
};
2359023590
export type ProjectsGetCardParams = {
@@ -27428,6 +27428,21 @@ export type RestEndpointMethods = {
2742827428

2742927429
endpoint: EndpointInterface;
2743027430
};
27431+
/**
27432+
* 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.
27433+
*/
27434+
listDownloadsForSelfHostedRunnerApplication: {
27435+
(
27436+
params?: RequestParameters &
27437+
ActionsListDownloadsForSelfHostedRunnerApplicationParams
27438+
): Promise<
27439+
OctokitResponse<
27440+
ActionsListDownloadsForSelfHostedRunnerApplicationResponse
27441+
>
27442+
>;
27443+
27444+
endpoint: EndpointInterface;
27445+
};
2743127446
/**
2743227447
* 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.
2743327448
*/
@@ -27439,7 +27454,9 @@ export type RestEndpointMethods = {
2743927454
endpoint: EndpointInterface;
2744027455
};
2744127456
/**
27442-
* 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.
27457+
* 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).
27458+
*
27459+
* Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint.
2744327460
*/
2744427461
listRepoWorkflowRuns: {
2744527462
(params?: RequestParameters & ActionsListRepoWorkflowRunsParams): Promise<
@@ -27513,7 +27530,9 @@ export type RestEndpointMethods = {
2751327530
endpoint: EndpointInterface;
2751427531
};
2751527532
/**
27516-
* 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.
27533+
* 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).
27534+
*
27535+
* Anyone with read access to the repository can use this endpoint.
2751727536
*/
2751827537
listWorkflowRuns: {
2751927538
(params?: RequestParameters & ActionsListWorkflowRunsParams): Promise<

0 commit comments

Comments
 (0)