From 177f586ee3e0cb40cd41e3a1e640b33d47aac02c Mon Sep 17 00:00:00 2001 From: Dima Golovinov Date: Fri, 20 Dec 2024 18:16:45 +0100 Subject: [PATCH] :arrow_up: Update js codebase --- vsts/QodanaScan/index.js | 15 +++++---------- vsts/QodanaScan/task.json | 2 +- vsts/vss-extension.dev.json | 2 +- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/vsts/QodanaScan/index.js b/vsts/QodanaScan/index.js index df28991c..bdc870d3 100644 --- a/vsts/QodanaScan/index.js +++ b/vsts/QodanaScan/index.js @@ -14723,12 +14723,8 @@ var require_utils3 = __commonJS({ if (args.length === 0) { const inputs = getInputs(); args = (0, qodana_12.getQodanaScanArgs)(inputs.args, inputs.resultsDir, inputs.cacheDir); - console.log("PR Mode" + inputs.prMode); - console.log("Build Reason" + tl2.getVariable("Build.Reason")); - console.log("Source Branch" + (process.env.QODANA_BRANCH || getSourceAndTargetBranches().sourceBranch)); if (inputs.prMode && tl2.getVariable("Build.Reason") === "PullRequest") { const sha = yield getPrSha(); - console.log("PR SHA" + sha); if (sha !== "") { args.push("--commit", sha); const sourceBranch = process.env.QODANA_BRANCH || getSourceAndTargetBranches().sourceBranch; @@ -14827,8 +14823,7 @@ var require_utils3 = __commonJS({ } function git(args_1) { return __awaiter2(this, arguments, void 0, function* (args, options = {}) { - const execResult = yield gitOutput(args, options); - return execResult.exitCode; + return (yield gitOutput(args, options)).exitCode; }); } function gitOutput(args_1) { @@ -14839,14 +14834,14 @@ var require_utils3 = __commonJS({ stderr: "" }; const outStream = new node_stream_1.Writable({ - write(chunk, encoding, callback) { - result.stdout += chunk.toString(encoding || "utf8"); + write(chunk, _, callback) { + result.stdout += chunk.toString("utf8"); callback(); } }); const errStream = new node_stream_1.Writable({ - write(chunk, encoding, callback) { - result.stderr += chunk.toString(encoding || "utf8"); + write(chunk, _, callback) { + result.stderr += chunk.toString("utf8"); callback(); } }); diff --git a/vsts/QodanaScan/task.json b/vsts/QodanaScan/task.json index 5c9b40bf..00abdccd 100644 --- a/vsts/QodanaScan/task.json +++ b/vsts/QodanaScan/task.json @@ -10,7 +10,7 @@ "version": { "Major": 2024, "Minor": 3, - "Patch": 143 + "Patch": 145 }, "instanceNameFormat": "Qodana Scan", "inputs": [ diff --git a/vsts/vss-extension.dev.json b/vsts/vss-extension.dev.json index 25282d56..43dbeafb 100644 --- a/vsts/vss-extension.dev.json +++ b/vsts/vss-extension.dev.json @@ -2,7 +2,7 @@ "manifestVersion": 1, "id": "qodana-dev", "name": "Qodana (Dev)", - "version": "2024.3.143", + "version": "2024.3.145", "publisher": "JetBrains", "targets": [ {