From a780f0224529bd908014ae38db158204ad9fc316 Mon Sep 17 00:00:00 2001 From: Francisco Solla Date: Mon, 17 Aug 2026 21:33:05 -0300 Subject: [PATCH] fix: match do contexto checks por substring (Forgejo usa 'CI / checks (pull_request)') --- scripts/lib/forgejo-api.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/forgejo-api.mjs b/scripts/lib/forgejo-api.mjs index caf1de5..403779c 100644 --- a/scripts/lib/forgejo-api.mjs +++ b/scripts/lib/forgejo-api.mjs @@ -295,7 +295,7 @@ export const createApi = ({ base, token, repository, fetchImpl } = {}) => { const names = failed.map((entry) => entry.context).join(', ') throw new Error(`Checks falharam no PR #${number}: ${names}`) } - const required = relevant.find((entry) => entry.context === requiredContext) + const required = relevant.find((entry) => entry.context.includes(requiredContext)) if (required && required.state === 'success' && pending.length === 0) return pr if (Date.now() - started > timeoutMs) { throw new Error(`Timeout esperando checks do PR #${number}.`)