From 459f29bc02eef3b3d3ded7ec39333454dfc4d627 Mon Sep 17 00:00:00 2001 From: wenjie Date: Tue, 16 Jul 2024 12:18:31 +0800 Subject: [PATCH] Fix bot name --- github-bot/src/services/prService.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github-bot/src/services/prService.go b/github-bot/src/services/prService.go index 85bad99..3c4096a 100644 --- a/github-bot/src/services/prService.go +++ b/github-bot/src/services/prService.go @@ -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 {