Merge pull request #115 from yinxulai/v5
Add changes field in to IssuesPayload and IssueCommentPayload of Github
This commit is contained in:
+7
-7
@@ -1,16 +1,16 @@
|
|||||||
language: go
|
language: go
|
||||||
go:
|
go:
|
||||||
- 1.13.15
|
- 1.13.15
|
||||||
- tip
|
- tip
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- go: tip
|
- go: tip
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
recipients: dean.karn@gmail.com
|
recipients: dean.karn@gmail.com
|
||||||
on_success: change
|
on_success: change
|
||||||
on_failure: always
|
on_failure: always
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- go get -u github.com/go-playground/overalls
|
- go get -u github.com/go-playground/overalls
|
||||||
@@ -26,7 +26,7 @@ before_script:
|
|||||||
- go get -t ./...
|
- go get -t ./...
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make test
|
- make test
|
||||||
|
|
||||||
after_success: |
|
after_success: |
|
||||||
[ $TRAVIS_GO_VERSION = 1.13.15 ] &&
|
[ $TRAVIS_GO_VERSION = 1.13.15 ] &&
|
||||||
|
|||||||
@@ -1662,6 +1662,11 @@ type IssueCommentPayload struct {
|
|||||||
Body string `json:"body"`
|
Body string `json:"body"`
|
||||||
AuthorAssociation string `json:"author_association"`
|
AuthorAssociation string `json:"author_association"`
|
||||||
} `json:"comment"`
|
} `json:"comment"`
|
||||||
|
Changes *struct {
|
||||||
|
Body *struct {
|
||||||
|
From string `json:"from"`
|
||||||
|
} `json:"body"`
|
||||||
|
} `json:"changes"`
|
||||||
Repository struct {
|
Repository struct {
|
||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
NodeID string `json:"node_id"`
|
NodeID string `json:"node_id"`
|
||||||
@@ -1826,6 +1831,14 @@ type IssuesPayload struct {
|
|||||||
ClosedAt *time.Time `json:"closed_at"`
|
ClosedAt *time.Time `json:"closed_at"`
|
||||||
Body string `json:"body"`
|
Body string `json:"body"`
|
||||||
} `json:"issue"`
|
} `json:"issue"`
|
||||||
|
Changes *struct {
|
||||||
|
Title *struct {
|
||||||
|
From string `json:"from"`
|
||||||
|
} `json:"title"`
|
||||||
|
Body *struct {
|
||||||
|
From string `json:"from"`
|
||||||
|
} `json:"body"`
|
||||||
|
} `json:"changes"`
|
||||||
Repository struct {
|
Repository struct {
|
||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
NodeID string `json:"node_id"`
|
NodeID string `json:"node_id"`
|
||||||
|
|||||||
Reference in New Issue
Block a user