mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-01 15:55:15 +08:00
Extract createComment (#9125)
* Extract createComment * fix lint * fix lint
This commit is contained in:

committed by
techknowlogick

parent
7c6f2e27be
commit
2011a5b818
@ -143,7 +143,7 @@ func createCodeComment(doer *models.User, repo *models.Repository, issue *models
|
||||
}
|
||||
patch = gitdiff.CutDiffAroundLine(patchBuf, int64((&models.Comment{Line: line}).UnsignedLine()), line < 0, setting.UI.CodeCommentLines)
|
||||
}
|
||||
return models.CreateComment(&models.CreateCommentOptions{
|
||||
return models.CreateCommentWithNoAction(&models.CreateCommentOptions{
|
||||
Type: models.CommentTypeCode,
|
||||
Doer: doer,
|
||||
Repo: repo,
|
||||
@ -154,7 +154,6 @@ func createCodeComment(doer *models.User, repo *models.Repository, issue *models
|
||||
CommitSHA: commitID,
|
||||
ReviewID: reviewID,
|
||||
Patch: patch,
|
||||
NoAction: true,
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user