-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypes.go
More file actions
42 lines (38 loc) · 997 Bytes
/
types.go
File metadata and controls
42 lines (38 loc) · 997 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
30
31
32
33
34
35
36
37
38
39
40
41
42
package main
type Owner struct {
ID string `json:"id"`
Login string `json:"login"`
}
type Repo struct {
Owner Owner `json:"owner"`
NameWithOwner string `json:"nameWithOwner"`
IsArchived bool `json:"isArchived"`
UpdatedAt string `json:"updatedAt"`
Parent struct {
NameWithOwner string `json:"nameWithOwner"`
DefaultBranchRef struct {
Name string `json:"name"`
Target struct {
Oid string `json:"oid"`
} `json:"target"`
} `json:"defaultBranchRef"`
} `json:"parent"`
DefaultBranchRef struct {
Name string `json:"name"`
Target struct {
Oid string `json:"oid"`
} `json:"target"`
} `json:"defaultBranchRef"`
}
type PullRequestInfo struct {
HeadRepository struct {
NameWithOwner string `json:"nameWithOwner"`
} `json:"headRepository"`
Number int `json:"number"`
Title string `json:"title"`
Url string `json:"url"`
}
type CommitComparison struct {
AheadBy int `json:"ahead_by"`
BehindBy int `json:"behind_by"`
}