Skip to content

Commit

Permalink
WIP octokit/routes updated
Browse files Browse the repository at this point in the history
  • Loading branch information
octokitbot authored and gr2m committed Feb 2, 2020
1 parent c657eee commit 2a3d953
Show file tree
Hide file tree
Showing 2 changed files with 241 additions and 167 deletions.
137 changes: 79 additions & 58 deletions index.d.ts
Expand Up @@ -23743,7 +23743,7 @@ declare namespace Octokit {
total_count: number;
workflow_runs: Array<ActionsListWorkflowRunsResponseWorkflowRunsItem>;
};
type ActionsListWorkflowRunArtifactsResponseItemArtifactsItem = {
type ActionsListWorkflowRunArtifactsResponseArtifactsItem = {
archive_download_url: string;
created_at: string;
expired: string;
Expand All @@ -23753,8 +23753,8 @@ declare namespace Octokit {
node_id: string;
size_in_bytes: number;
};
type ActionsListWorkflowRunArtifactsResponseItem = {
artifacts: Array<ActionsListWorkflowRunArtifactsResponseItemArtifactsItem>;
type ActionsListWorkflowRunArtifactsResponse = {
artifacts: Array<ActionsListWorkflowRunArtifactsResponseArtifactsItem>;
total_count: number;
};
type ActionsListSelfHostedRunnersForRepoResponseItemItem = {
Expand All @@ -23763,13 +23763,13 @@ declare namespace Octokit {
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 @@ -23970,15 +23970,15 @@ declare namespace Octokit {
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 @@ -23991,16 +23991,18 @@ declare namespace Octokit {
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 @@ -24243,18 +24245,12 @@ declare namespace Octokit {
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 @@ -24737,6 +24733,11 @@ declare namespace Octokit {

run_id: number;
};
export type ActionsListDownloadsForSelfHostedRunnerApplicationParams = {
owner: string;

repo: string;
};
export type ActionsListJobsForWorkflowRunParams = {
owner: string;
/**
Expand All @@ -24753,6 +24754,19 @@ declare namespace Octokit {
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 @@ -24764,6 +24778,10 @@ declare namespace Octokit {
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 @@ -24850,6 +24868,19 @@ declare namespace Octokit {
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 @@ -24861,6 +24892,10 @@ declare namespace Octokit {
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;
};
Expand Down Expand Up @@ -25225,25 +25260,9 @@ declare namespace Octokit {
};
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 @@ -26352,14 +26371,6 @@ declare namespace Octokit {
comment_id: number;

owner: string;
/**
* Page number of the results to fetch.
*/
page?: number;
/**
* Results per page (max 100)
*/
per_page?: number;

repo: string;
};
Expand Down Expand Up @@ -28093,15 +28104,6 @@ declare namespace Octokit {
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 @@ -33885,6 +33887,21 @@ declare class Octokit {

endpoint: Octokit.Endpoint;
};
/**
* 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?: Octokit.RequestOptions &
Octokit.ActionsListDownloadsForSelfHostedRunnerApplicationParams
): Promise<
Octokit.Response<
Octokit.ActionsListDownloadsForSelfHostedRunnerApplicationResponse
>
>;

endpoint: Octokit.Endpoint;
};
/**
* 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 @@ -33899,7 +33916,9 @@ declare class Octokit {
endpoint: Octokit.Endpoint;
};
/**
* 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: {
(
Expand Down Expand Up @@ -33983,7 +34002,9 @@ declare class Octokit {
endpoint: Octokit.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`. 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: {
(
Expand Down

0 comments on commit 2a3d953

Please sign in to comment.