Skip to content

Commit

Permalink
Fix an issue sending incorrect line numbers to BitBucket Server Code …
Browse files Browse the repository at this point in the history
…Insight API
  • Loading branch information
sumio committed Feb 4, 2024
1 parent 8e5caae commit 4712993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/bitbucket/server_api_helper.go
Expand Up @@ -42,7 +42,7 @@ func (h *ServerAPIHelper) buildAnnotation(comment *reviewdog.Comment) insights.A

data := insights.NewAnnotation(
comment.Result.Diagnostic.GetLocation().GetPath(),
comment.Result.Diagnostic.GetLocation().GetRange().GetStart().GetLine()-1,
comment.Result.Diagnostic.GetLocation().GetRange().GetStart().GetLine(),
fmt.Sprintf(`[%s] %s`, comment.ToolName, comment.Result.Diagnostic.GetMessage()),
severity,
)
Expand Down

0 comments on commit 4712993

Please sign in to comment.