-
Notifications
You must be signed in to change notification settings - Fork 2
/
payload.go
37 lines (33 loc) · 983 Bytes
/
payload.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
36
37
package main
type Payload struct {
Before string `json:"before"`
After string `json:"after"`
Ref string `json:"ref"`
Commits []Commit `json:"commits"`
Repository Repository `json:"repository"`
}
type Commit struct {
Id string `json:"id"`
Message string `json:"message"`
Timestamp string `json:"timestamp"`
Url string `json:"url"`
Added []string `json:"added"`
Removed []string `json:"removed"`
Modified []string `json:"modified"`
Author Author `json:"author"`
}
type Repository struct {
Name string `json:"name"`
Url string `json:"url"`
Pledgie string `json:"pledgie"`
Description string `json:"description"`
Homepage string `json:"homepage"`
Watchers int `json:"watchers"`
Forks int `json:"forks"`
Private bool `json:"private"`
Owner Author `json:"owner"`
}
type Author struct {
Name string `json:"name"`
Email string `json:"email"`
}