Skip to content

Commit aab7d1d

Browse files
committed
feat: octokit.actions.listDownloadsForSelfHostedRunnerApplication()
1 parent 72abbb7 commit aab7d1d

File tree

2 files changed

+96
-75
lines changed

2 files changed

+96
-75
lines changed

src/generated/endpoints.ts

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,14 @@ export default {
128128
},
129129
url: "/repos/:owner/:repo/actions/runs/:run_id"
130130
},
131+
listDownloadsForSelfHostedRunnerApplication: {
132+
method: "GET",
133+
params: {
134+
owner: { required: true, type: "string" },
135+
repo: { required: true, type: "string" }
136+
},
137+
url: "/repos/:owner/:repo/actions/runners/downloads"
138+
},
131139
listJobsForWorkflowRun: {
132140
method: "GET",
133141
params: {
@@ -142,10 +150,14 @@ export default {
142150
listRepoWorkflowRuns: {
143151
method: "GET",
144152
params: {
153+
actor: { type: "string" },
154+
branch: { type: "string" },
155+
event: { type: "string" },
145156
owner: { required: true, type: "string" },
146157
page: { type: "integer" },
147158
per_page: { type: "integer" },
148-
repo: { required: true, type: "string" }
159+
repo: { required: true, type: "string" },
160+
status: { enum: ["completed", "status", "conclusion"], type: "string" }
149161
},
150162
url: "/repos/:owner/:repo/actions/runs"
151163
},
@@ -215,10 +227,14 @@ export default {
215227
listWorkflowRuns: {
216228
method: "GET",
217229
params: {
230+
actor: { type: "string" },
231+
branch: { type: "string" },
232+
event: { type: "string" },
218233
owner: { required: true, type: "string" },
219234
page: { type: "integer" },
220235
per_page: { type: "integer" },
221236
repo: { required: true, type: "string" },
237+
status: { enum: ["completed", "status", "conclusion"], type: "string" },
222238
workflow_id: { required: true, type: "integer" }
223239
},
224240
url: "/repos/:owner/:repo/actions/workflows/:workflow_id/runs"
@@ -510,20 +526,12 @@ export default {
510526
},
511527
checkAccountIsAssociatedWithAny: {
512528
method: "GET",
513-
params: {
514-
account_id: { required: true, type: "integer" },
515-
page: { type: "integer" },
516-
per_page: { type: "integer" }
517-
},
529+
params: { account_id: { required: true, type: "integer" } },
518530
url: "/marketplace_listing/accounts/:account_id"
519531
},
520532
checkAccountIsAssociatedWithAnyStubbed: {
521533
method: "GET",
522-
params: {
523-
account_id: { required: true, type: "integer" },
524-
page: { type: "integer" },
525-
per_page: { type: "integer" }
526-
},
534+
params: { account_id: { required: true, type: "integer" } },
527535
url: "/marketplace_listing/stubbed/accounts/:account_id"
528536
},
529537
checkAuthorization: {
@@ -1549,8 +1557,6 @@ export default {
15491557
params: {
15501558
comment_id: { required: true, type: "integer" },
15511559
owner: { required: true, type: "string" },
1552-
page: { type: "integer" },
1553-
per_page: { type: "integer" },
15541560
repo: { required: true, type: "string" }
15551561
},
15561562
url: "/repos/:owner/:repo/issues/comments/:comment_id"
@@ -2718,11 +2724,7 @@ export default {
27182724
get: {
27192725
headers: { accept: "application/vnd.github.inertia-preview+json" },
27202726
method: "GET",
2721-
params: {
2722-
page: { type: "integer" },
2723-
per_page: { type: "integer" },
2724-
project_id: { required: true, type: "integer" }
2725-
},
2727+
params: { project_id: { required: true, type: "integer" } },
27262728
url: "/projects/:project_id"
27272729
},
27282730
getCard: {

src/generated/rest-endpoint-methods-types.ts

Lines changed: 76 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -23432,7 +23432,7 @@ type ActionsListWorkflowRunsResponse = {
2343223432
total_count: number;
2343323433
workflow_runs: Array<ActionsListWorkflowRunsResponseWorkflowRunsItem>;
2343423434
};
23435-
type ActionsListWorkflowRunArtifactsResponseItemArtifactsItem = {
23435+
type ActionsListWorkflowRunArtifactsResponseArtifactsItem = {
2343623436
archive_download_url: string;
2343723437
created_at: string;
2343823438
expired: string;
@@ -23442,8 +23442,8 @@ type ActionsListWorkflowRunArtifactsResponseItemArtifactsItem = {
2344223442
node_id: string;
2344323443
size_in_bytes: number;
2344423444
};
23445-
type ActionsListWorkflowRunArtifactsResponseItem = {
23446-
artifacts: Array<ActionsListWorkflowRunArtifactsResponseItemArtifactsItem>;
23445+
type ActionsListWorkflowRunArtifactsResponse = {
23446+
artifacts: Array<ActionsListWorkflowRunArtifactsResponseArtifactsItem>;
2344723447
total_count: number;
2344823448
};
2344923449
type ActionsListSelfHostedRunnersForRepoResponseItemItem = {
@@ -23452,13 +23452,13 @@ type ActionsListSelfHostedRunnersForRepoResponseItemItem = {
2345223452
os: string;
2345323453
status: string;
2345423454
};
23455-
type ActionsListSecretsForRepoResponseItemSecretsItem = {
23455+
type ActionsListSecretsForRepoResponseSecretsItem = {
2345623456
created_at: string;
2345723457
name: string;
2345823458
updated_at: string;
2345923459
};
23460-
type ActionsListSecretsForRepoResponseItem = {
23461-
secrets: Array<ActionsListSecretsForRepoResponseItemSecretsItem>;
23460+
type ActionsListSecretsForRepoResponse = {
23461+
secrets: Array<ActionsListSecretsForRepoResponseSecretsItem>;
2346223462
total_count: number;
2346323463
};
2346423464
type ActionsListRepoWorkflowsResponseWorkflowsItem = {
@@ -23659,15 +23659,15 @@ type ActionsListRepoWorkflowRunsResponse = {
2365923659
total_count: number;
2366023660
workflow_runs: Array<ActionsListRepoWorkflowRunsResponseWorkflowRunsItem>;
2366123661
};
23662-
type ActionsListJobsForWorkflowRunResponseItemWorkflowJobsItemStepsItem = {
23662+
type ActionsListJobsForWorkflowRunResponseJobsItemStepsItem = {
2366323663
completed_at: string;
2366423664
conclusion: string;
2366523665
name: string;
2366623666
number: number;
2366723667
started_at: string;
2366823668
status: string;
2366923669
};
23670-
type ActionsListJobsForWorkflowRunResponseItemWorkflowJobsItem = {
23670+
type ActionsListJobsForWorkflowRunResponseJobsItem = {
2367123671
check_run_url: string;
2367223672
completed_at: string;
2367323673
conclusion: string;
@@ -23680,16 +23680,18 @@ type ActionsListJobsForWorkflowRunResponseItemWorkflowJobsItem = {
2368023680
run_url: string;
2368123681
started_at: string;
2368223682
status: string;
23683-
steps: Array<
23684-
ActionsListJobsForWorkflowRunResponseItemWorkflowJobsItemStepsItem
23685-
>;
23683+
steps: Array<ActionsListJobsForWorkflowRunResponseJobsItemStepsItem>;
2368623684
url: string;
2368723685
};
23688-
type ActionsListJobsForWorkflowRunResponseItem = {
23686+
type ActionsListJobsForWorkflowRunResponse = {
23687+
jobs: Array<ActionsListJobsForWorkflowRunResponseJobsItem>;
2368923688
total_count: number;
23690-
workflow_jobs: Array<
23691-
ActionsListJobsForWorkflowRunResponseItemWorkflowJobsItem
23692-
>;
23689+
};
23690+
type ActionsListDownloadsForSelfHostedRunnerApplicationResponseItem = {
23691+
architecture: string;
23692+
download_url: string;
23693+
filename: string;
23694+
os: string;
2369323695
};
2369423696
type ActionsGetWorkflowRunResponseRepositoryOwner = {
2369523697
avatar_url: string;
@@ -23932,18 +23934,12 @@ type ActionsCreateRegistrationTokenResponse = {
2393223934
expires_at: string;
2393323935
token: string;
2393423936
};
23935-
type ActionsListJobsForWorkflowRunResponse = Array<
23936-
ActionsListJobsForWorkflowRunResponseItem
23937-
>;
23938-
type ActionsListSecretsForRepoResponse = Array<
23939-
ActionsListSecretsForRepoResponseItem
23937+
type ActionsListDownloadsForSelfHostedRunnerApplicationResponse = Array<
23938+
ActionsListDownloadsForSelfHostedRunnerApplicationResponseItem
2394023939
>;
2394123940
type ActionsListSelfHostedRunnersForRepoResponse = Array<
2394223941
Array<ActionsListSelfHostedRunnersForRepoResponseItemItem>
2394323942
>;
23944-
type ActionsListWorkflowRunArtifactsResponse = Array<
23945-
ActionsListWorkflowRunArtifactsResponseItem
23946-
>;
2394723943
type ActivityListNotificationsResponse = Array<
2394823944
ActivityListNotificationsResponseItem
2394923945
>;
@@ -24391,6 +24387,10 @@ export type ActionsGetWorkflowRunParams = {
2439124387
repo: string;
2439224388
run_id: number;
2439324389
};
24390+
export type ActionsListDownloadsForSelfHostedRunnerApplicationParams = {
24391+
owner: string;
24392+
repo: string;
24393+
};
2439424394
export type ActionsListJobsForWorkflowRunParams = {
2439524395
owner: string;
2439624396
/**
@@ -24405,6 +24405,18 @@ export type ActionsListJobsForWorkflowRunParams = {
2440524405
run_id: number;
2440624406
};
2440724407
export type ActionsListRepoWorkflowRunsParams = {
24408+
/**
24409+
* Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run.
24410+
*/
24411+
actor?: string;
24412+
/**
24413+
* Returns workflow runs associated with a branch. Use the name of the branch of the `push`.
24414+
*/
24415+
branch?: string;
24416+
/**
24417+
* 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.
24418+
*/
24419+
event?: string;
2440824420
owner: string;
2440924421
/**
2441024422
* Page number of the results to fetch.
@@ -24415,6 +24427,10 @@ export type ActionsListRepoWorkflowRunsParams = {
2441524427
*/
2441624428
per_page?: number;
2441724429
repo: string;
24430+
/**
24431+
* 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)."
24432+
*/
24433+
status?: "completed" | "status" | "conclusion";
2441824434
};
2441924435
export type ActionsListRepoWorkflowsParams = {
2442024436
owner: string;
@@ -24492,6 +24508,18 @@ export type ActionsListWorkflowRunLogsParams = {
2449224508
run_id: number;
2449324509
};
2449424510
export type ActionsListWorkflowRunsParams = {
24511+
/**
24512+
* Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run.
24513+
*/
24514+
actor?: string;
24515+
/**
24516+
* Returns workflow runs associated with a branch. Use the name of the branch of the `push`.
24517+
*/
24518+
branch?: string;
24519+
/**
24520+
* 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.
24521+
*/
24522+
event?: string;
2449524523
owner: string;
2449624524
/**
2449724525
* Page number of the results to fetch.
@@ -24502,6 +24530,10 @@ export type ActionsListWorkflowRunsParams = {
2450224530
*/
2450324531
per_page?: number;
2450424532
repo: string;
24533+
/**
24534+
* 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)."
24535+
*/
24536+
status?: "completed" | "status" | "conclusion";
2450524537
workflow_id: number;
2450624538
};
2450724539
export type ActionsReRunWorkflowParams = {
@@ -24834,25 +24866,9 @@ export type AppsAddRepoToInstallationParams = {
2483424866
};
2483524867
export type AppsCheckAccountIsAssociatedWithAnyParams = {
2483624868
account_id: number;
24837-
/**
24838-
* Page number of the results to fetch.
24839-
*/
24840-
page?: number;
24841-
/**
24842-
* Results per page (max 100)
24843-
*/
24844-
per_page?: number;
2484524869
};
2484624870
export type AppsCheckAccountIsAssociatedWithAnyStubbedParams = {
2484724871
account_id: number;
24848-
/**
24849-
* Page number of the results to fetch.
24850-
*/
24851-
page?: number;
24852-
/**
24853-
* Results per page (max 100)
24854-
*/
24855-
per_page?: number;
2485624872
};
2485724873
export type AppsCheckAuthorizationParams = {
2485824874
access_token: string;
@@ -25839,14 +25855,6 @@ export type IssuesGetParams = {
2583925855
export type IssuesGetCommentParams = {
2584025856
comment_id: number;
2584125857
owner: string;
25842-
/**
25843-
* Page number of the results to fetch.
25844-
*/
25845-
page?: number;
25846-
/**
25847-
* Results per page (max 100)
25848-
*/
25849-
per_page?: number;
2585025858
repo: string;
2585125859
};
2585225860
export type IssuesGetEventParams = {
@@ -27438,14 +27446,6 @@ export type ProjectsDeleteColumnParams = {
2743827446
column_id: number;
2743927447
};
2744027448
export type ProjectsGetParams = {
27441-
/**
27442-
* Page number of the results to fetch.
27443-
*/
27444-
page?: number;
27445-
/**
27446-
* Results per page (max 100)
27447-
*/
27448-
per_page?: number;
2744927449
project_id: number;
2745027450
};
2745127451
export type ProjectsGetCardParams = {
@@ -32882,6 +32882,21 @@ export type RestEndpointMethods = {
3288232882

3288332883
endpoint: EndpointInterface;
3288432884
};
32885+
/**
32886+
* 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.
32887+
*/
32888+
listDownloadsForSelfHostedRunnerApplication: {
32889+
(
32890+
params?: RequestParameters &
32891+
ActionsListDownloadsForSelfHostedRunnerApplicationParams
32892+
): Promise<
32893+
OctokitResponse<
32894+
ActionsListDownloadsForSelfHostedRunnerApplicationResponse
32895+
>
32896+
>;
32897+
32898+
endpoint: EndpointInterface;
32899+
};
3288532900
/**
3288632901
* 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.
3288732902
*/
@@ -32893,7 +32908,9 @@ export type RestEndpointMethods = {
3289332908
endpoint: EndpointInterface;
3289432909
};
3289532910
/**
32896-
* 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.
32911+
* 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).
32912+
*
32913+
* Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint.
3289732914
*/
3289832915
listRepoWorkflowRuns: {
3289932916
(params?: RequestParameters & ActionsListRepoWorkflowRunsParams): Promise<
@@ -32967,7 +32984,9 @@ export type RestEndpointMethods = {
3296732984
endpoint: EndpointInterface;
3296832985
};
3296932986
/**
32970-
* 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.
32987+
* 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).
32988+
*
32989+
* Anyone with read access to the repository can use this endpoint.
3297132990
*/
3297232991
listWorkflowRuns: {
3297332992
(params?: RequestParameters & ActionsListWorkflowRunsParams): Promise<

0 commit comments

Comments
 (0)