Skip to content

Commit 9fddc16

Browse files
authored
Merge pull request #4088 from github/dependabot/npm_and_yarn/octokit/plugin-rest-endpoint-methods-18.0.0
Bump @octokit/plugin-rest-endpoint-methods from 17.0.0 to 18.0.0
2 parents 5914b03 + 1bcdd0c commit 9fddc16

6 files changed

Lines changed: 33 additions & 39 deletions

File tree

lib/entry-points.js

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"@actions/tool-cache": "^3.0.1",
3434
"@octokit/core": "^7.0.7",
3535
"@octokit/plugin-paginate-rest": "^15.0.0",
36-
"@octokit/plugin-rest-endpoint-methods": "^17.0.0",
36+
"@octokit/plugin-rest-endpoint-methods": "^18.0.0",
3737
"@octokit/plugin-retry": "^8.1.1",
3838
"archiver": "^8.0.0",
3939
"fast-deep-equal": "^3.1.3",

pr-checks/api-client.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import * as githubUtils from "@actions/github/lib/utils";
2-
import { type Octokit } from "@octokit/core";
3-
import { type PaginateInterface } from "@octokit/plugin-paginate-rest";
4-
import { type Api } from "@octokit/plugin-rest-endpoint-methods";
52

63
/** The type of the Octokit client. */
7-
export type ApiClient = Octokit & Api & { paginate: PaginateInterface };
4+
export type ApiClient = InstanceType<typeof githubUtils.GitHub>;
85

96
/** Constructs an `ApiClient` using `token` for authentication. */
107
export function getApiClient(token: string): ApiClient {

pr-checks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"@actions/github": "^8.0.1",
77
"@octokit/core": "^7.0.7",
88
"@octokit/plugin-paginate-rest": ">=15.0.0",
9-
"@octokit/plugin-rest-endpoint-methods": "^17.0.0",
9+
"@octokit/plugin-rest-endpoint-methods": "^18.0.0",
1010
"semver": "^7.8.5",
1111
"yaml": "^2.9.0"
1212
},

src/api-client.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import * as core from "@actions/core";
22
import * as githubUtils from "@actions/github/lib/utils";
3-
import { type Octokit } from "@octokit/core";
4-
import { type PaginateInterface } from "@octokit/plugin-paginate-rest";
5-
import { type Api } from "@octokit/plugin-rest-endpoint-methods";
63
import * as retry from "@octokit/plugin-retry";
74
import { RequestRequestOptions } from "@octokit/types";
85
import {
@@ -128,7 +125,7 @@ export function makeProxyRequestOptions(
128125
}
129126

130127
/** The type of GitHub API client we use. */
131-
export type ApiClient = Octokit & Api & { paginate: PaginateInterface };
128+
export type ApiClient = InstanceType<typeof githubUtils.GitHub>;
132129

133130
/** Options for `createApiClientWithDetails`. */
134131
interface CreateApiClientOptions {

0 commit comments

Comments
 (0)