Skip to content

Commit e982384

Browse files
authored
Merge pull request #72 from aquasecurity/github_first_available_line
fix bug:() Allow Github FIRST_AVAILABLE_LINE write comment
2 parents f04b553 + 81cfebd commit e982384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/commenter/github/github.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func (c *Github) writeCommentIfRequired(prComment *github.PullRequestComment) er
218218

219219
// WriteMultiLineComment writes a multiline review on a file in the github PR
220220
func (c *Github) WriteMultiLineComment(file, comment string, startLine, endLine int) error {
221-
if startLine == 0 {
221+
if startLine == 0 || startLine == commenter.FIRST_AVAILABLE_LINE {
222222
startLine = 1
223223
}
224224
if endLine == 0 {

0 commit comments

Comments
 (0)