Skip to content

Commit

Permalink
Merge pull request #72 from aquasecurity/github_first_available_line
Browse files Browse the repository at this point in the history
fix bug:() Allow Github FIRST_AVAILABLE_LINE write comment
  • Loading branch information
davidsalame1 authored Jun 6, 2023
2 parents f04b553 + 81cfebd commit e982384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/commenter/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func (c *Github) writeCommentIfRequired(prComment *github.PullRequestComment) er

// WriteMultiLineComment writes a multiline review on a file in the github PR
func (c *Github) WriteMultiLineComment(file, comment string, startLine, endLine int) error {
if startLine == 0 {
if startLine == 0 || startLine == commenter.FIRST_AVAILABLE_LINE {
startLine = 1
}
if endLine == 0 {
Expand Down

0 comments on commit e982384

Please sign in to comment.