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>
This commit is contained in:
wxiaoguang 2023-03-04 15:13:37 +08:00 committed by GitHub
parent 47b912cd52
commit 188c8c12c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 25 additions and 28 deletions

View file

@ -963,10 +963,6 @@
}
}
.comment-form-reply .footer {
padding-bottom: 1em;
}
@media @mediaSm {
.ui.segments {
margin-left: -2rem;
@ -3282,7 +3278,7 @@ td.blob-excerpt {
position: sticky;
top: 77px;
z-index: 7;
@media (max-width: 480px) {
position: static;
}