From efae47c3b95e109a67205caa6573da22c216dcbc Mon Sep 17 00:00:00 2001 From: yinxulai Date: Thu, 23 Jul 2020 10:15:12 +0800 Subject: [PATCH 1/2] add changes field in to IssuesPayload and IssueCommentPayload of GitHub. --- github/payload.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/github/payload.go b/github/payload.go index 67c16a5..47aaf32 100644 --- a/github/payload.go +++ b/github/payload.go @@ -1662,6 +1662,11 @@ type IssueCommentPayload struct { Body string `json:"body"` AuthorAssociation string `json:"author_association"` } `json:"comment"` + Changes *struct { + Body *struct { + From string `json:"from"` + } `json:"body"` + } `json:"changes"` Repository struct { ID int64 `json:"id"` NodeID string `json:"node_id"` @@ -1826,6 +1831,14 @@ type IssuesPayload struct { ClosedAt *time.Time `json:"closed_at"` Body string `json:"body"` } `json:"issue"` + Changes *struct { + Title *struct { + From string `json:"from"` + } `json:"title"` + Body *struct { + From string `json:"from"` + } `json:"body"` + } `json:"changes"` Repository struct { ID int64 `json:"id"` NodeID string `json:"node_id"` From a5ce17cac35ed03a3e9f8fb8e1c2df9265d9b9b5 Mon Sep 17 00:00:00 2001 From: yinxulai Date: Thu, 23 Jul 2020 11:29:49 +0800 Subject: [PATCH 2/2] format .travis.yaml --- .travis.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9bdfea6..317d01f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,16 @@ language: go go: - - 1.12.1 - - tip + - 1.12.1 + - tip matrix: allow_failures: - go: tip notifications: - email: - recipients: dean.karn@gmail.com - on_success: change - on_failure: always + email: + recipients: dean.karn@gmail.com + on_success: change + on_failure: always before_install: - go get -u github.com/go-playground/overalls @@ -26,7 +26,7 @@ before_script: - go get -t ./... script: - - make test + - make test after_success: | [ $TRAVIS_GO_VERSION = 1.11.2 ] &&