refactor: rename disableAnnotations to enableAnnotations.

This commit is contained in:
Mickaël VILLERS
2022-11-08 10:06:26 +01:00
parent 20e3c7b855
commit db7698feb5
3 changed files with 7 additions and 7 deletions

View File

@@ -47,7 +47,7 @@ async function main() {
// Get ENV variables
const githubToken = process.env.INPUT_TOKEN;
const disableAnnotations = process.env.INPUT_DISABLE_ANNOTATIONS;
const enableAnnotations = process.env.INPUT_DISABLE_ANNOTATIONS;
const enableComments = process.env.INPUT_ENABLE_COMMENTS;
const enableJobsSummary = process.env.INPUT_ENABLE_JOBS_SUMMARY;
const commentsWithQueries = process.env.INPUT_COMMENTS_WITH_QUERIES;
@@ -73,7 +73,7 @@ async function main() {
}
const parsedResults = readJSON(outputPath.resultsJSONFile);
if (disableAnnotations.toLocaleLowerCase() === "false") {
if (enableAnnotations.toLocaleLowerCase() === "true") {
annotator.annotateChangesWithResults(parsedResults);
}
if (enableComments.toLocaleLowerCase() === "true") {