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

Commit

Permalink
remove redundant from the comment body when updating
Browse files Browse the repository at this point in the history
  • Loading branch information
owenrumney committed Jan 19, 2022
1 parent c64d8a9 commit 888431d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion commenter/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
}
Expand Down

0 comments on commit 888431d

Please sign in to comment.