generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b3c386a
commit a3f33b4
Showing
9 changed files
with
212 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
import * as github from '@actions/github' | ||
import { ActionsListWorkflowRunsResponseData, PullsGetResponseData } from '@octokit/types' | ||
import { GetResponseDataTypeFromEndpointMethod } from '@octokit/types' | ||
|
||
export type Octokit = ReturnType<typeof github.getOctokit> | ||
export type PullRequest = PullsGetResponseData | ||
export type WorkflowRun = ActionsListWorkflowRunsResponseData['workflow_runs'][0] | ||
export interface Review { | ||
state: string | ||
author_association?: string | ||
|
||
export type WorkflowRun = GetResponseDataTypeFromEndpointMethod< | ||
Octokit['actions']['listWorkflowRuns'] | ||
>['workflow_runs'][0] | ||
|
||
export type PullRequest = GetResponseDataTypeFromEndpointMethod<Octokit['pulls']['get']> | ||
|
||
export type Review = { | ||
id: number | ||
user: { login: string } | ||
user: { login: string } | null | ||
state: string | ||
submitted_at?: string | ||
commit_id: string | ||
submitted_at: string | ||
author_association?: string // https://github.com/octokit/types.ts/issues/221 | ||
} | ||
|
||
export type MergeMethod = 'merge' | 'squash' | 'rebase' | undefined |