Change release cycle prBackExists definition (#4365)

This commit is contained in:
Ernesto García
2023-06-19 16:33:21 -06:00
committed by GitHub
parent c95a445130
commit fc19a7947c

View File

@ -47,7 +47,7 @@ function shouldRunMerge({
hasPendingChangesets,
prBackExists,
}) {
return isReleaseBranch && isPush && !prerelease && isCurrentFinalVersion && !hasPendingChangesets && prBackExists;
return isReleaseBranch && isPush && !prerelease && isCurrentFinalVersion && !hasPendingChangesets && !prBackExists;
}
async function getState({ github, context, core }) {
@ -79,7 +79,7 @@ async function getState({ github, context, core }) {
state: 'open',
});
state.prBackExists = prs.length === 0;
state.prBackExists = prs.length !== 0;
state.isPublishedOnNpm = await isPublishedOnNpm(packageName, version);