-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1051 from skaut/dependabot/npm_and_yarn/actions/g…
…ithub-6.0.0 Bump @actions/github from 5.1.1 to 6.0.0
- Loading branch information
Showing
9 changed files
with
2,779 additions
and
5,481 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
import * as nock from "nock"; | ||
import * as github from "@actions/github"; | ||
import type { Octokit } from "@octokit/core"; | ||
import type { PaginateInterface } from "@octokit/plugin-paginate-rest"; | ||
import type { Api } from "@octokit/plugin-rest-endpoint-methods/dist-types/types"; | ||
import nock from "nock"; | ||
import nodeFetch from "node-fetch"; | ||
|
||
nock.disableNetConnect(); | ||
|
||
type GitHub = Api & Octokit & { paginate: PaginateInterface }; | ||
|
||
jest.mock("../src/octokit", () => ({ | ||
octokit: (): GitHub => | ||
github.getOctokit("GH_TOKEN", { | ||
request: { | ||
fetch: nodeFetch, | ||
}, | ||
}), | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.