AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(ci/arena): Reverse check for `pr.mergeable`
Reinier van der Leer3e40b35ef15e
diff --git a/.github/workflows/arena-intake.yml b/.github/workflows/arena-intake.ymlindex 0b5e12dfb2..9221c79a0e 100644--- a/.github/workflows/arena-intake.yml+++ b/.github/workflows/arena-intake.yml@@ -76,7 +76,7 @@ jobs:const newArenaFileName = path.basename(newArenaFile.filename)console.log(`🗒️ Arena entry in PR: ${newArenaFile}`);- if (pr.mergeable) {+ if (pr.mergeable != false) {const newArenaEntry = JSON.parse(fs.readFileSync(newArenaFile.filename));const allArenaFiles = await (await glob.create('arena/*.json')).glob();console.debug(newArenaEntry);@@ -104,7 +104,7 @@ jobs:close = true;}}- } else if (pr.mergeable == false) {+ } else {console.log('⚠️ PR has conflicts');issues.push(`__${newArenaFileName}__ conflicts with existing entry with the same name`