mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-26 13:27:22 -04:00
Update uncivbot.yml
This commit is contained in:
parent
3c93372d0c
commit
dac339fbf9
7
.github/workflows/uncivbot.yml
vendored
7
.github/workflows/uncivbot.yml
vendored
@ -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 })
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user