Merge pull request #115 from yinxulai/v5

Add changes field in to IssuesPayload and  IssueCommentPayload of Github
This commit is contained in:
Anton Krivenko
2021-01-05 02:31:45 +03:00
committed by GitHub
2 changed files with 20 additions and 7 deletions
+13
View File
@@ -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"`