This repository was archived by the owner on Aug 2, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +1150
-2206
lines changed
Expand file tree Collapse file tree 4 files changed +1150
-2206
lines changed Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 1- import { GitHub } from '@actions/github/lib/utils ' ;
1+ import * as github from '@actions/github' ;
22
33export 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 ,
Original file line number Diff line number Diff line change 55 "outDir" : " ./build" ,
66 "rootDir" : " ./src" ,
77 "strict" : true ,
8+ "useUnknownInCatchVariables" : false ,
89 "noImplicitAny" : true
910 },
1011 "exclude" : [" node_modules" , " **/*.test.ts" ]
You can’t perform that action at this time.
0 commit comments