Skip to content

Commit 5a6ccf8

Browse files
authored
chore: bot name update (#299)
1 parent 1e837f8 commit 5a6ccf8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/ci/codegen/upsertGenerationComment.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { OWNER, REPO } from '../../release/common';
66

77
import commentText from './text';
88

9-
// this should be changed to the bot name once we have the logs
10-
const BOT_NAME = 'shortcuts';
9+
const BOT_NAME = 'algolia-bot';
1110
const PR_NUMBER = parseInt(process.env.PR_NUMBER || '0', 10);
1211
const octokit = new Octokit({
1312
auth: `token ${process.env.GITHUB_TOKEN}`,
@@ -81,7 +80,6 @@ export async function upsertGenerationComment(trigger: Trigger): Promise<void> {
8180
res.data.filter(
8281
(comment) =>
8382
comment.user?.login === BOT_NAME &&
84-
// this shouldn't be needed once we have a proper bot running
8583
(comment.body?.startsWith(commentText.codegen.header) ||
8684
comment.body?.startsWith(commentText.noGen.header) ||
8785
comment.body?.startsWith(commentText.notification.header))

0 commit comments

Comments
 (0)