diff --git a/bun.lockb b/bun.lockb index a430342c..7e7de02b 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 3fadf042..d8f33cc3 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "@actions/github": "6.0.0", "@adobe/node-fetch-retry": "2.2.0", "@octokit/graphql-schema": "15.25.0", - "@octokit/rest": "21.0.2", + "@octokit/rest": "21.1.0", "axios": "1.7.9", "bluebird": "3.7.2", "codeowners-utils": "1.0.2", @@ -35,14 +35,14 @@ "@types/lodash.uniq": "4.5.9", "@types/micromatch": "4.0.9", "@vercel/ncc": "0.38.3", - "bun-types": "1.1.42", + "bun-types": "1.1.43", "eslint": "9.17.0", "husky": "9.1.7", "jest": "29.7.0", "plop": "4.0.1", "prettier": "3.4.2", - "typescript": "5.7.2", - "typescript-eslint": "8.18.1" + "typescript": "5.7.3", + "typescript-eslint": "8.19.1" }, "jest": { "clearMocks": true, 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'];