Skip to content

Posting a commit in PR via "Ctrl+Enter" finishes the review process #20990

Closed
@Artalus

Description

@Artalus

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.

  1. Make a PR and go to "files changed" section.
  2. Write a comment somewhere. Notice that there are "Start review" and "Add single comment" buttons.
  3. Click "Start review". The comment now has yellow "pending" label.
  4. Add another comment. Notice that there is only one button now, "Add comment".
  5. Instead of clicking the button, hit Ctrl+Enter. The new comment will have gray "review" label, while the old one still has yellow "pending".
  6. Try to write another comment. Notice that "Start review" and "Add single comment" are back.
  7. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions