Update vars/notifyLark.groovy
This commit is contained in:
@@ -19,8 +19,8 @@ def buildCommitDiffMarkdown() {
|
|||||||
return '_本次构建无代码变更_'
|
return '_本次构建无代码变更_'
|
||||||
}
|
}
|
||||||
|
|
||||||
// 防止消息过长(飞书卡片有长度限制)
|
// 最大提交消息条数
|
||||||
def maxCommits = 5
|
def maxCommits = 15
|
||||||
if (commits.size() > maxCommits) {
|
if (commits.size() > maxCommits) {
|
||||||
commits = commits.take(maxCommits)
|
commits = commits.take(maxCommits)
|
||||||
commits << "_……以及更多提交_"
|
commits << "_……以及更多提交_"
|
||||||
|
|||||||
Reference in New Issue
Block a user