summaryrefslogtreecommitdiffstats
path: root/services/mailer
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-03-04 15:13:37 +0800
committerGitHub <noreply@github.com>2023-03-04 02:13:37 -0500
commit188c8c12c290e131fb342e3203634828652b0af5 (patch)
tree228bd46aa0aed2f059e7bd5a71ab42e7ceebe52e /services/mailer
parent47b912cd526207f831bff759b29a734049d1c8f2 (diff)
downloadgitea-188c8c12c290e131fb342e3203634828652b0af5.tar.gz
gitea-188c8c12c290e131fb342e3203634828652b0af5.zip
Make Ctrl+Enter submit a pending comment (starting review) instead of submitting a single comment (#23245)
Close #23241 Before: press Ctrl+Enter in the Code Review Form, a single comment will be added. After: press Ctrl+Enter in the Code Review Form, start the review with pending comments. The old name `is_review` is not clear, so the new code use `pending_review` as the new name. Co-authored-by: delvh <leon@kske.dev> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'services/mailer')
-rw-r--r--services/mailer/incoming/incoming_handler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/mailer/incoming/incoming_handler.go b/services/mailer/incoming/incoming_handler.go
index d89a5eab3d..454039c60f 100644
--- a/services/mailer/incoming/incoming_handler.go
+++ b/services/mailer/incoming/incoming_handler.go
@@ -127,7 +127,7 @@ func (h *ReplyHandler) Handle(ctx context.Context, content *MailContent, doer *u
comment.Line,
content.Content,
comment.TreePath,
- false,
+ false, // not pending review but a single review
comment.ReviewID,
"",
)