fix(ci/arena): Reverse check for pr.mergeable

This commit is contained in:
Reinier van der Leer
2024-03-01 11:23:14 +01:00
parent 70873906b7
commit 3e40b35ef1

View File

@@ -76,7 +76,7 @@ jobs:
const newArenaFileName = path.basename(newArenaFile.filename) const newArenaFileName = path.basename(newArenaFile.filename)
console.log(`🗒️ Arena entry in PR: ${newArenaFile}`); console.log(`🗒️ Arena entry in PR: ${newArenaFile}`);
if (pr.mergeable) { if (pr.mergeable != false) {
const newArenaEntry = JSON.parse(fs.readFileSync(newArenaFile.filename)); const newArenaEntry = JSON.parse(fs.readFileSync(newArenaFile.filename));
const allArenaFiles = await (await glob.create('arena/*.json')).glob(); const allArenaFiles = await (await glob.create('arena/*.json')).glob();
console.debug(newArenaEntry); console.debug(newArenaEntry);
@@ -104,7 +104,7 @@ jobs:
close = true; close = true;
} }
} }
} else if (pr.mergeable == false) { } else {
console.log('⚠️ PR has conflicts'); console.log('⚠️ PR has conflicts');
issues.push( issues.push(
`__${newArenaFileName}__ conflicts with existing entry with the same name` `__${newArenaFileName}__ conflicts with existing entry with the same name`