From 888431d0033960178f62ff0cc7734fd73eca5873 Mon Sep 17 00:00:00 2001 From: Owen Rumney Date: Wed, 19 Jan 2022 14:11:48 +0000 Subject: [PATCH] remove redundant from the comment body when updating --- commenter/connector.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commenter/connector.go b/commenter/connector.go index 21ac55e..6da9258 100644 --- a/commenter/connector.go +++ b/commenter/connector.go @@ -92,7 +92,9 @@ func (c *connector) writeReviewComment(block *github.PullRequestComment, comment ctx := context.Background() if commentId != nil { return writeCommentWithRetries(c.owner, c.repo, c.prNumber, func() (*github.Response, error) { - _, resp, err := c.prs.EditComment(ctx, c.owner, c.repo, *commentId, block) + _, resp, err := c.prs.EditComment(ctx, c.owner, c.repo, *commentId, &github.PullRequestComment{ + Body: block.Body, + }) return resp, err }) }