mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-01 12:31:19 +00:00
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:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user