fix: match do contexto checks por substring (Forgejo usa 'CI / checks (pull_request)')
This commit is contained in:
parent
ca75a43b54
commit
a780f02245
1 changed files with 1 additions and 1 deletions
|
|
@ -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}.`)
|
||||
|
|
|
|||
Loading…
Reference in a new issue