Skip to content

Add changes field in to IssuesPayload and IssueCommentPayload of Github #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
language: go
go:
- 1.13.15
- tip
- 1.13.15
- tip
matrix:
allow_failures:
- go: tip

notifications:
email:
recipients: [email protected]
on_success: change
on_failure: always
email:
recipients: [email protected]
on_success: change
on_failure: always

before_install:
- go get -u github.com/go-playground/overalls
Expand All @@ -26,7 +26,7 @@ before_script:
- go get -t ./...

script:
- make test
- make test

after_success: |
[ $TRAVIS_GO_VERSION = 1.13.15 ] &&
Expand Down
13 changes: 13 additions & 0 deletions github/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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"`
Expand Down