From 87887188cdc032a37a11d420aeb7268ca6a7d47f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vannicatte?= Date: Mon, 28 Mar 2022 14:45:33 +0200 Subject: [PATCH] chore: bot name update --- scripts/ci/codegen/upsertGenerationComment.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/ci/codegen/upsertGenerationComment.ts b/scripts/ci/codegen/upsertGenerationComment.ts index 232bfd10fa..420c32b40e 100644 --- a/scripts/ci/codegen/upsertGenerationComment.ts +++ b/scripts/ci/codegen/upsertGenerationComment.ts @@ -7,7 +7,7 @@ import { OWNER, REPO } from '../../release/common'; import commentText from './text'; // this should be changed to the bot name once we have the logs -const BOT_NAME = 'shortcuts'; +const BOT_NAME = 'algolia-api-client-bot'; const PR_NUMBER = parseInt(process.env.PR_NUMBER || '0', 10); const octokit = new Octokit({ auth: `token ${process.env.GITHUB_TOKEN}`, @@ -81,7 +81,6 @@ export async function upsertGenerationComment(trigger: Trigger): Promise { res.data.filter( (comment) => comment.user?.login === BOT_NAME && - // this shouldn't be needed once we have a proper bot running (comment.body?.startsWith(commentText.codegen.header) || comment.body?.startsWith(commentText.noGen.header) || comment.body?.startsWith(commentText.notification.header))