Fixed label condition check 💀
All checks were successful
Publish Library / Build NPM Project (push) Successful in 9s
Publish Library / Tag Version (push) Successful in 23s
Code review / review (pull_request) Successful in 49s

This commit is contained in:
2026-01-14 13:51:41 -05:00
parent 1460c3a0ae
commit 3b01e1bfc1

View File

@@ -28,7 +28,7 @@ dotenv.config({path: '.env.local', override: true, quiet: true, debug: false});
console.log(`Reviewing: ${root}\n`);
const info = await fetch(`${git}/api/v1/repos/${owner}/${repo}/pulls/${pr}`)
.then(async resp => { return resp.ok ? resp.json() : throw new Error(`${resp.status} ${await resp.text()}`); });
if(info.labels?.length > 0 || !info.labels.some(l => l.name === labelEnabled)) {
if(info.labels?.length > 0 && !info.labels.some(l => l.name === labelEnabled)) {
console.log('Skipping');
return process.exit();
}