Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions scripts/ci/codegen/upsertGenerationComment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,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-bot';
const PR_NUMBER = parseInt(process.env.PR_NUMBER || '0', 10);
const octokit = new Octokit({
auth: `token ${process.env.GITHUB_TOKEN}`,
Expand Down Expand Up @@ -81,7 +80,6 @@ export async function upsertGenerationComment(trigger: Trigger): Promise<void> {
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))
Expand Down