-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinventory.go
65 lines (54 loc) · 1.65 KB
/
inventory.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package main
type Author struct {
Login string `json:"login"`
}
type Comment struct {
Id string `json:"id"`
Author Author `json:"author"`
Body string `json:"body"`
CreatedAt string `json:"createdAt"`
}
type Commit struct {
Oid string `json:"oid"`
}
type ReviewRequest struct {
Typename string `json:"__typename"`
Login string `json:"login,omitempty"`
}
type HeadRepositoryOwner struct {
Login string `json:"login"`
}
type HeadRepository struct {
Name string `json:"name"`
}
type PullRequest struct {
Id string `json:"id"`
IsDraft bool `json:"isDraft"`
Number uint64 `json:"number"`
State string `json:"state"`
Comments []Comment `json:"comments"`
Commits []Commit `json:"commits"`
ReviewRequests []ReviewRequest `json:"reviewRequests"`
Repository HeadRepository `json:"headRepository"`
Owner HeadRepositoryOwner `json:"headRepositoryOwner"`
}
type Repository struct {
Url string `json:"url"`
}
type ApiRequestedReviewer struct {
Login string `json:"login"`
Type string `json:"type"`
}
type ApiRequestedTeam struct {
Name string `json:"name"`
Slug string `json:"slug"`
}
type ApiPullRequest struct {
Id uint64 `json:"id"`
Number uint64 `json:"number"`
Url string `json:"url"`
State string `json:"state"`
Locked bool `json:"locked"`
Reviewers []ApiRequestedReviewer `json:"requested_reviewers"`
ReviewerTeams []ApiRequestedTeam `json:"requested_teams"`
}