From 2c541a737f20f29fd8b5b921668a17b2ee1b4fb6 Mon Sep 17 00:00:00 2001 From: Kishore Nallan Date: Thu, 28 Jun 2018 16:31:44 +0530 Subject: [PATCH 1/2] Deployment Payload fields should be string. --- github/payload.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/github/payload.go b/github/payload.go index 330c449..f3f19fd 100644 --- a/github/payload.go +++ b/github/payload.go @@ -381,8 +381,7 @@ type DeploymentPayload struct { Sha string `json:"sha"` Ref string `json:"ref"` Task string `json:"task"` - Payload struct { - } `json:"payload"` + Payload string `json:"payload"` Environment string `json:"environment"` Description *string `json:"description"` Creator struct { @@ -555,8 +554,7 @@ type DeploymentStatusPayload struct { Sha string `json:"sha"` Ref string `json:"ref"` Task string `json:"task"` - Payload struct { - } `json:"payload"` + Payload string `json:"payload"` Environment string `json:"environment"` Description *string `json:"description"` Creator struct { From 8ffb2ffc32b7af2c7e940944eccba4dcd66c692a Mon Sep 17 00:00:00 2001 From: Dean Karn Date: Thu, 28 Jun 2018 12:32:45 -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 52c403d..53bac37 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ Library webhooks ================ -![Project status](https://img.shields.io/badge/version-3.12.0-green.svg) +![Project status](https://img.shields.io/badge/version-3.13.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)