diff --git a/.github/workflows/uncivbot.yml b/.github/workflows/uncivbot.yml index 2f3f35a2f2..266a50e63f 100644 --- a/.github/workflows/uncivbot.yml +++ b/.github/workflows/uncivbot.yml @@ -33,8 +33,8 @@ jobs: if(commitMessage.startsWith("Merge ")) return commitMessage = commitMessage.replace(/\(\#\d+\)/,"") // match PR auto-text, like (#2345) if (author != context.repo.owner){ - if (ownerToCommits.get(author)==undefined) ownerToCommits.set(author,[]) - ownerToCommits.get(author).push(commitMessage) + if (ownerToCommits[author]==undefined) ownerToCommits[author]=[] + ownerToCommits[author].push(commitMessage) } else commitSummary += "\n\n" + commitMessage });