Skip to content

Commit

Permalink
Fix bot name
Browse files Browse the repository at this point in the history
  • Loading branch information
wenjielee1 committed Jul 16, 2024
1 parent a5b584c commit c1f83db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions github-bot/src/services/prService.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ func DeleteBotComments(ctx context.Context, client *github.Client, jamaiClient *
log.Printf("Error fetching comments on PR #%d:\n%v", pr.Number, err)
}
for _, comment := range comments {
log.Printf("Listing comments... comment user:%s",*comment.User.Login)
if *comment.User.Login == botName {
log.Printf("Deleting %s's comment with ID %d", botName, *comment.ID)
_, err := utils.DeleteComment(ctx, client, owner, repo, *comment.ID)
Expand Down

0 comments on commit c1f83db

Please sign in to comment.