Skip to content
Snippets Groups Projects
Commit 30c4e1ae authored by Michael Kriese's avatar Michael Kriese Committed by Rhys Arkins
Browse files

fix(worker): fix wrong status check (#4534)

parent 04df70d3
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,10 @@ async function ensurePr(prConfig) {
config.forcePr = true;
}
}
if (config.forcePr || (await getBranchStatus()) === 'failure') {
if (
config.forcePr ||
['failure', 'error', 'failed'].includes(await getBranchStatus())
) {
logger.debug(`Branch tests failed, so will create PR`);
} else {
return null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment