Skip to content

Commit

Permalink
⬆️ Propagate option to task schema. Make it changeable.
Browse files Browse the repository at this point in the history
  • Loading branch information
hybloid committed Dec 20, 2024
1 parent c19f4dc commit 662d45a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions vsts/QodanaScan/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@
"defaultValue": false,
"required": false,
"helpMarkDown": "This option is for development purposes only. Do not use it in production."
},
{
"name": "prMode",
"type": "boolean",
"label": "PR Mode",
"defaultValue": false,
"required": false,
"helpMarkDown": "Whether the PR analysis gets executed in the pull request mode."
}
],
"execution": {
Expand Down
2 changes: 1 addition & 1 deletion vsts/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ export function getInputs(): Inputs {
uploadSarif: tl.getBoolInput('uploadSarif', false) || true,
artifactName: tl.getInput('artifactName', false) || 'qodana-report',
useNightly: tl.getBoolInput('useNightly', false) || false,
prMode: tl.getBoolInput('prMode', false) || false,
// Not used by the Azure task
postComment: false,
additionalCacheKey: '',
primaryCacheKey: '',
useAnnotations: false,
useCaches: false,
cacheDefaultBranchOnly: false,
prMode: false,
githubToken: '',
pushFixes: 'none',
commitMessage: ''
Expand Down

0 comments on commit 662d45a

Please sign in to comment.