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
+1 -3
View File
@@ -9,14 +9,12 @@ const glmKey = process.env.GLM_KEY || ''
const PRIMARY_AUTHOR_LOGINS = new Set(['ILoveBingLu'])
const PRIMARY_AUTHOR_NAMES = new Set(['ILoveBingLu', 'BingLu', 'ILoveBinglu'])
const PRIMARY_AUTHOR_EMAILS = new Set(['aiqiji74@gmail.com', 'aiqji74@gmail.com'])
function isPrimaryAuthor(person) {
if (!person) return false
const login = String(person.authorLogin || '').trim()
const name = String(person.authorName || '').trim()
const email = String(person.authorEmail || '').trim().toLowerCase()
return PRIMARY_AUTHOR_LOGINS.has(login) || PRIMARY_AUTHOR_NAMES.has(name) || PRIMARY_AUTHOR_EMAILS.has(email)
return PRIMARY_AUTHOR_LOGINS.has(login) || PRIMARY_AUTHOR_NAMES.has(name)
}
function classifyCommit(subject) {