@volter/twin-github 0.1.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/README.md +88 -36
  2. package/client/github-mirror.css +277 -319
  3. package/client/github-mirror.d.ts +418 -0
  4. package/client/github-mirror.js +485 -0
  5. package/client/github-mirror.tsx +153 -357
  6. package/client/pulls-rest.ts +159 -0
  7. package/client/pulls-workspace.tsx +841 -0
  8. package/dist/client/github-mirror.bundle.js +239 -0
  9. package/dist/client/github-mirror.css +916 -0
  10. package/dist/client/github-mirror.d.ts +418 -0
  11. package/dist/client/github-mirror.js +485 -0
  12. package/dist/client/github-mirror.tsx +1315 -0
  13. package/dist/client/pulls-rest.d.ts +42 -0
  14. package/dist/client/pulls-rest.js +140 -0
  15. package/dist/client/pulls-rest.ts +159 -0
  16. package/dist/client/pulls-workspace.bundle.js +22 -0
  17. package/dist/client/pulls-workspace.d.ts +114 -0
  18. package/dist/client/pulls-workspace.js +418 -0
  19. package/dist/client/pulls-workspace.tsx +841 -0
  20. package/dist/src/cli.d.ts +2 -0
  21. package/dist/src/cli.js +40 -0
  22. package/dist/src/generated/graphql-sdl.gen.json +1 -0
  23. package/dist/src/generated/graphql.gen.json +1 -0
  24. package/dist/src/generated/surface.gen.json +1 -0
  25. package/dist/src/generated/ui.gen.json +1 -0
  26. package/dist/src/github-budget.d.ts +69 -0
  27. package/dist/src/github-budget.js +172 -0
  28. package/dist/src/github-capabilities.d.ts +5 -0
  29. package/dist/src/github-capabilities.js +4468 -0
  30. package/dist/src/github-conformance.d.ts +43 -0
  31. package/dist/src/github-conformance.js +76 -0
  32. package/dist/src/github-connector.d.ts +307 -0
  33. package/dist/src/github-connector.js +1398 -0
  34. package/dist/src/github-events.d.ts +41 -0
  35. package/dist/src/github-events.js +230 -0
  36. package/dist/src/github-git-http.d.ts +49 -0
  37. package/dist/src/github-git-http.js +185 -0
  38. package/dist/src/github-git-plane.d.ts +114 -0
  39. package/dist/src/github-git-plane.js +407 -0
  40. package/dist/src/github-mirror-state.d.ts +2 -0
  41. package/dist/src/github-mirror-state.js +335 -0
  42. package/dist/src/github-mirror-ui.d.ts +20 -0
  43. package/dist/src/github-mirror-ui.js +101 -0
  44. package/dist/src/github-server.d.ts +14 -0
  45. package/dist/src/github-server.js +240 -0
  46. package/dist/src/github-shared.d.ts +12 -0
  47. package/dist/src/github-shared.js +21 -0
  48. package/dist/src/github-twin.d.ts +1411 -0
  49. package/dist/src/github-twin.js +4084 -0
  50. package/dist/src/github-ui-conformance.d.ts +4 -0
  51. package/dist/src/github-ui-conformance.js +105 -0
  52. package/dist/src/github-ui-structure.d.ts +18 -0
  53. package/dist/src/github-ui-structure.js +251 -0
  54. package/dist/src/graphql-wire.d.ts +22 -0
  55. package/dist/src/graphql-wire.js +89 -0
  56. package/dist/src/index.d.ts +17 -0
  57. package/dist/src/index.js +101 -0
  58. package/dist/src/manifest.d.ts +8 -0
  59. package/dist/src/manifest.js +597 -0
  60. package/dist/src/npm-registry.d.ts +7 -0
  61. package/dist/src/npm-registry.js +47 -0
  62. package/dist/src/screens/app-installation.d.ts +3 -0
  63. package/dist/src/screens/app-installation.js +166 -0
  64. package/dist/src/screens/app-manifest.d.ts +3 -0
  65. package/dist/src/screens/app-manifest.js +81 -0
  66. package/dist/src/screens/oauth.d.ts +15 -0
  67. package/dist/src/screens/oauth.js +257 -0
  68. package/dist/src/screens/session.d.ts +8 -0
  69. package/dist/src/screens/session.js +159 -0
  70. package/dist/src/semantics/actions.d.ts +2 -0
  71. package/dist/src/semantics/actions.js +413 -0
  72. package/dist/src/semantics/activity.d.ts +4 -0
  73. package/dist/src/semantics/activity.js +161 -0
  74. package/dist/src/semantics/apps.d.ts +2 -0
  75. package/dist/src/semantics/apps.js +144 -0
  76. package/dist/src/semantics/branches.d.ts +2 -0
  77. package/dist/src/semantics/branches.js +136 -0
  78. package/dist/src/semantics/checks.d.ts +2 -0
  79. package/dist/src/semantics/checks.js +176 -0
  80. package/dist/src/semantics/code-scanning-upload.d.ts +2 -0
  81. package/dist/src/semantics/code-scanning-upload.js +97 -0
  82. package/dist/src/semantics/codespaces.d.ts +2 -0
  83. package/dist/src/semantics/codespaces.js +58 -0
  84. package/dist/src/semantics/commits.d.ts +2 -0
  85. package/dist/src/semantics/commits.js +109 -0
  86. package/dist/src/semantics/contents.d.ts +2 -0
  87. package/dist/src/semantics/contents.js +131 -0
  88. package/dist/src/semantics/deployments.d.ts +2 -0
  89. package/dist/src/semantics/deployments.js +127 -0
  90. package/dist/src/semantics/gists.d.ts +2 -0
  91. package/dist/src/semantics/gists.js +86 -0
  92. package/dist/src/semantics/git.d.ts +2 -0
  93. package/dist/src/semantics/git.js +235 -0
  94. package/dist/src/semantics/graphql.d.ts +7 -0
  95. package/dist/src/semantics/graphql.js +512 -0
  96. package/dist/src/semantics/index.d.ts +5 -0
  97. package/dist/src/semantics/index.js +62 -0
  98. package/dist/src/semantics/issues.d.ts +2 -0
  99. package/dist/src/semantics/issues.js +456 -0
  100. package/dist/src/semantics/keys.d.ts +2 -0
  101. package/dist/src/semantics/keys.js +66 -0
  102. package/dist/src/semantics/labels.d.ts +2 -0
  103. package/dist/src/semantics/labels.js +100 -0
  104. package/dist/src/semantics/meta.d.ts +12 -0
  105. package/dist/src/semantics/meta.js +144 -0
  106. package/dist/src/semantics/notifications.d.ts +4 -0
  107. package/dist/src/semantics/notifications.js +62 -0
  108. package/dist/src/semantics/orgs.d.ts +2 -0
  109. package/dist/src/semantics/orgs.js +420 -0
  110. package/dist/src/semantics/packages.d.ts +2 -0
  111. package/dist/src/semantics/packages.js +55 -0
  112. package/dist/src/semantics/pages.d.ts +2 -0
  113. package/dist/src/semantics/pages.js +176 -0
  114. package/dist/src/semantics/projects.d.ts +2 -0
  115. package/dist/src/semantics/projects.js +239 -0
  116. package/dist/src/semantics/pulls.d.ts +2 -0
  117. package/dist/src/semantics/pulls.js +462 -0
  118. package/dist/src/semantics/push-reactions.d.ts +101 -0
  119. package/dist/src/semantics/push-reactions.js +513 -0
  120. package/dist/src/semantics/releases.d.ts +19 -0
  121. package/dist/src/semantics/releases.js +231 -0
  122. package/dist/src/semantics/repo-invitations.d.ts +2 -0
  123. package/dist/src/semantics/repo-invitations.js +98 -0
  124. package/dist/src/semantics/repos.d.ts +17 -0
  125. package/dist/src/semantics/repos.js +390 -0
  126. package/dist/src/semantics/rulesets.d.ts +2 -0
  127. package/dist/src/semantics/rulesets.js +111 -0
  128. package/dist/src/semantics/search.d.ts +2 -0
  129. package/dist/src/semantics/search.js +84 -0
  130. package/dist/src/semantics/security.d.ts +2 -0
  131. package/dist/src/semantics/security.js +177 -0
  132. package/dist/src/semantics/shared.d.ts +61 -0
  133. package/dist/src/semantics/shared.js +151 -0
  134. package/dist/src/semantics/users.d.ts +2 -0
  135. package/dist/src/semantics/users.js +255 -0
  136. package/dist/src/semantics/webhooks.d.ts +2 -0
  137. package/dist/src/semantics/webhooks.js +107 -0
  138. package/dist/test-fixtures/github-a11y-reference.pr-list.SOURCE.md +56 -0
  139. package/dist/test-fixtures/github-a11y-reference.pr-list.json +1447 -0
  140. package/dist/test-fixtures/github-comment-schema.SOURCE.md +11 -0
  141. package/dist/test-fixtures/github-comment-schema.json +702 -0
  142. package/dist/test-fixtures/github-known-deviations.json +94 -0
  143. package/dist/test-fixtures/github-openapi-operations.SOURCE.md +76 -0
  144. package/dist/test-fixtures/github-openapi-operations.json +362 -0
  145. package/dist/test-fixtures/github-pull-schema.SOURCE.md +37 -0
  146. package/dist/test-fixtures/github-pull-schema.json +3601 -0
  147. package/dist/test-fixtures/github-review-schema.SOURCE.md +12 -0
  148. package/dist/test-fixtures/github-review-schema.json +236 -0
  149. package/package.json +20 -11
  150. package/src/cli.ts +7 -6
  151. package/src/generated/graphql-sdl.gen.json +1 -0
  152. package/src/generated/graphql.gen.json +1 -0
  153. package/src/generated/surface.gen.json +1 -0
  154. package/src/generated/ui.gen.json +1 -0
  155. package/src/github-a11y-snapshot.uitest.ts +5 -5
  156. package/src/github-budget.ts +4 -4
  157. package/src/github-capabilities.ts +1993 -556
  158. package/src/github-conformance.ts +12 -7
  159. package/src/github-connector.ts +108 -96
  160. package/src/github-events.ts +223 -95
  161. package/src/github-git-http.ts +47 -83
  162. package/src/github-git-plane.ts +247 -385
  163. package/src/github-journey.uitest.ts +28 -44
  164. package/src/github-mirror-state.ts +23 -61
  165. package/src/github-mirror-ui.ts +16 -10
  166. package/src/github-server.ts +158 -60
  167. package/src/github-shared.ts +1 -1
  168. package/src/github-twin.ts +1525 -4494
  169. package/src/github-ui-conformance.ts +7 -8
  170. package/src/github-ui-structure.ts +19 -18
  171. package/src/graphql-wire.ts +115 -0
  172. package/src/index.ts +47 -7
  173. package/src/manifest.ts +605 -0
  174. package/src/npm-registry.ts +43 -0
  175. package/src/screens/app-installation.tsx +217 -0
  176. package/src/screens/app-manifest.tsx +97 -0
  177. package/src/screens/oauth.tsx +258 -0
  178. package/src/screens/session.tsx +186 -0
  179. package/src/semantics/actions.ts +395 -0
  180. package/src/semantics/activity.ts +171 -0
  181. package/src/semantics/apps.ts +133 -0
  182. package/src/semantics/branches.ts +133 -0
  183. package/src/semantics/checks.ts +163 -0
  184. package/src/semantics/code-scanning-upload.ts +92 -0
  185. package/src/semantics/codespaces.ts +58 -0
  186. package/src/semantics/commits.ts +109 -0
  187. package/src/semantics/contents.ts +112 -0
  188. package/src/semantics/deployments.ts +116 -0
  189. package/src/semantics/gists.ts +85 -0
  190. package/src/semantics/git.ts +226 -0
  191. package/src/semantics/graphql.ts +505 -0
  192. package/src/semantics/index.ts +68 -0
  193. package/src/semantics/issues.ts +434 -0
  194. package/src/semantics/keys.ts +66 -0
  195. package/src/semantics/labels.ts +91 -0
  196. package/src/semantics/meta.ts +139 -0
  197. package/src/semantics/notifications.ts +58 -0
  198. package/src/semantics/orgs.ts +383 -0
  199. package/src/semantics/packages.ts +59 -0
  200. package/src/semantics/pages.ts +154 -0
  201. package/src/semantics/projects.ts +246 -0
  202. package/src/semantics/pulls.ts +421 -0
  203. package/src/semantics/push-reactions.ts +471 -0
  204. package/src/semantics/releases.ts +213 -0
  205. package/src/semantics/repo-invitations.ts +112 -0
  206. package/src/semantics/repos.ts +373 -0
  207. package/src/semantics/rulesets.ts +107 -0
  208. package/src/semantics/search.ts +83 -0
  209. package/src/semantics/security.ts +153 -0
  210. package/src/semantics/shared.ts +181 -0
  211. package/src/semantics/users.ts +252 -0
  212. package/src/semantics/webhooks.ts +101 -0
  213. package/test-fixtures/github-known-deviations.json +7 -8
  214. package/test-fixtures/github-openapi-operations.json +46 -227
  215. package/src/github-graphql.ts +0 -398
