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

Commit

Permalink
Update dist dependencies (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertk authored Dec 23, 2020
1 parent 2ec7d72 commit afd38fc
Show file tree
Hide file tree
Showing 5 changed files with 368 additions and 412 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"@types/jest": "^26.0.15",
"@types/node": "^14.14.8",
"@types/node-fetch": "^2.5.7",
"gts": "^3.0.3",
"@vercel/ncc": "^0.25.1",
"gts": "^3.0.3",
"jest": "^26.6.3",
"jest-circus": "^26.6.3",
"nock": "^13.0.5",
Expand Down
5 changes: 4 additions & 1 deletion src/close-and-comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ export async function closeAndCommentPR(
pull_number: PRnum,
state: 'closed',
});
if (closureResponse.status !== 202 && closureResponse.status !== 200) {
if (
(closureResponse.status as number) !== 202 &&
(closureResponse.status as number) !== 200
) {
throw new Error(`Could not close PR: ${closureResponse.status}`);
}
}
Loading

0 comments on commit afd38fc

Please sign in to comment.