Skip to content

Commit

Permalink
change line in github to end line
Browse files Browse the repository at this point in the history
  • Loading branch information
omerzi committed Sep 11, 2023
1 parent 1f2ea9e commit 68481c5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions vcsclient/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,10 +445,11 @@ func (client *GitHubClient) AddPullRequestReviewComments(ctx context.Context, ow
for _, comment := range comments {
filePath := strings.TrimPrefix(comment.NewFilePath, string(os.PathSeparator))
if _, _, err = ghClient.PullRequests.CreateComment(ctx, owner, repository, pullRequestID, &github.PullRequestComment{
CommitID: &latestCommitSHA,
Body: &comment.Content,
Line: &comment.NewStartLine,
Path: &filePath,
CommitID: &latestCommitSHA,
Body: &comment.Content,
StartLine: &comment.NewStartLine,
Line: &comment.NewEndLine,
Path: &filePath,
}); err != nil {
return fmt.Errorf("could not create a code review comment for <%s/%s> in pull request %s. error received: %w",
owner, repository, prID, err)
Expand Down

0 comments on commit 68481c5

Please sign in to comment.