-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstructure.go
More file actions
157 lines (152 loc) · 5.56 KB
/
structure.go
File metadata and controls
157 lines (152 loc) · 5.56 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
package githubwrapper
import "context"
type Commit struct {
Type string `json:"type"`
Items struct {
Title string `json:"title"`
Description string `json:"description"`
Type string `json:"type"`
Properties struct {
URL string `json:"url"`
SHA string `json:"sha"`
NodeID string `json:"node_id"`
HTMLURL string `json:"html_url"`
CommentsURL string `json:"comments_url"`
Commit struct {
URL string `json:"url"`
Author struct {
Name string `json:"name"`
Email string `json:"email"`
Date string `json:"date"`
} `json:"author"`
Committer struct {
Name string `json:"name"`
Email string `json:"email"`
Date string `json:"date"`
} `json:"committer"`
Message string `json:"message"`
CommentCount int `json:"comment_count"`
Tree struct {
SHA string `json:"sha"`
URL string `json:"url"`
} `json:"tree"`
Verification struct {
Verified bool `json:"verified"`
Reason string `json:"reason"`
Payload string `json:"payload"`
Signature string `json:"signature"`
} `json:"verification"`
} `json:"commit"`
Author struct {
Name string `json:"name"`
Email string `json:"email"`
Login string `json:"login"`
ID int `json:"id"`
NodeID string `json:"node_id"`
AvatarURL string `json:"avatar_url"`
GravatarID string `json:"gravatar_id"`
URL string `json:"url"`
HTMLURL string `json:"html_url"`
FollowersURL string `json:"followers_url"`
FollowingURL string `json:"following_url"`
GistsURL string `json:"gists_url"`
StarredURL string `json:"starred_url"`
SubscriptionsURL string `json:"subscriptions_url"`
OrganizationsURL string `json:"organizations_url"`
ReposURL string `json:"repos_url"`
EventsURL string `json:"events_url"`
ReceivedEventsURL string `json:"received_events_url"`
Type string `json:"type"`
SiteAdmin bool `json:"site_admin"`
StarredAt string `json:"starred_at"`
} `json:"author"`
Committer struct {
Name string `json:"name"`
Email string `json:"email"`
Login string `json:"login"`
ID int `json:"id"`
NodeID string `json:"node_id"`
AvatarURL string `json:"avatar_url"`
GravatarID string `json:"gravatar_id"`
URL string `json:"url"`
HTMLURL string `json:"html_url"`
FollowersURL string `json:"followers_url"`
FollowingURL string `json:"following_url"`
GistsURL string `json:"gists_url"`
StarredURL string `json:"starred_url"`
SubscriptionsURL string `json:"subscriptions_url"`
OrganizationsURL string `json:"organizations_url"`
ReposURL string `json:"repos_url"`
EventsURL string `json:"events_url"`
ReceivedEventsURL string `json:"received_events_url"`
Type string `json:"type"`
SiteAdmin bool `json:"site_admin"`
StarredAt string `json:"starred_at"`
} `json:"committer"`
Parents struct {
Type string `json:"type"`
Items struct {
Sha string `json:"sha"`
URL string `json:"url"`
HTMLURL string `json:"html_url"`
} `json:"items"`
} `json:"parents"`
Stats struct {
Type string `json:"type"`
Properties struct {
Additions int `json:"additions"`
Deletions int `json:"deletions"`
Total int `json:"total"`
} `json:"properties"`
} `json:"stats"`
Files struct {
Type string `json:"type"`
Items struct {
Title string `json:"title"`
Description string `json:"description"`
Type string `json:"type"`
Properties struct {
SHA string `json:"sha"`
Filename string `json:"filename"`
Status string `json:"status"`
Additions int `json:"additions"`
Deletions int `json:"deletions"`
Changes int `json:"changes"`
BlobURL string `json:"blob_url"`
RawURL string `json:"raw_url"`
ContentsURL string `json:"contents_url"`
Patch string `json:"patch"`
PreviousFilename string `json:"previous_filename"`
} `json:"properties"`
} `json:"items"`
} `json:"files"`
} `json:"items"`
} `json:"items"`
}
type Repositories struct {
Name *string `json:"name"`
FullName *string `json:"full-name"`
Homepage *string `json:"homepage"`
}
type PushRepositories struct {
Context context.Context `json:"context"`
PersonalToken string `json:"personalToken"`
Reponame string `json:"reponame"`
OwnerName string `json:"ownerName"`
Path string `json:"path"`
Username string `json:"username"`
Email string `json:"email"`
Message string `json:"message"`
Branch string `json:"branch"`
}
type IssueRequest struct {
Title string `json:"title,omitempty"`
Body string `json:"body,omitempty"`
Labels []string `json:"labels,omitempty"`
Assignee string `json:"assignee,omitempty"`
State string `json:"state,omitempty"`
// StateReason can be 'completed' or 'not_planned'.
StateReason string `json:"state_reason,omitempty"`
Milestone int `json:"milestone,omitempty"`
Assignees []string `json:"assignees,omitempty"`
}