Explorar o código

Change release cycle `prBackExists` definition (#4365)

Ernesto García %!s(int64=2) %!d(string=hai) anos
pai
achega
fc19a7947c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      scripts/release/workflow/state.js

+ 2 - 2
scripts/release/workflow/state.js

@@ -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);