Compare commits

..

9 Commits

Author SHA1 Message Date
Dean Karn 26ca2ef893 Update README.md 2018-11-21 07:54:37 -08:00
Dean Karn 4fb25871a6 Update .travis.yml 2018-11-21 07:54:00 -08:00
Dean Karn 22a6a67d07 Update .travis.yml 2018-11-21 07:53:44 -08:00
Dean Karn d7570ff094 Merge pull request #52 from pieterlexis/add-assignees-to-issues
Add Assignees struct to IssuesPayload as well
2018-11-21 07:52:15 -08:00
Pieter Lexis 2dbe987740 Add a singular 'Assignee' field to PR and Issue payloads
This is present when the action for a PR or Issue is "assigned" or
"unassiged", detailing the user assigned or unassiged.
2018-11-05 15:12:41 +01:00
Pieter Lexis b3a5a8edf7 Add Assignees struct to IssuesPayload as well 2018-11-05 14:39:37 +01:00
Dean Karn dfc330f6eb Update README.md 2018-11-04 07:05:03 -08:00
Dean Karn cdc59eb3ef Merge pull request #51 from pieterlexis/add-assignees
GitHub Payloads: Add `Assignees` where needed
2018-11-04 07:04:26 -08:00
Pieter Lexis a39ebc145a GitHub Payloads: Add Assignees where needed
Closes #50
2018-11-02 20:15:14 +01:00
3 changed files with 53 additions and 47 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
language: go language: go
go: go:
- 1.10.3 - 1.11.2
- tip - tip
matrix: matrix:
allow_failures: allow_failures:
@@ -29,6 +29,6 @@ script:
- make test - make test
after_success: | after_success: |
[ $TRAVIS_GO_VERSION = 1.10.3 ] && [ $TRAVIS_GO_VERSION = 1.11.2 ] &&
overalls -project="github.com/go-playground/webhooks" -covermode=count -ignore=.git,_examples,testdata -debug && overalls -project="github.com/go-playground/webhooks" -covermode=count -ignore=.git,_examples,testdata -debug &&
goveralls -coverprofile=overalls.coverprofile -service travis-ci -repotoken $COVERALLS_TOKEN goveralls -coverprofile=overalls.coverprofile -service travis-ci -repotoken $COVERALLS_TOKEN
+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.1.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.3.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)
+6
View File
@@ -1112,6 +1112,7 @@ type IssueCommentPayload struct {
State string `json:"state"` State string `json:"state"`
Locked bool `json:"locked"` Locked bool `json:"locked"`
Assignee *Assignee `json:"assignee"` Assignee *Assignee `json:"assignee"`
Assignees []*Assignee `json:"assignees"`
Milestone *Milestone `json:"milestone"` Milestone *Milestone `json:"milestone"`
Comments int64 `json:"comments"` Comments int64 `json:"comments"`
CreatedAt time.Time `json:"created_at"` CreatedAt time.Time `json:"created_at"`
@@ -1297,6 +1298,7 @@ type IssuesPayload struct {
State string `json:"state"` State string `json:"state"`
Locked bool `json:"locked"` Locked bool `json:"locked"`
Assignee *Assignee `json:"assignee"` Assignee *Assignee `json:"assignee"`
Assignees []*Assignee `json:"assignees"`
Milestone *Milestone `json:"milestone"` Milestone *Milestone `json:"milestone"`
Comments int64 `json:"comments"` Comments int64 `json:"comments"`
CreatedAt time.Time `json:"created_at"` CreatedAt time.Time `json:"created_at"`
@@ -1410,6 +1412,7 @@ type IssuesPayload struct {
Type string `json:"type"` Type string `json:"type"`
SiteAdmin bool `json:"site_admin"` SiteAdmin bool `json:"site_admin"`
} `json:"sender"` } `json:"sender"`
Assignee *Assignee `json:"assignee"`
} }
// LabelPayload contains the information for GitHub's label hook event // LabelPayload contains the information for GitHub's label hook event
@@ -2764,6 +2767,7 @@ type PullRequestPayload struct {
MergedAt *time.Time `json:"merged_at"` MergedAt *time.Time `json:"merged_at"`
MergeCommitSha *string `json:"merge_commit_sha"` MergeCommitSha *string `json:"merge_commit_sha"`
Assignee *Assignee `json:"assignee"` Assignee *Assignee `json:"assignee"`
Assignees []*Assignee `json:"assignees"`
Milestone *Milestone `json:"milestone"` Milestone *Milestone `json:"milestone"`
CommitsURL string `json:"commits_url"` CommitsURL string `json:"commits_url"`
ReviewCommentsURL string `json:"review_comments_url"` ReviewCommentsURL string `json:"review_comments_url"`
@@ -3168,6 +3172,7 @@ type PullRequestPayload struct {
Type string `json:"type"` Type string `json:"type"`
SiteAdmin bool `json:"site_admin"` SiteAdmin bool `json:"site_admin"`
} `json:"sender"` } `json:"sender"`
Assignee *Assignee `json:"assignee"`
Installation struct { Installation struct {
ID int64 `json:"id"` ID int64 `json:"id"`
} `json:"installation"` } `json:"installation"`
@@ -3701,6 +3706,7 @@ type PullRequestReviewCommentPayload struct {
MergedAt *time.Time `json:"merged_at"` MergedAt *time.Time `json:"merged_at"`
MergeCommitSha string `json:"merge_commit_sha"` MergeCommitSha string `json:"merge_commit_sha"`
Assignee *Assignee `json:"assignee"` Assignee *Assignee `json:"assignee"`
Assignees []*Assignee `json:"assignees"`
Milestone *Milestone `json:"milestone"` Milestone *Milestone `json:"milestone"`
CommitsURL string `json:"commits_url"` CommitsURL string `json:"commits_url"`
ReviewCommentsURL string `json:"review_comments_url"` ReviewCommentsURL string `json:"review_comments_url"`