Skip to content

Commit

Permalink
Add SpotCheck task
Browse files Browse the repository at this point in the history
  • Loading branch information
GrimaceOfDespair committed Jul 23, 2024
1 parent 4a0c138 commit dff1604
Show file tree
Hide file tree
Showing 8 changed files with 1,726 additions and 25 deletions.
10 changes: 10 additions & 0 deletions azure-devops-extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@ module.exports = (env) => {
order: 30,
uri: 'dist/Config/Config.html'
}
},
{
id: "spotcheck-pr-task",
type: "ms.vss-distributed-task.task",
targets: [
"ms.vss-distributed-task.tasks"
],
properties: {
name: "dist/SpotCheckPullRequest"
}
}
]
}
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions src/SpotCheckPullRequest/SpotCheckPullRequest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import tl = require('azure-pipelines-task-lib/task');

(async function() {
try {
const reportFile: string | undefined = tl.getInput('reportFile', true);
console.log('Processing report:', reportFile);
}
catch (err:any) {
tl.setResult(tl.TaskResult.Failed, err.message);
}
})();
Loading

0 comments on commit dff1604

Please sign in to comment.