mirror of
https://github.com/ILoveBingLu/CipherTalk.git
synced 2026-05-24 21:40:21 +08:00
refactor: 重构发布工作流为串并行流程
This commit is contained in:
@@ -66,11 +66,19 @@ function buildSuccessMessage(context, releaseBody) {
|
||||
|
||||
const thanks = []
|
||||
const primaryLogins = new Set(['ILoveBingLu'])
|
||||
const primaryNames = new Set(['ILoveBingLu', 'BingLu', 'ILoveBinglu'])
|
||||
for (const pr of context?.pullRequests || []) {
|
||||
if (pr?.authorLogin && !primaryLogins.has(pr.authorLogin)) {
|
||||
thanks.push(`🙏 感谢 @${pr.authorLogin} 提交 PR #${pr.number}`)
|
||||
}
|
||||
}
|
||||
for (const commit of context?.commits || []) {
|
||||
const hasPrRef = /#(\d+)/.test(commit.subject || '')
|
||||
const authorName = String(commit.authorName || '').trim()
|
||||
if (!hasPrRef && authorName && !primaryNames.has(authorName)) {
|
||||
thanks.push(`🙏 感谢 ${authorName} 提交改动《${commit.subject}》`)
|
||||
}
|
||||
}
|
||||
|
||||
const lines = [
|
||||
`🚀 <b>CipherTalk v${escapeHtml(version)} 已发布</b>`,
|
||||
|
||||
Reference in New Issue
Block a user