Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #362 from watermelontools/bugfix/duplicate-pr-comm…
Browse files Browse the repository at this point in the history
…enting

Bugfix: Remove duplicate PR comments
  • Loading branch information
baristaGeek authored Nov 7, 2023
2 parents 9938292 + a340702 commit 0fc9057
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/api/actions/github/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ export async function POST(request: Request) {

const count = await addActionCount({ owner });

textToWrite += `### WatermelonAI Summary \n`;
textToWrite += `### Watermelon AI Summary \n`;
let businessLogicSummary;
if (AISummary) {
businessLogicSummary = await getOpenAISummary({
Expand Down Expand Up @@ -469,7 +469,7 @@ export async function POST(request: Request) {
);
// Find our bot's comment
let botComment = comments.data.find((comment) => {
return comment?.user?.login.includes("watermelon-context");
return comment?.user?.login.includes("watermelon-copilot-for-code-review");
});
if (botComment?.id) {
// Update the existing comment
Expand Down

0 comments on commit 0fc9057

Please sign in to comment.