Skip to content

Commit

Permalink
fix(bitbucket): check if branch exists before isStale
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Dec 8, 2018
1 parent 79bbb0e commit 32554a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/platform/bitbucket/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,9 @@ async function getPr(prNo) {
res.canRebase = true;
}
}

res.isStale = await isBranchStale(pr.source.branch.name);
if (await branchExists(pr.source.branch.name)) {
res.isStale = await isBranchStale(pr.source.branch.name);
}

return res;
}
Expand Down

0 comments on commit 32554a9

Please sign in to comment.