diff --git a/lib/workers/repository/onboarding/branch/check.js b/lib/workers/repository/onboarding/branch/check.js index c956a433acc7da67dbc0beddd5014ade535cfcb4..d373acb96a610919452aa048dd2c399baf77ba56 100644 --- a/lib/workers/repository/onboarding/branch/check.js +++ b/lib/workers/repository/onboarding/branch/check.js @@ -68,8 +68,7 @@ const isOnboarded = async config => { throw new Error('disabled'); }; -const onboardingPrExists = () => - platform.findPr(`renovate/configure`, 'Configure Renovate', 'open'); +const onboardingPrExists = () => platform.getBranchPr(`renovate/configure`); module.exports = { isOnboarded, diff --git a/test/workers/repository/onboarding/branch/index.spec.js b/test/workers/repository/onboarding/branch/index.spec.js index e074cf678bf4de61ec8c2ec5b50de8403a9d9282..e735ef538f2e40d53fccef4c3a269a8974193380 100644 --- a/test/workers/repository/onboarding/branch/index.spec.js +++ b/test/workers/repository/onboarding/branch/index.spec.js @@ -98,11 +98,12 @@ describe('workers/repository/onboarding/branch', () => { it('updates onboarding branch', async () => { platform.getFileList.mockReturnValue(['package.json']); platform.findPr.mockReturnValueOnce(null); - platform.findPr.mockReturnValueOnce({}); + platform.getBranchPr.mockReturnValueOnce({}); const res = await checkOnboardingBranch(config); expect(res.repoIsOnboarded).toBe(false); expect(res.branchList).toEqual(['renovate/configure']); expect(platform.setBaseBranch.mock.calls).toHaveLength(1); + expect(platform.commitFilesToBranch.mock.calls).toHaveLength(0); }); }); });