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 c1f83db commit 459f29b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github-bot/src/services/prService.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func DeleteBotComments(ctx context.Context, client *github.Client, jamaiClient *
}
for _, comment := range comments {
log.Printf("Listing comments... comment user:%s",*comment.User.Login)
if *comment.User.Login == botName {
if strings.Contains(*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)
if err != nil {
Expand Down

0 comments on commit 459f29b

Please sign in to comment.