forked from microsoft/vscode-pull-request-github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoctokit.ts
More file actions
25 lines (21 loc) · 1.32 KB
/
octokit.ts
File metadata and controls
25 lines (21 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import * as REST from '@octokit/rest';
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
declare namespace Github {
export type PullRequestsGetResponse = Omit<REST.PullRequestsGetResponse, 'milestone'> & {
milestone: null | REST.PullRequestsGetResponseMilestone
};
export type PullRequestsGetAllResponseItem = Omit<REST.PullRequestsGetAllResponseItem, 'milestone' | 'closed_at' | 'merged_at' | '_links'> & {
milestone: null | REST.PullRequestsGetResponseMilestone
};
export type PullRequestsGetAllResponseItemUser = REST.PullRequestsGetAllResponseItemUser;
export type PullRequestsGetResponseHead = REST.PullRequestsGetResponseHead;
export type PullRequestsCreateResponse = REST.PullRequestsCreateResponse;
export type IssuesCreateCommentResponse = REST.IssuesCreateCommentResponse;
export type IssuesEditCommentResponse = REST.IssuesEditCommentResponse;
export type PullRequestsGetCommentsResponseItem = REST.PullRequestsGetCommentsResponseItem;
export type PullRequestsEditCommentResponse = REST.PullRequestsEditCommentResponse;
export type PullRequestsGetResponseHeadRepo = REST.PullRequestsGetResponseHeadRepo;
export type PullRequestsCreateReviewResponse = REST.PullRequestsCreateReviewResponse;
}
// Octokit.PullRequestsGetResponse | Octokit.PullRequestsGetAllResponseItem
export = Github;