diff --git a/.github/actions/javascript/authorChecklist/authorChecklist.js b/.github/actions/javascript/authorChecklist/authorChecklist.js index 8a8a02e77f7d..eb10c45d608e 100644 --- a/.github/actions/javascript/authorChecklist/authorChecklist.js +++ b/.github/actions/javascript/authorChecklist/authorChecklist.js @@ -31,13 +31,14 @@ async function getChecklistCategoriesForPullRequest() { per_page: 100, }); - _.each(CHECKLIST_CATEGORIES, async ({ detectFunction, items }) => { + for (const category of CHECKLIST_CATEGORIES) { + const { detectFunction, items } = category; const categoryDetected = await detectFunction(changedFiles); if (!categoryDetected) { return; } categories.push(items); - }); + }; // TODO add more if statements to look for other dynamic checklist categories diff --git a/.github/actions/javascript/authorChecklist/index.js b/.github/actions/javascript/authorChecklist/index.js index e747a007810d..c1e37abaec8b 100644 --- a/.github/actions/javascript/authorChecklist/index.js +++ b/.github/actions/javascript/authorChecklist/index.js @@ -41,13 +41,14 @@ async function getChecklistCategoriesForPullRequest() { per_page: 100, }); - _.each(CHECKLIST_CATEGORIES, async ({ detectFunction, items }) => { + for (const category of CHECKLIST_CATEGORIES) { + const { detectFunction, items } = category; const categoryDetected = await detectFunction(changedFiles); if (!categoryDetected) { return; } categories.push(items); - }); + }; // TODO add more if statements to look for other dynamic checklist categories