chore: update changelogAndRelease.js

This commit is contained in:
xilesun 2025-02-26 22:24:03 +08:00
parent 22869ca184
commit 8bd3d3625c

View File

@ -120,12 +120,12 @@ async function parsePR(number, pkgType, cwd, pkg, retries = 10) {
return { number }; return { number };
} }
const { author, body, files, baseRefName, url } = JSON.parse(res); const { author, body, files, baseRefName, url } = JSON.parse(res);
if (ver === 'beta' && baseRefName !== 'next') { // if (ver === 'beta' && baseRefName !== 'next') {
return { number }; // return { number };
} // }
if (ver === 'alpha' && baseRefName !== 'develop') { // if (ver === 'alpha' && baseRefName !== 'develop') {
return { number }; // return { number };
} // }
const typeRegExp = /\[x\] ([^(\\\r)]+)/; const typeRegExp = /\[x\] ([^(\\\r)]+)/;
const typeMatch = body.match(typeRegExp); const typeMatch = body.match(typeRegExp);
const prType = typeMatch ? typeMatch[1] : ''; const prType = typeMatch ? typeMatch[1] : '';