Compare commits

..

4 Commits

Author SHA1 Message Date
Dean Karn a1051fd871 Update README.md 2019-02-12 07:05:05 -08:00
Dean Karn ac198c9e6a change InReplyToId to InReplyToID 2019-02-12 06:52:07 -08:00
kenji sakoda e157e8e469 add in_reply_to_id in PullRequestReviewCommentPayload (#57) 2019-02-12 06:51:04 -08:00
Manjunath A Kumatagi b2ca22db96 Add Label to issuespayload (#58) 2019-02-12 06:50:05 -08:00
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
Library webhooks Library webhooks
================ ================
<img align="right" src="https://raw.githubusercontent.com/go-playground/webhooks/v5/logo.png">![Project status](https://img.shields.io/badge/version-5.5.0-green.svg) <img align="right" src="https://raw.githubusercontent.com/go-playground/webhooks/v5/logo.png">![Project status](https://img.shields.io/badge/version-5.6.0-green.svg)
[![Build Status](https://travis-ci.org/go-playground/webhooks.svg?branch=v5)](https://travis-ci.org/go-playground/webhooks) [![Build Status](https://travis-ci.org/go-playground/webhooks.svg?branch=v5)](https://travis-ci.org/go-playground/webhooks)
[![Coverage Status](https://coveralls.io/repos/go-playground/webhooks/badge.svg?branch=v5&service=github)](https://coveralls.io/github/go-playground/webhooks?branch=v5) [![Coverage Status](https://coveralls.io/repos/go-playground/webhooks/badge.svg?branch=v5&service=github)](https://coveralls.io/github/go-playground/webhooks?branch=v5)
[![Go Report Card](https://goreportcard.com/badge/go-playground/webhooks)](https://goreportcard.com/report/go-playground/webhooks) [![Go Report Card](https://goreportcard.com/badge/go-playground/webhooks)](https://goreportcard.com/report/go-playground/webhooks)
+11
View File
@@ -1493,6 +1493,7 @@ type IssuesPayload struct {
SiteAdmin bool `json:"site_admin"` SiteAdmin bool `json:"site_admin"`
} `json:"sender"` } `json:"sender"`
Assignee *Assignee `json:"assignee"` Assignee *Assignee `json:"assignee"`
Label *Label `json:"label"`
} }
// LabelPayload contains the information for GitHub's label hook event // LabelPayload contains the information for GitHub's label hook event
@@ -3748,6 +3749,7 @@ type PullRequestReviewCommentPayload struct {
Href string `json:"href"` Href string `json:"href"`
} `json:"pull_request"` } `json:"pull_request"`
} `json:"_links"` } `json:"_links"`
InReplyToID int64 `json:"in_reply_to_id"`
} `json:"comment"` } `json:"comment"`
PullRequest struct { PullRequest struct {
URL string `json:"url"` URL string `json:"url"`
@@ -5187,3 +5189,12 @@ type Parent struct {
URL string `json:"url"` URL string `json:"url"`
Sha string `json:"sha"` Sha string `json:"sha"`
} }
// Label contains Issue's Label information
type Label struct {
ID int64 `json:"id"`
URL string `json:"url"`
Name string `json:"name"`
Color string `json:"color"`
Default bool `json:"default"`
}