Closed
Description
Description
Posting a comment with Ctrl+Enter
does not add it to the "review queue", but instead publishes the whole "queue" immediately.
Introduced in 1.17 with #19729.
- Make a PR and go to "files changed" section.
- Write a comment somewhere. Notice that there are "Start review" and "Add single comment" buttons.
- Click "Start review". The comment now has yellow "pending" label.
- Add another comment. Notice that there is only one button now, "Add comment".
- Instead of clicking the button, hit
Ctrl+Enter
. The new comment will have gray "review" label, while the old one still has yellow "pending". - Try to write another comment. Notice that "Start review" and "Add single comment" are back.
- Refresh the page. Both comments have "review" label. If you go to "conversation", both comments are visible.
Gitea Version
1.17
Can you reproduce the bug on the Gitea demo site?
Yes