@@ -0,0 +1,702 @@
1
+ {
2
+ "title": "Issue Comment",
3
+ "description": "Comments provide a way for people to collaborate on an issue.",
4
+ "type": "object",
5
+ "properties": {
6
+ "id": {
7
+ "description": "Unique identifier of the issue comment",
8
+ "example": 42,
9
+ "type": "integer",
10
+ "format": "int64"
11
+ },
12
+ "node_id": {
13
+ "type": "string"
14
+ },
15
+ "url": {
16
+ "description": "URL for the issue comment",
17
+ "example": "https://api.github.com/repositories/42/issues/comments/1",
18
+ "type": "string",
19
+ "format": "uri"
20
+ },
21
+ "body": {
22
+ "description": "Contents of the issue comment",
23
+ "example": "What version of Safari were you using when you observed this bug?",
24
+ "type": "string"
25
+ },
26
+ "body_text": {
27
+ "type": "string"
28
+ },
29
+ "body_html": {
30
+ "type": "string"
31
+ },
32
+ "html_url": {
33
+ "type": "string",
34
+ "format": "uri"
35
+ },
36
+ "user": {
37
+ "title": "Simple User",
38
+ "description": "A GitHub user.",
39
+ "type": "object",
40
+ "properties": {
41
+ "name": {
42
+ "nullable": true,
43
+ "type": "string"
44
+ },
45
+ "email": {
46
+ "nullable": true,
47
+ "type": "string"
48
+ },
49
+ "login": {
50
+ "type": "string",
51
+ "example": "octocat"
52
+ },
53
+ "id": {
54
+ "type": "integer",
55
+ "format": "int64",
56
+ "example": 1
57
+ },
58
+ "node_id": {
59
+ "type": "string",
60
+ "example": "MDQ6VXNlcjE="
61
+ },
62
+ "avatar_url": {
63
+ "type": "string",
64
+ "format": "uri",
65
+ "example": "https://github.com/images/error/octocat_happy.gif"
66
+ },
67
+ "gravatar_id": {
68
+ "type": "string",
69
+ "example": "41d064eb2195891e12d0413f63227ea7",
70
+ "nullable": true
71
+ },
72
+ "url": {
73
+ "type": "string",
74
+ "format": "uri",
75
+ "example": "https://api.github.com/users/octocat"
76
+ },
77
+ "html_url": {
78
+ "type": "string",
79
+ "format": "uri",
80
+ "example": "https://github.com/octocat"
81
+ },
82
+ "followers_url": {
83
+ "type": "string",
84
+ "format": "uri",
85
+ "example": "https://api.github.com/users/octocat/followers"
86
+ },
87
+ "following_url": {
88
+ "type": "string",
89
+ "example": "https://api.github.com/users/octocat/following{/other_user}"
90
+ },
91
+ "gists_url": {
92
+ "type": "string",
93
+ "example": "https://api.github.com/users/octocat/gists{/gist_id}"
94
+ },
95
+ "starred_url": {
96
+ "type": "string",
97
+ "example": "https://api.github.com/users/octocat/starred{/owner}{/repo}"
98
+ },
99
+ "subscriptions_url": {
100
+ "type": "string",
101
+ "format": "uri",
102
+ "example": "https://api.github.com/users/octocat/subscriptions"
103
+ },
104
+ "organizations_url": {
105
+ "type": "string",
106
+ "format": "uri",
107
+ "example": "https://api.github.com/users/octocat/orgs"
108
+ },
109
+ "repos_url": {
110
+ "type": "string",
111
+ "format": "uri",
112
+ "example": "https://api.github.com/users/octocat/repos"
113
+ },
114
+ "events_url": {
115
+ "type": "string",
116
+ "example": "https://api.github.com/users/octocat/events{/privacy}"
117
+ },
118
+ "received_events_url": {
119
+ "type": "string",
120
+ "format": "uri",
121
+ "example": "https://api.github.com/users/octocat/received_events"
122
+ },
123
+ "type": {
124
+ "type": "string",
125
+ "example": "User"
126
+ },
127
+ "site_admin": {
128
+ "type": "boolean"
129
+ },
130
+ "starred_at": {
131
+ "type": "string",
132
+ "example": "\"2020-07-09T00:17:55Z\""
133
+ },
134
+ "user_view_type": {
135
+ "type": "string",
136
+ "example": "public"
137
+ }
138
+ },
139
+ "required": [
140
+ "avatar_url",
141
+ "events_url",
142
+ "followers_url",
143
+ "following_url",
144
+ "gists_url",
145
+ "gravatar_id",
146
+ "html_url",
147
+ "id",
148
+ "node_id",
149
+ "login",
150
+ "organizations_url",
151
+ "received_events_url",
152
+ "repos_url",
153
+ "site_admin",
154
+ "starred_url",
155
+ "subscriptions_url",
156
+ "type",
157
+ "url"
158
+ ],
159
+ "nullable": true
160
+ },
161
+ "created_at": {
162
+ "type": "string",
163
+ "format": "date-time",
164
+ "example": "2011-04-14T16:00:49Z"
165
+ },
166
+ "updated_at": {
167
+ "type": "string",
168
+ "format": "date-time",
169
+ "example": "2011-04-14T16:00:49Z"
170
+ },
171
+ "issue_url": {
172
+ "type": "string",
173
+ "format": "uri"
174
+ },
175
+ "author_association": {
176
+ "title": "author_association",
177
+ "type": "string",
178
+ "example": "OWNER",
179
+ "description": "How the author is associated with the repository.",
180
+ "enum": [
181
+ "COLLABORATOR",
182
+ "CONTRIBUTOR",
183
+ "FIRST_TIMER",
184
+ "FIRST_TIME_CONTRIBUTOR",
185
+ "MANNEQUIN",
186
+ "MEMBER",
187
+ "NONE",
188
+ "OWNER"
189
+ ]
190
+ },
191
+ "performed_via_github_app": {
192
+ "title": "GitHub app",
193
+ "description": "GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.",
194
+ "type": "object",
195
+ "nullable": true,
196
+ "properties": {
197
+ "id": {
198
+ "description": "Unique identifier of the GitHub app",
199
+ "example": 37,
200
+ "type": "integer"
201
+ },
202
+ "slug": {
203
+ "description": "The slug name of the GitHub app",
204
+ "example": "probot-owners",
205
+ "type": "string"
206
+ },
207
+ "node_id": {
208
+ "type": "string",
209
+ "example": "MDExOkludGVncmF0aW9uMQ=="
210
+ },
211
+ "client_id": {
212
+ "type": "string",
213
+ "example": "\"Iv1.25b5d1e65ffc4022\""
214
+ },
215
+ "owner": {
216
+ "oneOf": [
217
+ {
218
+ "title": "Simple User",
219
+ "description": "A GitHub user.",
220
+ "type": "object",
221
+ "properties": {
222
+ "name": {
223
+ "nullable": true,
224
+ "type": "string"
225
+ },
226
+ "email": {
227
+ "nullable": true,
228
+ "type": "string"
229
+ },
230
+ "login": {
231
+ "type": "string",
232
+ "example": "octocat"
233
+ },
234
+ "id": {
235
+ "type": "integer",
236
+ "format": "int64",
237
+ "example": 1
238
+ },
239
+ "node_id": {
240
+ "type": "string",
241
+ "example": "MDQ6VXNlcjE="
242
+ },
243
+ "avatar_url": {
244
+ "type": "string",
245
+ "format": "uri",
246
+ "example": "https://github.com/images/error/octocat_happy.gif"
247
+ },
248
+ "gravatar_id": {
249
+ "type": "string",
250
+ "example": "41d064eb2195891e12d0413f63227ea7",
251
+ "nullable": true
252
+ },
253
+ "url": {
254
+ "type": "string",
255
+ "format": "uri",
256
+ "example": "https://api.github.com/users/octocat"
257
+ },
258
+ "html_url": {
259
+ "type": "string",
260
+ "format": "uri",
261
+ "example": "https://github.com/octocat"
262
+ },
263
+ "followers_url": {
264
+ "type": "string",
265
+ "format": "uri",
266
+ "example": "https://api.github.com/users/octocat/followers"
267
+ },
268
+ "following_url": {
269
+ "type": "string",
270
+ "example": "https://api.github.com/users/octocat/following{/other_user}"
271
+ },
272
+ "gists_url": {
273
+ "type": "string",
274
+ "example": "https://api.github.com/users/octocat/gists{/gist_id}"
275
+ },
276
+ "starred_url": {
277
+ "type": "string",
278
+ "example": "https://api.github.com/users/octocat/starred{/owner}{/repo}"
279
+ },
280
+ "subscriptions_url": {
281
+ "type": "string",
282
+ "format": "uri",
283
+ "example": "https://api.github.com/users/octocat/subscriptions"
284
+ },
285
+ "organizations_url": {
286
+ "type": "string",
287
+ "format": "uri",
288
+ "example": "https://api.github.com/users/octocat/orgs"
289
+ },
290
+ "repos_url": {
291
+ "type": "string",
292
+ "format": "uri",
293
+ "example": "https://api.github.com/users/octocat/repos"
294
+ },
295
+ "events_url": {
296
+ "type": "string",
297
+ "example": "https://api.github.com/users/octocat/events{/privacy}"
298
+ },
299
+ "received_events_url": {
300
+ "type": "string",
301
+ "format": "uri",
302
+ "example": "https://api.github.com/users/octocat/received_events"
303
+ },
304
+ "type": {
305
+ "type": "string",
306
+ "example": "User"
307
+ },
308
+ "site_admin": {
309
+ "type": "boolean"
310
+ },
311
+ "starred_at": {
312
+ "type": "string",
313
+ "example": "\"2020-07-09T00:17:55Z\""
314
+ },
315
+ "user_view_type": {
316
+ "type": "string",
317
+ "example": "public"
318
+ }
319
+ },
320
+ "required": [
321
+ "avatar_url",
322
+ "events_url",
323
+ "followers_url",
324
+ "following_url",
325
+ "gists_url",
326
+ "gravatar_id",
327
+ "html_url",
328
+ "id",
329
+ "node_id",
330
+ "login",
331
+ "organizations_url",
332
+ "received_events_url",
333
+ "repos_url",
334
+ "site_admin",
335
+ "starred_url",
336
+ "subscriptions_url",
337
+ "type",
338
+ "url"
339
+ ]
340
+ },
341
+ {
342
+ "title": "Enterprise",
343
+ "description": "An enterprise on GitHub.",
344
+ "type": "object",
345
+ "properties": {
346
+ "description": {
347
+ "description": "A short description of the enterprise.",
348
+ "type": "string",
349
+ "nullable": true
350
+ },
351
+ "html_url": {
352
+ "type": "string",
353
+ "format": "uri",
354
+ "example": "https://github.com/enterprises/octo-business"
355
+ },
356
+ "website_url": {
357
+ "description": "The enterprise's website URL.",
358
+ "type": "string",
359
+ "nullable": true,
360
+ "format": "uri"
361
+ },
362
+ "id": {
363
+ "description": "Unique identifier of the enterprise",
364
+ "example": 42,
365
+ "type": "integer"
366
+ },
367
+ "node_id": {
368
+ "type": "string",
369
+ "example": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
370
+ },
371
+ "name": {
372
+ "description": "The name of the enterprise.",
373
+ "type": "string",
374
+ "example": "Octo Business"
375
+ },
376
+ "slug": {
377
+ "description": "The slug url identifier for the enterprise.",
378
+ "type": "string",
379
+ "example": "octo-business"
380
+ },
381
+ "created_at": {
382
+ "type": "string",
383
+ "nullable": true,
384
+ "format": "date-time",
385
+ "example": "2019-01-26T19:01:12Z"
386
+ },
387
+ "updated_at": {
388
+ "type": "string",
389
+ "nullable": true,
390
+ "format": "date-time",
391
+ "example": "2019-01-26T19:14:43Z"
392
+ },
393
+ "avatar_url": {
394
+ "type": "string",
395
+ "format": "uri"
396
+ }
397
+ },
398
+ "required": [
399
+ "id",
400
+ "node_id",
401
+ "name",
402
+ "slug",
403
+ "html_url",
404
+ "created_at",
405
+ "updated_at",
406
+ "avatar_url"
407
+ ]
408
+ }
409
+ ]
410
+ },
411
+ "name": {
412
+ "description": "The name of the GitHub app",
413
+ "example": "Probot Owners",
414
+ "type": "string"
415
+ },
416
+ "description": {
417
+ "type": "string",
418
+ "example": "The description of the app.",
419
+ "nullable": true
420
+ },
421
+ "external_url": {
422
+ "type": "string",
423
+ "format": "uri",
424
+ "example": "https://example.com"
425
+ },
426
+ "html_url": {
427
+ "type": "string",
428
+ "format": "uri",
429
+ "example": "https://github.com/apps/super-ci"
430
+ },
431
+ "created_at": {
432
+ "type": "string",
433
+ "format": "date-time",
434
+ "example": "2017-07-08T16:18:44-04:00"
435
+ },
436
+ "updated_at": {
437
+ "type": "string",
438
+ "format": "date-time",
439
+ "example": "2017-07-08T16:18:44-04:00"
440
+ },
441
+ "permissions": {
442
+ "description": "The set of permissions for the GitHub app",
443
+ "type": "object",
444
+ "properties": {
445
+ "issues": {
446
+ "type": "string"
447
+ },
448
+ "checks": {
449
+ "type": "string"
450
+ },
451
+ "metadata": {
452
+ "type": "string"
453
+ },
454
+ "contents": {
455
+ "type": "string"
456
+ },
457
+ "deployments": {
458
+ "type": "string"
459
+ }
460
+ },
461
+ "additionalProperties": {
462
+ "type": "string"
463
+ },
464
+ "example": {
465
+ "issues": "read",
466
+ "deployments": "write"
467
+ }
468
+ },
469
+ "events": {
470
+ "description": "The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation.",
471
+ "example": [
472
+ "label",
473
+ "deployment"
474
+ ],
475
+ "type": "array",
476
+ "items": {
477
+ "type": "string"
478
+ }
479
+ },
480
+ "installations_count": {
481
+ "description": "The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself.",
482
+ "example": 5,
483
+ "type": "integer"
484
+ }
485
+ },
486
+ "required": [
487
+ "id",
488
+ "node_id",
489
+ "owner",
490
+ "name",
491
+ "description",
492
+ "external_url",
493
+ "html_url",
494
+ "created_at",
495
+ "updated_at",
496
+ "permissions",
497
+ "events"
498
+ ]
499
+ },
500
+ "reactions": {
501
+ "title": "Reaction Rollup",
502
+ "type": "object",
503
+ "properties": {
504
+ "url": {
505
+ "type": "string",
506
+ "format": "uri"
507
+ },
508
+ "total_count": {
509
+ "type": "integer"
510
+ },
511
+ "+1": {
512
+ "type": "integer"
513
+ },
514
+ "-1": {
515
+ "type": "integer"
516
+ },
517
+ "laugh": {
518
+ "type": "integer"
519
+ },
520
+ "confused": {
521
+ "type": "integer"
522
+ },
523
+ "heart": {
524
+ "type": "integer"
525
+ },
526
+ "hooray": {
527
+ "type": "integer"
528
+ },
529
+ "eyes": {
530
+ "type": "integer"
531
+ },
532
+ "rocket": {
533
+ "type": "integer"
534
+ }
535
+ },
536
+ "required": [
537
+ "url",
538
+ "total_count",
539
+ "+1",
540
+ "-1",
541
+ "laugh",
542
+ "confused",
543
+ "heart",
544
+ "hooray",
545
+ "eyes",
546
+ "rocket"
547
+ ]
548
+ },
549
+ "pin": {
550
+ "title": "Pinned Issue Comment",
551
+ "description": "Context around who pinned an issue comment and when it was pinned.",
552
+ "type": "object",
553
+ "properties": {
554
+ "pinned_at": {
555
+ "type": "string",
556
+ "format": "date-time",
557
+ "example": "2011-04-14T16:00:49Z"
558
+ },
559
+ "pinned_by": {
560
+ "title": "Simple User",
561
+ "description": "A GitHub user.",
562
+ "type": "object",
563
+ "properties": {
564
+ "name": {
565
+ "nullable": true,
566
+ "type": "string"
567
+ },
568
+ "email": {
569
+ "nullable": true,
570
+ "type": "string"
571
+ },
572
+ "login": {
573
+ "type": "string",
574
+ "example": "octocat"
575
+ },
576
+ "id": {
577
+ "type": "integer",
578
+ "format": "int64",
579
+ "example": 1
580
+ },
581
+ "node_id": {
582
+ "type": "string",
583
+ "example": "MDQ6VXNlcjE="
584
+ },
585
+ "avatar_url": {
586
+ "type": "string",
587
+ "format": "uri",
588
+ "example": "https://github.com/images/error/octocat_happy.gif"
589
+ },
590
+ "gravatar_id": {
591
+ "type": "string",
592
+ "example": "41d064eb2195891e12d0413f63227ea7",
593
+ "nullable": true
594
+ },
595
+ "url": {
596
+ "type": "string",
597
+ "format": "uri",
598
+ "example": "https://api.github.com/users/octocat"
599
+ },
600
+ "html_url": {
601
+ "type": "string",
602
+ "format": "uri",
603
+ "example": "https://github.com/octocat"
604
+ },
605
+ "followers_url": {
606
+ "type": "string",
607
+ "format": "uri",
608
+ "example": "https://api.github.com/users/octocat/followers"
609
+ },
610
+ "following_url": {
611
+ "type": "string",
612
+ "example": "https://api.github.com/users/octocat/following{/other_user}"
613
+ },
614
+ "gists_url": {
615
+ "type": "string",
616
+ "example": "https://api.github.com/users/octocat/gists{/gist_id}"
617
+ },
618
+ "starred_url": {
619
+ "type": "string",
620
+ "example": "https://api.github.com/users/octocat/starred{/owner}{/repo}"
621
+ },
622
+ "subscriptions_url": {
623
+ "type": "string",
624
+ "format": "uri",
625
+ "example": "https://api.github.com/users/octocat/subscriptions"
626
+ },
627
+ "organizations_url": {
628
+ "type": "string",
629
+ "format": "uri",
630
+ "example": "https://api.github.com/users/octocat/orgs"
631
+ },
632
+ "repos_url": {
633
+ "type": "string",
634
+ "format": "uri",
635
+ "example": "https://api.github.com/users/octocat/repos"
636
+ },
637
+ "events_url": {
638
+ "type": "string",
639
+ "example": "https://api.github.com/users/octocat/events{/privacy}"
640
+ },
641
+ "received_events_url": {
642
+ "type": "string",
643
+ "format": "uri",
644
+ "example": "https://api.github.com/users/octocat/received_events"
645
+ },
646
+ "type": {
647
+ "type": "string",
648
+ "example": "User"
649
+ },
650
+ "site_admin": {
651
+ "type": "boolean"
652
+ },
653
+ "starred_at": {
654
+ "type": "string",
655
+ "example": "\"2020-07-09T00:17:55Z\""
656
+ },
657
+ "user_view_type": {
658
+ "type": "string",
659
+ "example": "public"
660
+ }
661
+ },
662
+ "required": [
663
+ "avatar_url",
664
+ "events_url",
665
+ "followers_url",
666
+ "following_url",
667
+ "gists_url",
668
+ "gravatar_id",
669
+ "html_url",
670
+ "id",
671
+ "node_id",
672
+ "login",
673
+ "organizations_url",
674
+ "received_events_url",
675
+ "repos_url",
676
+ "site_admin",
677
+ "starred_url",
678
+ "subscriptions_url",
679
+ "type",
680
+ "url"
681
+ ],
682
+ "nullable": true
683
+ }
684
+ },
685
+ "required": [
686
+ "pinned_at",
687
+ "pinned_by"
688
+ ],
689
+ "nullable": true
690
+ }
691
+ },
692
+ "required": [
693
+ "id",
694
+ "node_id",
695
+ "html_url",
696
+ "issue_url",
697
+ "user",
698
+ "url",
699
+ "created_at",
700
+ "updated_at"
701
+ ]
702
+ }