mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Extract createComment (#9125)
* Extract createComment * fix lint * fix lint
This commit is contained in:
committed by
techknowlogick
parent
7c6f2e27be
commit
2011a5b818
@@ -291,14 +291,13 @@ func SubmitReview(doer *User, issue *Issue, reviewType ReviewType, content strin
|
||||
}
|
||||
}
|
||||
|
||||
comm, err := createComment(sess, &CreateCommentOptions{
|
||||
comm, err := createCommentWithNoAction(sess, &CreateCommentOptions{
|
||||
Type: CommentTypeReview,
|
||||
Doer: doer,
|
||||
Content: review.Content,
|
||||
Issue: issue,
|
||||
Repo: issue.Repo,
|
||||
ReviewID: review.ID,
|
||||
NoAction: true,
|
||||
})
|
||||
if err != nil || comm == nil {
|
||||
return nil, nil, err
|
||||
|
Reference in New Issue
Block a user