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 1/3] 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 232bfd10fa2..420c32b40e0 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)) From 3e76d8bd1ed84a6506e514e3b817d3ec74953184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vannicatte?= Date: Mon, 28 Mar 2022 14:55:04 +0200 Subject: [PATCH 2/3] wrong comment --- scripts/ci/codegen/upsertGenerationComment.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/ci/codegen/upsertGenerationComment.ts b/scripts/ci/codegen/upsertGenerationComment.ts index 420c32b40e0..e7e74b14899 100644 --- a/scripts/ci/codegen/upsertGenerationComment.ts +++ b/scripts/ci/codegen/upsertGenerationComment.ts @@ -6,7 +6,6 @@ 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 = 'algolia-api-client-bot'; const PR_NUMBER = parseInt(process.env.PR_NUMBER || '0', 10); const octokit = new Octokit({ From 3ffb68ff0620a50fd94e4db1a7db1a7f9b99b44f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vannicatte?= Date: Mon, 28 Mar 2022 15:40:52 +0200 Subject: [PATCH 3/3] use new name --- scripts/ci/codegen/upsertGenerationComment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/codegen/upsertGenerationComment.ts b/scripts/ci/codegen/upsertGenerationComment.ts index e7e74b14899..47740d031d6 100644 --- a/scripts/ci/codegen/upsertGenerationComment.ts +++ b/scripts/ci/codegen/upsertGenerationComment.ts @@ -6,7 +6,7 @@ import { OWNER, REPO } from '../../release/common'; import commentText from './text'; -const BOT_NAME = 'algolia-api-client-bot'; +const BOT_NAME = 'algolia-bot'; const PR_NUMBER = parseInt(process.env.PR_NUMBER || '0', 10); const octokit = new Octokit({ auth: `token ${process.env.GITHUB_TOKEN}`,