mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-06 07:31:26 +07:00
Update uncivbot.yml
This commit is contained in:
parent
fb925084e9
commit
27a5e36ff9
14
.github/workflows/uncivbot.yml
vendored
14
.github/workflows/uncivbot.yml
vendored
@ -19,17 +19,17 @@ jobs:
|
||||
var ownerToCommits = {}
|
||||
var reachedPreviousVersion = false
|
||||
result.data.forEach(commit => {
|
||||
if(reachedPreviousVersion) return
|
||||
if (reachedPreviousVersion) return
|
||||
var author = commit.author.login
|
||||
if(author=="uncivbot[bot]") return
|
||||
if (author=="uncivbot[bot]") return
|
||||
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
|
||||
// reachedPreviousVersion=true
|
||||
// console.log(commitMessage)
|
||||
// return
|
||||
// }
|
||||
if(commitMessage.match(/^\d+\.\d+\.\d+$/)){ // match EXACT version, like 3.4.55 ^ is for start-of-line, $ for end-of-line
|
||||
reachedPreviousVersion=true
|
||||
console.log(commitMessage)
|
||||
return
|
||||
}
|
||||
// if(commitMessage.startsWith("Merge ")) return
|
||||
// commitMessage = commitMessage.replace(/\(\#\d+\)/,"") // match PR auto-text, like (#2345)
|
||||
// if (author != owner){
|
||||
|
Loading…
Reference in New Issue
Block a user