diff --git a/scripts/workflow/test-route/identify.js b/scripts/workflow/test-route/identify.js index 02073600c8..3c33af74ed 100644 --- a/scripts/workflow/test-route/identify.js +++ b/scripts/workflow/test-route/identify.js @@ -13,7 +13,7 @@ module.exports = ({github, context, core}, body, number) => { owner: context.repo.owner, repo: context.repo.repo, name: noFound - }).catch(() => {}); + }).catch((e) => { core.warning(e); }); }; if (m && m[1]) { @@ -28,7 +28,7 @@ module.exports = ({github, context, core}, body, number) => { owner: context.repo.owner, repo: context.repo.repo, labels: ['Auto: No Route Needed'] - }); + }).catch((e) => { core.warning(e); }); return; } else if (res.length > 0) { diff --git a/scripts/workflow/test-route/test.js b/scripts/workflow/test-route/test.js index d5e6f19259..d86d230839 100644 --- a/scripts/workflow/test-route/test.js +++ b/scripts/workflow/test-route/test.js @@ -1,3 +1,5 @@ +/* eslint-disable */ + module.exports = async ({github, context}, baseUrl, routes, number) => { if (routes[0] === 'NOROUTE') { return; @@ -11,9 +13,10 @@ module.exports = async ({github, context}, baseUrl, routes, number) => { let com = 'Successfully generated as following:\n\n'; for (const lks of links) { - console.log("testing route: ", lks); - const res = await github.request(`GET ${lks}`).catch((err) => { - com += ` + console.log("testing route: ", lks) + // Intended, one at a time + const res = await github.request(`GET ${lks}`).catch(err => { + com+= `
${lks} - **Failed** @@ -44,11 +47,11 @@ module.exports = async ({github, context}, baseUrl, routes, number) => { owner: context.repo.owner, repo: context.repo.repo, labels: ['Auto: Route Test Complete'] - }); + }).catch((e) => { core.warning(e) }) github.issues.createComment({ issue_number: number, owner: context.repo.owner, repo: context.repo.repo, body: com - }); -}; \ No newline at end of file + }).catch((e) => { core.warning(e) }) +}