mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04:00
Update uncivbot.yml
This commit is contained in:
parent
e89cf44c03
commit
bb30348a4b
16
.github/workflows/uncivbot.yml
vendored
16
.github/workflows/uncivbot.yml
vendored
@ -23,9 +23,8 @@ jobs:
|
|||||||
var author = commit.author.login
|
var author = commit.author.login
|
||||||
if (author=="uncivbot[bot]") return
|
if (author=="uncivbot[bot]") return
|
||||||
var commitMessage = commit.commit.message.split("\n")[0];
|
var commitMessage = commit.commit.message.split("\n")[0];
|
||||||
|
|
||||||
//commitSummary += "\n\n" + commitMessage
|
if (commitMessage.match(/^\d+\.\d+\.\d+$/)){ // match EXACT version, like 3.4.55 ^ is for start-of-line, $ for end-of-line
|
||||||
if(commitMessage.match(/^\d+\.\d+\.\d+$/)){ // match EXACT version, like 3.4.55 ^ is for start-of-line, $ for end-of-line
|
|
||||||
reachedPreviousVersion=true
|
reachedPreviousVersion=true
|
||||||
console.log(commitMessage)
|
console.log(commitMessage)
|
||||||
return
|
return
|
||||||
@ -38,10 +37,13 @@ jobs:
|
|||||||
}
|
}
|
||||||
else commitSummary += "\n\n" + commitMessage
|
else commitSummary += "\n\n" + commitMessage
|
||||||
});
|
});
|
||||||
//ownerToCommits.forEach((commits,author)=>{
|
ownerToCommits.forEach((commits,author)=>{
|
||||||
// commitSummary += "\n\nBy "+author+":"
|
if (commits.length==1) commitSummary += "\n\n" + commitMessage+" By "+author
|
||||||
// commits.forEach(commitMessage => {commitSummary+="\n- "+commitMessage})
|
else {
|
||||||
//})
|
commitSummary += "\n\nBy "+author+":"
|
||||||
|
commits.forEach(commitMessage => {commitSummary+="\n- "+commitMessage})
|
||||||
|
}
|
||||||
|
})
|
||||||
github.issues.createComment({
|
github.issues.createComment({
|
||||||
issue_number: context.issue.number,
|
issue_number: context.issue.number,
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user