From 9e4b7fa61b6257464d962a6f9805e823b1d8945f Mon Sep 17 00:00:00 2001 From: Ratnadeep Debnath Date: Mon, 2 Apr 2018 12:14:20 +0530 Subject: [PATCH 1/2] Parse Github pull request labels from pull request payload. --- github/payload.go | 7 +++++++ 1 file changed, 7 insertions(+) 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"` From 5580947e3ec83427ef5f6f2392eddca8dde5d99a Mon Sep 17 00:00:00 2001 From: Dean Karn Date: Sun, 8 Apr 2018 09:15:57 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 197f14a..58e8407 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ Library webhooks ================ -![Project status](https://img.shields.io/badge/version-3.10.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)