Skip to content

Commit

Permalink
Fixed iteration over object
Browse files Browse the repository at this point in the history
  • Loading branch information
sebryu committed Sep 26, 2023
1 parent 92ef235 commit fe69583
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function getChecklistCategoriesForPullRequest() {
per_page: 100,
});

for (const category of CHECKLIST_CATEGORIES) {
for (const category of _.values(CHECKLIST_CATEGORIES)) {
const { detectFunction, items } = category;
const categoryDetected = await detectFunction(changedFiles);
if (!categoryDetected) {
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/javascript/authorChecklist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async function getChecklistCategoriesForPullRequest() {
per_page: 100,
});

for (const category of CHECKLIST_CATEGORIES) {
for (const category of _.values(CHECKLIST_CATEGORIES)) {
const { detectFunction, items } = category;
const categoryDetected = await detectFunction(changedFiles);
if (!categoryDetected) {
Expand Down

0 comments on commit fe69583

Please sign in to comment.