From dac339fbf99a52235322e59868f1a95f456f8d31 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Wed, 20 Jan 2021 23:31:01 +0200 Subject: [PATCH] Update uncivbot.yml --- .github/workflows/uncivbot.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/uncivbot.yml b/.github/workflows/uncivbot.yml index 6c93dca24c..aee3f889c6 100644 --- a/.github/workflows/uncivbot.yml +++ b/.github/workflows/uncivbot.yml @@ -32,19 +32,16 @@ jobs: if(commitMessage.startsWith("Merge ")) return commitMessage = commitMessage.replace(/\(\#\d+\)/,"") // match PR auto-text, like (#2345) if (author != context.repo.owner){ - if (ownerToCommits[author]==undefined) ownerToCommits[author]=[] + if (ownerToCommits[author] == undefined) ownerToCommits[author]=[] ownerToCommits[author].push(commitMessage) } else commitSummary += "\n\n" + commitMessage }); Object.entries(ownerToCommits).forEach(entry => { - - console.log("entry = "+JSON.stringify(entry)) const [author, commits] = entry; - if (commits.length==1) commitSummary += "\n\n" + commits[0] + " By "+author + if (commits.length==1) commitSummary += "\n\n" + commits[0] + " - By "+author else { commitSummary += "\n\nBy "+author+":" - console.log(JSON.stringify(commits)) commits.forEach(commitMessage => { commitSummary += "\n- "+commitMessage }) } })