File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
extensions/ql-vscode/scripts Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1414import { pathExists , readJson , writeJson } from "fs-extra" ;
1515import { resolve , relative } from "path" ;
1616
17- import { Octokit , type RestEndpointMethodTypes } from "@octokit/rest" ;
17+ import { Octokit } from "@octokit/core" ;
18+ import { type RestEndpointMethodTypes } from "@octokit/rest" ;
1819import { throttling } from "@octokit/plugin-throttling" ;
1920
2021import { getFiles } from "./util/files" ;
2122import type { GitHubApiRequest } from "../src/common/mock-gh-api/gh-api-request" ;
2223import { isGetVariantAnalysisRequest } from "../src/common/mock-gh-api/gh-api-request" ;
2324import { VariantAnalysis } from "../src/variant-analysis/gh-api/variant-analysis" ;
2425import { RepositoryWithMetadata } from "../src/variant-analysis/gh-api/repository" ;
26+ import { AppOctokit } from "../src/common/octokit" ;
2527
2628const extensionDirectory = resolve ( __dirname , ".." ) ;
2729const scenariosDirectory = resolve (
@@ -31,7 +33,7 @@ const scenariosDirectory = resolve(
3133
3234// Make sure we don't run into rate limits by automatically waiting until we can
3335// make another request.
34- const MyOctokit = Octokit . plugin ( throttling ) ;
36+ const MyOctokit = AppOctokit . plugin ( throttling ) ;
3537
3638const auth = process . env . GITHUB_TOKEN ;
3739
You can’t perform that action at this time.
0 commit comments