From 031c5f1ba6e8c92ae026b499db46ab9eb76425b5 Mon Sep 17 00:00:00 2001 From: Max Azatian <66359507+HardMax71@users.noreply.github.com> Date: Sun, 27 Sep 2026 00:32:14 +0200 Subject: [PATCH] docs(webhook): review.type comment lists values the webhook never sends (#39451) Refs #39450. The `ReviewPayload.Type` comment said the value is approved, rejected or comment. The webhook and Actions notifiers set it to the event type, `pull_request_review_approved`, `pull_request_review_rejected` or `pull_request_review_comment`, and the comment now lists those. The same wording on the docs site (`docs/usage/repository/webhooks.md` in gitea/docs) needs the matching change, which is why this refs the issue rather than closing it. --- modules/structs/hook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/structs/hook.go b/modules/structs/hook.go index 522c286571c..4c55f369855 100644 --- a/modules/structs/hook.go +++ b/modules/structs/hook.go @@ -465,7 +465,7 @@ func (p *PullRequestPayload) JSONPayload() ([]byte, error) { // ReviewPayload FIXME type ReviewPayload struct { - // The type of review (approved, rejected, comment) + // The review event type: pull_request_review_approved, pull_request_review_rejected or pull_request_review_comment Type string `json:"type"` // The content/body of the review Content string `json:"content"`