Skip to content

Commit

Permalink
⬆️ Update js codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
hybloid committed Dec 20, 2024
1 parent d2a2468 commit 177f586
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
15 changes: 5 additions & 10 deletions vsts/QodanaScan/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand All @@ -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();
}
});
Expand Down
2 changes: 1 addition & 1 deletion vsts/QodanaScan/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"version": {
"Major": 2024,
"Minor": 3,
"Patch": 143
"Patch": 145
},
"instanceNameFormat": "Qodana Scan",
"inputs": [
Expand Down
2 changes: 1 addition & 1 deletion vsts/vss-extension.dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifestVersion": 1,
"id": "qodana-dev",
"name": "Qodana (Dev)",
"version": "2024.3.143",
"version": "2024.3.145",
"publisher": "JetBrains",
"targets": [
{
Expand Down

0 comments on commit 177f586

Please sign in to comment.