Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function main() {
// do a bunch of things in parallel
// Specifically, anything that collects what labels to add or remove has to be done first before...
await Promise.all([
junit({ pathToReport: './TESTS-*.xml' }),
dependencies({ type: 'npm' }),
linkToArtifacts(),
checkLintLog(),
]);
}
main()
// Specifically, anything that collects what labels to add or remove has to be done first before...
await Promise.all([
checkNPMTestOutput(),
checkCommitMessages(),
checkStats(github.pr),
checkJIRA(),
linkToSDK(),
checkForIOSCrash(),
junit({ pathToReport: './junit.*.xml' }),
checkChangedFileLocations(),
checkCommunity(),
checkMergeable(),
checkPRisApproved(),
updateMilestone(),
eslint(),
dependencies({ type: 'npm' }),
]);
// ...once we've gathered what labels to add/remove, do that last
await requestReviews();
await removeLabels();
await addMissingLabels();
}
main()
async function main() {
// do a bunch of things in parallel
// Specifically, anything that collects what labels to add or remove has to be done first before...
await Promise.all([
junit({ pathToReport: './TESTS-*.xml' }),
dependencies({ type: 'npm' }),
linkToArtifacts(),
]);
}
main()
async function main() {
await Promise.all([
eslint(null, [ '.ts' ]),
junit({ pathToReport: './junit_report.xml' }),
dependencies({ type: 'npm' }),
linkToVsix()
]);
}
async function main() {
await Promise.all([
eslint(),
junit({ pathToReport: './junit_report.xml' }),
dependencies({ type: 'npm' })
]);
}
main()
async function main() {
const eslintConfig = fs.readFileSync(path.join(__dirname, '.eslintrc'), 'utf8');
await Promise.all([
eslint(eslintConfig, [ '.js', '.jsx' ]),
junit({ pathToReport: './junit_report.xml' }),
dependencies({ type: 'npm' })
]);
}
main()