diff --git a/README.md b/README.md index e4e44a5..307265c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ Library webhooks ================ -![Project status](https://img.shields.io/badge/version-3.8.0-green.svg) +![Project status](https://img.shields.io/badge/version-3.11.0-green.svg) [![Build Status](https://travis-ci.org/go-playground/webhooks.svg?branch=v3)](https://travis-ci.org/go-playground/webhooks) [![Coverage Status](https://coveralls.io/repos/go-playground/webhooks/badge.svg?branch=v3&service=github)](https://coveralls.io/github/go-playground/webhooks?branch=v3) [![Go Report Card](https://goreportcard.com/badge/go-playground/webhooks)](https://goreportcard.com/report/go-playground/webhooks) diff --git a/github/payload.go b/github/payload.go index 7dbaf1b..330c449 100644 --- a/github/payload.go +++ b/github/payload.go @@ -2791,6 +2791,13 @@ type PullRequestPayload struct { Type string `json:"type"` SiteAdmin bool `json:"site_admin"` } `json:"requested_reviewers,omitempty"` + Labels []struct { + ID int64 `json:"id"` + URL string `json:"url"` + Name string `json:"name"` + Color string `json:"color"` + Default bool `json:"default"` + } `json:"labels"` Head struct { Label string `json:"label"` Ref string `json:"ref"`