Skip to content

Commit

Permalink
TO REVERT
Browse files Browse the repository at this point in the history
  • Loading branch information
hybloid committed Dec 20, 2024
1 parent 14059dd commit 37979a6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions vsts/QodanaScan/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14723,12 +14723,12 @@ var require_utils3 = __commonJS({
if (args.length === 0) {
const inputs = getInputs();
args = (0, qodana_12.getQodanaScanArgs)(inputs.args, inputs.resultsDir, inputs.cacheDir);
tl2.warning("PR Mode" + inputs.prMode);
tl2.warning("Build Reason" + tl2.getVariable("Build.Reason"));
tl2.warning("Source Branch" + (process.env.QODANA_BRANCH || getSourceAndTargetBranches().sourceBranch));
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();
tl2.warning("PR SHA" + sha);
console.log("PR SHA" + sha);
if (sha !== "") {
args.push("--commit", sha);
const sourceBranch = process.env.QODANA_BRANCH || getSourceAndTargetBranches().sourceBranch;
Expand Down
8 changes: 4 additions & 4 deletions vsts/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ export async function qodana(args: string[] = []): Promise<number> {
if (args.length === 0) {
const inputs = getInputs()
args = getQodanaScanArgs(inputs.args, inputs.resultsDir, inputs.cacheDir)
tl.warning('PR Mode' + inputs.prMode)
tl.warning('Build Reason' + tl.getVariable('Build.Reason'))
tl.warning(
console.log('PR Mode' + inputs.prMode)
console.log('Build Reason' + tl.getVariable('Build.Reason'))
console.log(
'Source Branch' +
(process.env.QODANA_BRANCH || getSourceAndTargetBranches().sourceBranch)
)
if (inputs.prMode && tl.getVariable('Build.Reason') === 'PullRequest') {
const sha = await getPrSha()
tl.warning('PR SHA' + sha)
console.log('PR SHA' + sha)
if (sha !== '') {
args.push('--commit', sha)
const sourceBranch =
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.141",
"version": "2024.3.142",
"publisher": "JetBrains",
"targets": [
{
Expand Down

0 comments on commit 37979a6

Please sign in to comment.