diff --git a/lib/platform/gitlab/index.js b/lib/platform/gitlab/index.js index 5b8beb3546d6658337d60129d5a7805717e17780..78ba8387f252c963859dde0a36f0566cfe8b9667 100644 --- a/lib/platform/gitlab/index.js +++ b/lib/platform/gitlab/index.js @@ -703,8 +703,10 @@ async function getPr(iid) { pr.canRebase = true; } } catch (err) { - logger.warn({ err }, 'Error getting PR branch'); - pr.isConflicted = true; + if (pr.state === 'open' || err.statusCode !== 404) { + logger.warn({ err }, 'Error getting PR branch'); + pr.isConflicted = true; + } } return pr; }