Skip to content
Snippets Groups Projects
Commit 9507062e authored by Rhys Arkins's avatar Rhys Arkins
Browse files

refactor(gitlab): don’t warn for status transition errors

parent 3edd582b
No related branches found
No related tags found
No related merge requests found
......@@ -383,10 +383,19 @@ async function setBranchStatus(
try {
await get.post(url, { body: options });
} catch (err) /* istanbul ignore next */ {
if (
err.message &&
err.messages.startsWith(
'Cannot transition status via :enqueue from :pending'
)
) {
logger.info('Ignoring status transition error');
} else {
logger.debug({ err });
logger.warn('Failed to set branch status');
}
}
}
// Issue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment