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

fix: pr should be ensured if branch automerge previously failed

If branch automerge *previously* failed, then still make sure we are keeping the PR up to date.

Closes #1336
parent 1a3b0b61
Branches
Tags
No related merge requests found
...@@ -135,7 +135,11 @@ async function processBranch(branchConfig) { ...@@ -135,7 +135,11 @@ async function processBranch(branchConfig) {
if (mergeStatus === 'automerged') { if (mergeStatus === 'automerged') {
logger.debug('Branch is automerged - returning'); logger.debug('Branch is automerged - returning');
return 'automerged'; return 'automerged';
} else if (mergeStatus === 'failed') { } else if (
mergeStatus === 'automerge aborted - PR exists' ||
mergeStatus === 'failed'
) {
logger.info({ mergeStatus }, 'Branch automerge not possible');
config.forcePr = true; config.forcePr = true;
} }
} catch (err) { } catch (err) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment