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

Commit afd38fc

Browse files
authored
Update dist dependencies (#43)
1 parent 2ec7d72 commit afd38fc

File tree

5 files changed

+368
-412
lines changed

5 files changed

+368
-412
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"@types/jest": "^26.0.15",
2828
"@types/node": "^14.14.8",
2929
"@types/node-fetch": "^2.5.7",
30-
"gts": "^3.0.3",
3130
"@vercel/ncc": "^0.25.1",
31+
"gts": "^3.0.3",
3232
"jest": "^26.6.3",
3333
"jest-circus": "^26.6.3",
3434
"nock": "^13.0.5",

src/close-and-comment.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ export async function closeAndCommentPR(
2222
pull_number: PRnum,
2323
state: 'closed',
2424
});
25-
if (closureResponse.status !== 202 && closureResponse.status !== 200) {
25+
if (
26+
(closureResponse.status as number) !== 202 &&
27+
(closureResponse.status as number) !== 200
28+
) {
2629
throw new Error(`Could not close PR: ${closureResponse.status}`);
2730
}
2831
}

0 commit comments

Comments
 (0)