Skip to content

Commit

Permalink
chore: bot name update (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored Mar 28, 2022
1 parent 1e837f8 commit 5a6ccf8
Showing 1 changed file with 1 addition and 3 deletions.
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

0 comments on commit 5a6ccf8

Please sign in to comment.