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.
This commit is contained in:
Max Azatian
2026-09-27 00:32:14 +02:00
committed by GitHub
parent ea91028028
commit 031c5f1ba6
+1 -1
View File
@@ -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"`