refactor: 重构发布工作流为串并行流程

This commit is contained in:
ILoveBingLu
2026-04-02 03:27:11 +08:00
parent fbf916880b
commit dce45c1c4f
4 changed files with 256 additions and 48 deletions
+8
View File
@@ -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>`,