Skip to content
This repository was archived by the owner on Aug 2, 2024. It is now read-only.

Commit c726832

Browse files
committed
chore: update dependencies
1 parent f3ca06a commit c726832

File tree

4 files changed

+1150
-2206
lines changed

4 files changed

+1150
-2206
lines changed

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@
2424
"author": "Tom Keller <kellertk@amazon.com>",
2525
"license": "Apache-2.0",
2626
"devDependencies": {
27-
"@types/jest": "^27.0.2",
28-
"@types/node": "^16.3.2",
29-
"@types/node-fetch": "^2.5.8",
30-
"@vercel/ncc": "^0.31.1",
27+
"@types/jest": "^28.1.1",
28+
"@types/node": "^17.0.41",
29+
"@types/node-fetch": "^2.6.1",
30+
"@vercel/ncc": "^0.34.0",
3131
"gts": "^3.1.0",
32-
"jest": "^26.6.3",
33-
"jest-circus": "^26.6.3",
34-
"nock": "^13.2.1",
35-
"ts-jest": "^26.5.6",
36-
"typescript": "^4.1.2"
32+
"jest": "^28.1.1",
33+
"jest-circus": "^28.1.1",
34+
"nock": "^13.2.6",
35+
"ts-jest": "^28.0.4",
36+
"typescript": "^4.7.3"
3737
},
3838
"dependencies": {
39-
"@actions/core": "^1.6.0",
40-
"@actions/github": "^4.0.0",
41-
"node-fetch": "^2.6.5",
42-
"parse-diff": "^0.8.1"
39+
"@actions/core": "^1.8.2",
40+
"@actions/github": "^5.0.3",
41+
"node-fetch": "2",
42+
"parse-diff": "^0.9.0"
4343
}
4444
}

src/close-and-comment.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import {GitHub} from '@actions/github/lib/utils';
1+
import * as github from '@actions/github';
22

33
export async function closeAndCommentPR(
44
PRnum: number,
55
owner: string,
66
repo: string,
77
message: string,
8-
octo: InstanceType<typeof GitHub>
8+
octo: ReturnType<typeof github.getOctokit>
99
): Promise<void> {
10-
const commentResponse = await octo.issues.createComment({
10+
const commentResponse = await octo.rest.issues.createComment({
1111
owner: owner,
1212
repo: repo,
1313
issue_number: PRnum,
@@ -16,7 +16,7 @@ export async function closeAndCommentPR(
1616
if (commentResponse.status !== 201) {
1717
throw new Error(`Could not create PR comment: ${commentResponse.status}`);
1818
}
19-
const closureResponse = await octo.pulls.update({
19+
const closureResponse = await octo.rest.pulls.update({
2020
owner: owner,
2121
repo: repo,
2222
pull_number: PRnum,

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"outDir": "./build",
66
"rootDir": "./src",
77
"strict": true,
8+
"useUnknownInCatchVariables": false,
89
"noImplicitAny": true
910
},
1011
"exclude": ["node_modules", "**/*.test.ts"]

0 commit comments

Comments
 (0)