mirror of
https://github.com/actions/labeler.git
synced 2025-12-12 12:37:48 +00:00
Bump @actions/github from 2.2.0 to 5.0.0 (#161)
* Bump @actions/github from 2.2.0 to 5.0.0 Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) from 2.2.0 to 5.0.0. - [Release notes](https://github.com/actions/toolkit/releases) - [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github) --- updated-dependencies: - dependency-name: "@actions/github" dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * update licensed cache * Code changes to support github 5.0 * regenerate dist/index Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Patrick Ellis <patrick.j.ellis@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { run } from "../src/labeler";
|
||||
import { GitHub } from "@actions/github";
|
||||
import * as github from "@actions/github";
|
||||
import * as core from "@actions/core";
|
||||
|
||||
const fs = jest.requireActual("fs");
|
||||
@@ -7,12 +7,12 @@ const fs = jest.requireActual("fs");
|
||||
jest.mock("@actions/core");
|
||||
jest.mock("@actions/github");
|
||||
|
||||
const gh = new GitHub("_");
|
||||
const addLabelsMock = jest.spyOn(gh.issues, "addLabels");
|
||||
const removeLabelMock = jest.spyOn(gh.issues, "removeLabel");
|
||||
const reposMock = jest.spyOn(gh.repos, "getContents");
|
||||
const gh = github.getOctokit("_");
|
||||
const addLabelsMock = jest.spyOn(gh.rest.issues, "addLabels");
|
||||
const removeLabelMock = jest.spyOn(gh.rest.issues, "removeLabel");
|
||||
const reposMock = jest.spyOn(gh.rest.repos, "getContent");
|
||||
const paginateMock = jest.spyOn(gh, "paginate");
|
||||
const getPullMock = jest.spyOn(gh.pulls, "get");
|
||||
const getPullMock = jest.spyOn(gh.rest.pulls, "get");
|
||||
|
||||
const yamlFixtures = {
|
||||
"only_pdfs.yml": fs.readFileSync("__tests__/fixtures/only_pdfs.yml"),
|
||||
|
||||
Reference in New Issue
Block a user