Skip to content

Commit

Permalink
chore: bot name update
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Mar 28, 2022
1 parent 1e837f8 commit 8788718
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/ci/codegen/upsertGenerationComment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down Expand Up @@ -81,7 +81,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 8788718

Please sign in to comment.