diff --git a/packages/owl-bot/src/owl-bot.ts b/packages/owl-bot/src/owl-bot.ts index feee054a813..88dad87ec4d 100644 --- a/packages/owl-bot/src/owl-bot.ts +++ b/packages/owl-bot/src/owl-bot.ts @@ -629,15 +629,10 @@ const runPostProcessor = async ( return; } if (!lockText) { - logger.info(`no .OwlBot.lock.yaml found for ${opts.head}`); - // If OwlBot is not configured on repo, indicate success. This makes - // it easier to enable OwlBot as a required check during migration: - await createCheck({ - text: 'OwlBot is not yet enabled on this repository', - summary: 'OwlBot is not yet enabled on this repository', - conclusion: 'success', - title: '🦉 OwlBot - success', - }); + // If OwlBot is not configured on a repo, skip creating the check. + logger.info( + `no .OwlBot.lock.yaml found for ${opts.head}, skip creating the check.` + ); return; } try { diff --git a/packages/owl-bot/test/owl-bot.ts b/packages/owl-bot/test/owl-bot.ts index 2007dc39675..634b79f7d6e 100644 --- a/packages/owl-bot/test/owl-bot.ts +++ b/packages/owl-bot/test/owl-bot.ts @@ -1567,10 +1567,7 @@ describe('OwlBot', () => { payload: payload as any, id: 'abc123', }); - sandbox.assert.calledWith( - createCheckStub, - sinon.match.has('conclusion', 'success') - ); + sandbox.assert.notCalled(createCheckStub); githubMock.done(); }); it('returns early and adds success status if base is not default branch', async () => {