Debian Codegraph @

internal/github/models.go

raw symbols SCIP
1 package github
2
3 import "time"
4
5 // Repository is a github repository.
6 type Repository struct {
7 ID int `json:"id"`
8 NodeID string `json:"node_id"`
9 Name string `json:"name"`
10 FullName string `json:"full_name"`
11 Private bool `json:"private"`
12 Owner *User `json:"owner"`
13 HTMLURL string `json:"html_url"`
14 Description string `json:"description"`
15 Fork bool `json:"fork"`
16 URL string `json:"url"`
17 ForksURL string `json:"forks_url"`
18 KeysURL string `json:"keys_url"`
19 CollaboratorsURL string `json:"collaborators_url"`
20 TeamsURL string `json:"teams_url"`
21 HooksURL string `json:"hooks_url"`
22 IssueEventsURL string `json:"issue_events_url"`
23 EventsURL string `json:"events_url"`
24 AssigneesURL string `json:"assignees_url"`
25 BranchesURL string `json:"branches_url"`
26 TagsURL string `json:"tags_url"`
27 BlobsURL string `json:"blobs_url"`
28 GitTagsURL string `json:"git_tags_url"`
29 GitRefsURL string `json:"git_refs_url"`
30 TreesURL string `json:"trees_url"`
31 StatusesURL string `json:"statuses_url"`
32 LanguagesURL string `json:"languages_url"`
33 StargazersURL string `json:"stargazers_url"`
34 ContributorsURL string `json:"contributors_url"`
35 SubscribersURL string `json:"subscribers_url"`
36 SubscriptionURL string `json:"subscription_url"`
37 CommitsURL string `json:"commits_url"`
38 GitCommitsURL string `json:"git_commits_url"`
39 CommentsURL string `json:"comments_url"`
40 IssueCommentURL string `json:"issue_comment_url"`
41 ContentsURL string `json:"contents_url"`
42 CompareURL string `json:"compare_url"`
43 MergesURL string `json:"merges_url"`
44 ArchiveURL string `json:"archive_url"`
45 DownloadsURL string `json:"downloads_url"`
46 IssuesURL string `json:"issues_url"`
47 PullsURL string `json:"pulls_url"`
48 MilestonesURL string `json:"milestones_url"`
49 NotificationsURL string `json:"notifications_url"`
50 LabelsURL string `json:"labels_url"`
51 ReleasesURL string `json:"releases_url"`
52 DeploymentsURL string `json:"deployments_url"`
53 CreatedAt time.Time `json:"created_at"`
54 UpdatedAt time.Time `json:"updated_at"`
55 PushedAt time.Time `json:"pushed_at"`
56 GitURL string `json:"git_url"`
57 SSHURL string `json:"ssh_url"`
58 CloneURL string `json:"clone_url"`
59 SvnURL string `json:"svn_url"`
60 Homepage string `json:"homepage"`
61 Size int `json:"size"`
62 StargazersCount int `json:"stargazers_count"`
63 WatchersCount int `json:"watchers_count"`
64 Language string `json:"language"`
65 HasIssues bool `json:"has_issues"`
66 HasProjects bool `json:"has_projects"`
67 HasDownloads bool `json:"has_downloads"`
68 HasWiki bool `json:"has_wiki"`
69 HasPages bool `json:"has_pages"`
70 ForksCount int `json:"forks_count"`
71 MirrorURL string `json:"mirror_url"`
72 Archived bool `json:"archived"`
73 Disabled bool `json:"disabled"`
74 OpenIssuesCount int `json:"open_issues_count"`
75 License *License `json:"license"`
76 AllowForking bool `json:"allow_forking"`
77 IsTemplate bool `json:"is_template"`
78 Topics []string `json:"topics"`
79 Visibility string `json:"visibility"`
80 Forks int `json:"forks"`
81 OpenIssues int `json:"open_issues"`
82 Watchers int `json:"watchers"`
83 DefaultBranch string `json:"default_branch"`
84 Organization *Organization `json:"organization"`
85 NetworkCount int `json:"network_count"`
86 SubscribersCount int `json:"subscribers_count"`
87 }
88
89 // Issue is a Github issue.
90 type Issue struct {
91 URL string `json:"url"`
92 RepositoryURL string `json:"repository_url"`
93 LabelsURL string `json:"labels_url"`
94 CommentsURL string `json:"comments_url"`
95 EventsURL string `json:"events_url"`
96 HTMLURL string `json:"html_url"`
97 ID int `json:"id"`
98 NodeID string `json:"node_id"`
99 Number int `json:"number"`
100 Title string `json:"title"`
101 User *User `json:"user"`
102 Labels []*Label `json:"labels"`
103 State string `json:"state"`
104 Locked bool `json:"locked"`
105 Assignee *User `json:"assignee"`
106 Assignees []*User `json:"assignees"`
107 Comments int `json:"comments"`
108 CreatedAt time.Time `json:"created_at"`
109 UpdatedAt time.Time `json:"updated_at"`
110 ClosedAt time.Time `json:"closed_at"`
111 AuthorAssociation string `json:"author_association"`
112 ActiveLockReason string `json:"active_lock_reason"`
113 PullRequestLinks *PullRequestLinks `json:"pull_request"`
114 Body string `json:"body"`
115 ClosedBy *User `json:"closed_by"`
116 Reactions *Reactions `json:"reactions"`
117 TimelineURL string `json:"timeline_url"`
118 }
119
120 // Label is a Github label on an issue or PR.
121 type Label struct {
122 ID int `json:"id"`
123 NodeID string `json:"node_id"`
124 URL string `json:"url"`
125 Name string `json:"name"`
126 Color string `json:"color"`
127 Default bool `json:"default"`
128 Description string `json:"description"`
129 }
130
131 // Reactions summarizes Github reactions.
132 type Reactions struct {
133 URL string `json:"url"`
134 TotalCount int `json:"total_count"`
135 PlusOne int `json:"+1"`
136 MinusOne int `json:"-1"`
137 Laugh int `json:"laugh"`
138 Hooray int `json:"hooray"`
139 Confused int `json:"confused"`
140 Heart int `json:"heart"`
141 Rocket int `json:"rocket"`
142 Eyes int `json:"eyes"`
143 }
144
145 // PullRequestLinks are attached to an Issue object when it represents a PR.
146 type PullRequestLinks struct {
147 URL string `json:"url"`
148 HTMLURL string `json:"html_url"`
149 DiffURL string `json:"diff_url"`
150 PatchURL string `json:"patch_url"`
151 }
152
153 // User is a Github user.
154 type User struct {
155 Login string `json:"login"`
156 ID int `json:"id"`
157 NodeID string `json:"node_id"`
158 AvatarURL string `json:"avatar_url"`
159 GravatarID string `json:"gravatar_id"`
160 URL string `json:"url"`
161 HTMLURL string `json:"html_url"`
162 FollowersURL string `json:"followers_url"`
163 FollowingURL string `json:"following_url"`
164 GistsURL string `json:"gists_url"`
165 StarredURL string `json:"starred_url"`
166 SubscriptionsURL string `json:"subscriptions_url"`
167 OrganizationsURL string `json:"organizations_url"`
168 ReposURL string `json:"repos_url"`
169 EventsURL string `json:"events_url"`
170 ReceivedEventsURL string `json:"received_events_url"`
171 Type string `json:"type"`
172 SiteAdmin bool `json:"site_admin"`
173 }
174
175 // Organization is a Github organization.
176 type Organization struct {
177 Login string `json:"login"`
178 ID int `json:"id"`
179 NodeID string `json:"node_id"`
180 AvatarURL string `json:"avatar_url"`
181 GravatarID string `json:"gravatar_id"`
182 URL string `json:"url"`
183 HTMLURL string `json:"html_url"`
184 FollowersURL string `json:"followers_url"`
185 FollowingURL string `json:"following_url"`
186 GistsURL string `json:"gists_url"`
187 StarredURL string `json:"starred_url"`
188 SubscriptionsURL string `json:"subscriptions_url"`
189 OrganizationsURL string `json:"organizations_url"`
190 ReposURL string `json:"repos_url"`
191 EventsURL string `json:"events_url"`
192 ReceivedEventsURL string `json:"received_events_url"`
193 Type string `json:"type"`
194 SiteAdmin bool `json:"site_admin"`
195 }
196
197 // License is an open source license.
198 type License struct {
199 Key string `json:"key"`
200 Name string `json:"name"`
201 SPDXID string `json:"spdx_id"`
202 URL string `json:"url"`
203 NodeID string `json:"node_id"`
204 }