diff --git a/dist/index.js b/dist/index.js index 9c0fc47..0f445fc 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6497,7 +6497,7 @@ async function main() { }, message); }); const { errorCount, warningCount, informationCount } = report.summary; - core2.info(`${errorCount} ${errorCount === 1 ? "error" : "errors"}, ${warningCount} ${warningCount === 1 ? "warning" : "warnings"}, ${informationCount} ${informationCount === 1 ? "info" : "infos"}`); + core2.info(`${errorCount} ${errorCount === 1 ? "error" : "errors"}, ${warningCount} ${warningCount === 1 ? "warning" : "warnings"}, ${informationCount} ${informationCount === 1 ? "information" : "informations"}`); if (status !== 0) { core2.setFailed(`${errorCount} ${errorCount === 1 ? "error" : "errors"}`); } diff --git a/src/__snapshots__/main.test.ts.snap b/src/__snapshots__/main.test.ts.snap index 776bc3b..8ded497 100644 --- a/src/__snapshots__/main.test.ts.snap +++ b/src/__snapshots__/main.test.ts.snap @@ -203,7 +203,7 @@ Array [ "/path/to/node /path/to/pyright/dist/index.js --outputjson", ], Array [ - "0 errors, 0 warnings, 0 infos", + "0 errors, 0 warnings, 0 informations", ], ] `; @@ -316,7 +316,7 @@ Array [ "/path/to/file3.py:1:1 - information: some info (reportSomeInformation)", ], Array [ - "1 error, 1 warning, 1 info", + "1 error, 1 warning, 1 information", ], ] `; @@ -416,7 +416,7 @@ Array [ "/path/to/file1.py:6:10 - error: some error", ], Array [ - "2 errors, 2 warnings, 1 info", + "2 errors, 2 warnings, 1 information", ], ] `; diff --git a/src/main.ts b/src/main.ts index 3b777ab..def09f6 100644 --- a/src/main.ts +++ b/src/main.ts @@ -75,7 +75,7 @@ export async function main() { core.info( `${errorCount} ${errorCount === 1 ? 'error' : 'errors'}, ` + `${warningCount} ${warningCount === 1 ? 'warning' : 'warnings'}, ` + - `${informationCount} ${informationCount === 1 ? 'info' : 'infos'}` + `${informationCount} ${informationCount === 1 ? 'information' : 'informations'}` ); if (status !== 0) {