diff --git a/.github/workflows/uncivbot.yml b/.github/workflows/uncivbot.yml index 69b63f7dba..c9932a8c49 100644 --- a/.github/workflows/uncivbot.yml +++ b/.github/workflows/uncivbot.yml @@ -34,7 +34,7 @@ jobs: commitMessage = commitMessage.replace(/\(\#\d+\)/,"") // match PR auto-text, like (#2345) if (author != owner){ if (ownerToCommits.get(author)==undefined) ownerToCommits.set(author,[]) - ownerToCommits.get(author)?.push(commitMessage) + ownerToCommits.get(author).push(commitMessage) } else commitSummary += "\n\n" + commitMessage });