-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.go
More file actions
29 lines (26 loc) · 797 Bytes
/
data.go
File metadata and controls
29 lines (26 loc) · 797 Bytes
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 main
type PullRequestEvent struct {
Action string `codec:"action"`
PullRequest struct {
HTMLURL string `codec:"html_url"`
Head struct {
SHA string `codec:"sha"`
Owner struct {
Login string `codec:"login"`
} `codec:"user"`
Repository struct {
Name string `codec:"name"`
CloneURL string `codec:"clone_url"`
} `codec:"repo"`
} `codec:"head"`
} `codec:"pull_request"`
}
type BuildEnqueuedEvent struct {
PullRequest map[string]interface{} `codec:"pull_request"`
}
type BuildFinishedEvent struct {
Result string `codec:"result"`
PullRequest map[string]interface{} `codec:"pull_request"`
OutputURL string `codec:"output_url,omitempty"`
Error string `codec:"error,omitempty"`
}