-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Closed
Description
Description
action: "edited" and action: "deleted" webhooks events are published for comments that are pending (i.e. the review has not yet been submitted. This just started occurring after updating to 1.20.0.
How to reproduce:
- Create a "Gitea" type webhook. (You can use a dummy url since you can the recent deliveries for evidence). Ensure that Pull Request Event -> Pull Request Comment is checked.
- Start a review on a PR but do not submit it by commenting on a line and clicking "Start Review".
- Edit the comment. Click Save.
- Delete the comment
Check the recent deliveries of the webhook. You will see pull_request_comment events for the edit and delete of the comment.
This behavior is not correct. If the review was not published no one should be able to see the comment activity besides for the user that is working on the review.
Gitea Version
1.20.0
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
systemd
Database
None