forked from EverythingSuckz/github-telegram-notify
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathissues.go
35 lines (31 loc) · 1.24 KB
/
issues.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package types
type Issue struct {
Number int `json:"number,omitempty"`
State string `json:"state,omitempty"`
Locked bool `json:"locked,omitempty"`
Title string `json:"title,omitempty"`
Body string `json:"body,omitempty"`
AuthorAssociation string `json:"author_association,omitempty"`
User User `json:"user,omitempty"`
HTMLURL string `json:"html_url,omitempty"`
Repository Repository `json:"repository,omitempty"`
}
type IssueCommentEvent struct {
// Possible values are: "created", "edited", "deleted".
Action string `json:"action,omitempty"`
Issue *Issue `json:"issue,omitempty"`
Comment *IssueComment `json:"comment,omitempty"`
Repo Repository `json:"repository,omitempty"`
Sender User `json:"sender,omitempty"`
}
type IssueComment struct {
User User `json:"user,omitempty"`
HTMLURL string `json:"html_url,omitempty"`
IssueURL string `json:"issue_url,omitempty"`
}
type IssuesEvent struct {
Action string `json:"action,omitempty"`
Issue *Issue `json:"issue,omitempty"`
Repo Repository `json:"repository,omitempty"`
Sender User `json:"sender,omitempty"`
}