Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Ctrl+Enter submit a pending comment (starting review) instead of submitting a single comment #23245

Merged
merged 3 commits into from
Mar 4, 2023

Conversation

wxiaoguang
Copy link
Contributor

@wxiaoguang wxiaoguang commented Mar 2, 2023

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.

@wxiaoguang wxiaoguang changed the title Make Ctrl+Enter submits pending comment (starting review) instead of submitting a single comment Make Ctrl+Enter submit pending comment (starting review) instead of submitting a single comment Mar 2, 2023
@wxiaoguang wxiaoguang changed the title Make Ctrl+Enter submit pending comment (starting review) instead of submitting a single comment Make Ctrl+Enter submit a pending comment (starting review) instead of submitting a single comment Mar 2, 2023
@wxiaoguang wxiaoguang force-pushed the fix-review-submit branch 3 times, most recently from c93341f to 6feaccc Compare March 2, 2023 13:22
@drsybren
Copy link
Contributor

drsybren commented Mar 3, 2023

I can confirm this works!

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 3, 2023
@lunny lunny added the type/bug label Mar 3, 2023
@lunny lunny added this to the 1.20.0 milestone Mar 3, 2023
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Mar 3, 2023
@lunny lunny added the pr/breaking Merging this PR means builds will break. Needs a description what exactly breaks, and how to fix it! label Mar 3, 2023
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Mar 3, 2023
@lunny lunny added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Mar 3, 2023
@techknowlogick techknowlogick merged commit 188c8c1 into go-gitea:main Mar 4, 2023
@wxiaoguang wxiaoguang deleted the fix-review-submit branch March 4, 2023 07:34
@lunny lunny removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Mar 4, 2023
zjjhot added a commit to zjjhot/gitea that referenced this pull request Mar 6, 2023
* giteaofficial/main: (28 commits)
  Update hacking-on-gitea-zh_cn documentation (go-gitea#23315)
  Fix broken code editor diff preview (go-gitea#23307)
  [skip ci] Updated translations via Crowdin
  Add context when rendering labels or emojis (go-gitea#23281)
  Change interactiveBorder to fix popup preview  (go-gitea#23169)
  Improve the frontend guideline (go-gitea#23298)
  Scoped labels: set aria-disabled on muted Exclusive option for a11y (go-gitea#23306)
  Add basic documentation for labels, including scoped labels (go-gitea#23304)
  [skip ci] Updated translations via Crowdin
  Re-add accidentally removed `hacking-on-gitea.zh-cn.md` (go-gitea#23297)
  Add default owner team to privated_org and limited_org in unit test (go-gitea#23109)
  Improve sed detection in update-locales.sh (go-gitea#23254)
  Support sanitising the URL by removing extra slashes in the URL (go-gitea#21333)
  Make Ctrl+Enter submit a pending comment (starting review) instead of submitting a single comment (go-gitea#23245)
  Avoid panic caused by broken payload when creating commit status (go-gitea#23216)
  Add run status in action view page (go-gitea#23212)
  update to mermaid v10 (go-gitea#23178)
  Fix code wrap for unbroken lines (go-gitea#23268)
  Fix stray backticks appearing in pull request timeline (go-gitea#23282)
  Fill head commit to in payload when notifying push commits for mirroring (go-gitea#23215)
  ...
lunny pushed a commit that referenced this pull request Apr 1, 2023
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
@delvh
Copy link
Member

delvh commented Jun 20, 2023

@lunny why breaking?

@lunny
Copy link
Member

lunny commented Jun 20, 2023

@lunny why breaking?

The behavior of pressing Ctrl+Enter has been changed on this PR.

@delvh
Copy link
Member

delvh commented Jun 20, 2023

Hmm…
Is breaking muscle memory breaking?
Especially as the previous action was basically a bug?

@lunny lunny removed the pr/breaking Merging this PR means builds will break. Needs a description what exactly breaks, and how to fix it! label Jun 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reviewing PRs: Ctrl+Enter submits comment instead of starting a review
6 participants