/
events.go
29 lines (25 loc) · 976 Bytes
/
events.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
package events
import (
// Vendor
"github.com/google/go-github/github"
)
type CommitCommentEvent struct {
Action *string `json:"action,omitempty"`
Comment *github.RepositoryComment `json:"comment,omitempty"`
Repo *github.Repository `json:"repository,omitempty"`
Sender *github.User `json:"sender,omitempty"`
}
type IssueCommentEvent struct {
Action *string `json:"action,omitempty"`
Issue *github.Issue `json:"issue,omitempty"`
Comment *github.IssueComment `json:"comment,omitempty"`
Repo *github.Repository `json:"repository,omitempty"`
Sender *github.User `json:"sender,omitempty"`
}
type IssuesEvent struct {
Action *string `json:"action,omitempty"`
Issue *github.Issue `json:"issue,omitempty"`
Label *github.Label `json:"label,omitempty"`
Repo *github.Repository `json:"repository,omitempty"`
Sender *github.User `json:"sender,omitempty"`
}