From 896ae5f98dd0fa17dfb1685427a7659a229e53be Mon Sep 17 00:00:00 2001 From: Dan Adajian Date: Fri, 10 Jan 2025 08:34:05 -0600 Subject: [PATCH] fix types --- src/types/github.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/types/github.ts b/src/types/github.ts index ca719d9a..50c22d66 100644 --- a/src/types/github.ts +++ b/src/types/github.ts @@ -12,10 +12,11 @@ limitations under the License. */ import { RestEndpointMethodTypes } from '@octokit/rest'; +import { octokit } from '../octokit'; export type PipelineState = RestEndpointMethodTypes['repos']['createCommitStatus']['parameters']['state']; export type DeploymentState = RestEndpointMethodTypes['repos']['createDeploymentStatus']['parameters']['state']; -export type PullRequest = RestEndpointMethodTypes['pulls']['get']['response']['data']; +export type PullRequest = Awaited>['data']; export type PullRequestList = RestEndpointMethodTypes['pulls']['list']['response']['data']; export type IssueList = RestEndpointMethodTypes['issues']['listForRepo']['response']['data']; export type CommentList = RestEndpointMethodTypes['issues']['listComments']['response']['data'];