diff --git a/lib/workers/pr/index.js b/lib/workers/pr/index.js index 0903b0e31504634ab06eadab74b7f34ca8fcc03c..ac667a63f5ea5b66ee87e0c8738a6aede1330af0 100644 --- a/lib/workers/pr/index.js +++ b/lib/workers/pr/index.js @@ -377,16 +377,6 @@ async function checkAutoMerge(pr, config) { logger.info('PR is not ready for merge'); return false; } - // Check branch status - const branchStatus = await platform.getBranchStatus( - pr.branchName, - requiredStatusChecks - ); - logger.debug(`branchStatus=${branchStatus}`); - if (branchStatus !== 'success') { - logger.debug('Branch status is not "success"'); - return false; - } // Check if it's been touched if (!pr.canRebase) { logger.info('PR is ready for automerge but has been modified'); diff --git a/test/workers/pr/index.spec.js b/test/workers/pr/index.spec.js index a76469de26e81a556ab0bdb1ee4f2411c680b034..4e6d831416154f7d0083e8fac2ff8f65e799ab17 100644 --- a/test/workers/pr/index.spec.js +++ b/test/workers/pr/index.spec.js @@ -124,6 +124,8 @@ describe('workers/pr', () => { platform.createPr.mockReturnValue({ displayNumber: 'New Pull Request' }); config.upgrades = [config]; platform.getPrBody = jest.fn(input => input); + platform.getBranchPr = jest.fn(); + platform.getBranchStatus = jest.fn(); }); afterEach(() => { jest.clearAllMocks();