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
This commit is contained in:
Rhys Arkins 2017-12-28 17:19:59 +01:00
parent 1a3b0b61ea
commit 97fc3e6135

View file

@ -135,7 +135,11 @@ async function processBranch(branchConfig) {
if (mergeStatus === 'automerged') {
logger.debug('Branch is automerged - returning');
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;
}
} catch (err) {