mirror of
https://github.com/actions/labeler.git
synced 2025-12-12 04:27:34 +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:
@@ -11,22 +11,24 @@ export const context = {
|
||||
};
|
||||
|
||||
const mockApi = {
|
||||
issues: {
|
||||
addLabels: jest.fn(),
|
||||
removeLabel: jest.fn(),
|
||||
},
|
||||
paginate: jest.fn(),
|
||||
pulls: {
|
||||
get: jest.fn().mockResolvedValue({}),
|
||||
listFiles: {
|
||||
endpoint: {
|
||||
merge: jest.fn().mockReturnValue({}),
|
||||
rest: {
|
||||
issues: {
|
||||
addLabels: jest.fn(),
|
||||
removeLabel: jest.fn(),
|
||||
},
|
||||
pulls: {
|
||||
get: jest.fn().mockResolvedValue({}),
|
||||
listFiles: {
|
||||
endpoint: {
|
||||
merge: jest.fn().mockReturnValue({}),
|
||||
},
|
||||
},
|
||||
},
|
||||
repos: {
|
||||
getContent: jest.fn(),
|
||||
},
|
||||
},
|
||||
repos: {
|
||||
getContents: jest.fn(),
|
||||
},
|
||||
paginate: jest.fn(),
|
||||
};
|
||||
|
||||
export const GitHub = jest.fn().mockImplementation(() => mockApi);
|
||||
export const getOctokit = jest.fn().mockImplementation(() => mockApi);
|
||||
|
||||
Reference in New Issue
Block a user