Skip to content

Commit aa94187

Browse files
authored
Merge pull request #115 from yinxulai/v5
Add changes field in to IssuesPayload and IssueCommentPayload of Github
2 parents 9d685f3 + bfd950a commit aa94187

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

.travis.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
language: go
22
go:
3-
- 1.13.15
4-
- tip
3+
- 1.13.15
4+
- tip
55
matrix:
66
allow_failures:
77
- go: tip
88

99
notifications:
10-
email:
11-
recipients: [email protected]
12-
on_success: change
13-
on_failure: always
10+
email:
11+
recipients: [email protected]
12+
on_success: change
13+
on_failure: always
1414

1515
before_install:
1616
- go get -u github.com/go-playground/overalls
@@ -26,7 +26,7 @@ before_script:
2626
- go get -t ./...
2727

2828
script:
29-
- make test
29+
- make test
3030

3131
after_success: |
3232
[ $TRAVIS_GO_VERSION = 1.13.15 ] &&

github/payload.go

+13
Original file line numberDiff line numberDiff line change
@@ -1662,6 +1662,11 @@ type IssueCommentPayload struct {
16621662
Body string `json:"body"`
16631663
AuthorAssociation string `json:"author_association"`
16641664
} `json:"comment"`
1665+
Changes *struct {
1666+
Body *struct {
1667+
From string `json:"from"`
1668+
} `json:"body"`
1669+
} `json:"changes"`
16651670
Repository struct {
16661671
ID int64 `json:"id"`
16671672
NodeID string `json:"node_id"`
@@ -1826,6 +1831,14 @@ type IssuesPayload struct {
18261831
ClosedAt *time.Time `json:"closed_at"`
18271832
Body string `json:"body"`
18281833
} `json:"issue"`
1834+
Changes *struct {
1835+
Title *struct {
1836+
From string `json:"from"`
1837+
} `json:"title"`
1838+
Body *struct {
1839+
From string `json:"from"`
1840+
} `json:"body"`
1841+
} `json:"changes"`
18291842
Repository struct {
18301843
ID int64 `json:"id"`
18311844
NodeID string `json:"node_id"`

0 commit comments

Comments
 (0)