@volter/twin-github 0.1.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.
- package/LICENSE +202 -0
- package/README.md +80 -0
- package/client/github-mirror.css +958 -0
- package/client/github-mirror.tsx +1513 -0
- package/package.json +73 -0
- package/src/cli.ts +40 -0
- package/src/github-capabilities.ts +2144 -0
- package/src/github-conformance.ts +94 -0
- package/src/github-connector.ts +644 -0
- package/src/github-events.ts +95 -0
- package/src/github-graphql.ts +187 -0
- package/src/github-mirror-ui.ts +416 -0
- package/src/github-server.ts +35 -0
- package/src/github-twin.ts +6568 -0
- package/src/github-ui-conformance.ts +112 -0
- package/src/github-ui-structure.ts +256 -0
- package/src/index.ts +23 -0
- package/test-fixtures/github-a11y-reference.pr-list.json +1447 -0
- package/test-fixtures/github-comment-schema.json +702 -0
- package/test-fixtures/github-known-deviations.json +95 -0
- package/test-fixtures/github-openapi-operations.json +110 -0
- package/test-fixtures/github-pull-schema.json +3601 -0
- package/test-fixtures/github-review-schema.json +236 -0
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Pull Request Review",
|
|
3
|
+
"description": "Pull Request Reviews are reviews on pull requests.",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"description": "Unique identifier of the review",
|
|
8
|
+
"example": 42,
|
|
9
|
+
"type": "integer",
|
|
10
|
+
"format": "int64"
|
|
11
|
+
},
|
|
12
|
+
"node_id": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"example": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA="
|
|
15
|
+
},
|
|
16
|
+
"user": {
|
|
17
|
+
"title": "Simple User",
|
|
18
|
+
"description": "A GitHub user.",
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"name": {
|
|
22
|
+
"nullable": true,
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"email": {
|
|
26
|
+
"nullable": true,
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"login": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"example": "octocat"
|
|
32
|
+
},
|
|
33
|
+
"id": {
|
|
34
|
+
"type": "integer",
|
|
35
|
+
"format": "int64",
|
|
36
|
+
"example": 1
|
|
37
|
+
},
|
|
38
|
+
"node_id": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"example": "MDQ6VXNlcjE="
|
|
41
|
+
},
|
|
42
|
+
"avatar_url": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"format": "uri",
|
|
45
|
+
"example": "https://github.com/images/error/octocat_happy.gif"
|
|
46
|
+
},
|
|
47
|
+
"gravatar_id": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"example": "41d064eb2195891e12d0413f63227ea7",
|
|
50
|
+
"nullable": true
|
|
51
|
+
},
|
|
52
|
+
"url": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"format": "uri",
|
|
55
|
+
"example": "https://api.github.com/users/octocat"
|
|
56
|
+
},
|
|
57
|
+
"html_url": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"format": "uri",
|
|
60
|
+
"example": "https://github.com/octocat"
|
|
61
|
+
},
|
|
62
|
+
"followers_url": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"format": "uri",
|
|
65
|
+
"example": "https://api.github.com/users/octocat/followers"
|
|
66
|
+
},
|
|
67
|
+
"following_url": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"example": "https://api.github.com/users/octocat/following{/other_user}"
|
|
70
|
+
},
|
|
71
|
+
"gists_url": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"example": "https://api.github.com/users/octocat/gists{/gist_id}"
|
|
74
|
+
},
|
|
75
|
+
"starred_url": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"example": "https://api.github.com/users/octocat/starred{/owner}{/repo}"
|
|
78
|
+
},
|
|
79
|
+
"subscriptions_url": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"format": "uri",
|
|
82
|
+
"example": "https://api.github.com/users/octocat/subscriptions"
|
|
83
|
+
},
|
|
84
|
+
"organizations_url": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"format": "uri",
|
|
87
|
+
"example": "https://api.github.com/users/octocat/orgs"
|
|
88
|
+
},
|
|
89
|
+
"repos_url": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"format": "uri",
|
|
92
|
+
"example": "https://api.github.com/users/octocat/repos"
|
|
93
|
+
},
|
|
94
|
+
"events_url": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"example": "https://api.github.com/users/octocat/events{/privacy}"
|
|
97
|
+
},
|
|
98
|
+
"received_events_url": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"format": "uri",
|
|
101
|
+
"example": "https://api.github.com/users/octocat/received_events"
|
|
102
|
+
},
|
|
103
|
+
"type": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"example": "User"
|
|
106
|
+
},
|
|
107
|
+
"site_admin": {
|
|
108
|
+
"type": "boolean"
|
|
109
|
+
},
|
|
110
|
+
"starred_at": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"example": "\"2020-07-09T00:17:55Z\""
|
|
113
|
+
},
|
|
114
|
+
"user_view_type": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"example": "public"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"required": [
|
|
120
|
+
"avatar_url",
|
|
121
|
+
"events_url",
|
|
122
|
+
"followers_url",
|
|
123
|
+
"following_url",
|
|
124
|
+
"gists_url",
|
|
125
|
+
"gravatar_id",
|
|
126
|
+
"html_url",
|
|
127
|
+
"id",
|
|
128
|
+
"node_id",
|
|
129
|
+
"login",
|
|
130
|
+
"organizations_url",
|
|
131
|
+
"received_events_url",
|
|
132
|
+
"repos_url",
|
|
133
|
+
"site_admin",
|
|
134
|
+
"starred_url",
|
|
135
|
+
"subscriptions_url",
|
|
136
|
+
"type",
|
|
137
|
+
"url"
|
|
138
|
+
],
|
|
139
|
+
"nullable": true
|
|
140
|
+
},
|
|
141
|
+
"body": {
|
|
142
|
+
"description": "The text of the review.",
|
|
143
|
+
"example": "This looks great.",
|
|
144
|
+
"type": "string"
|
|
145
|
+
},
|
|
146
|
+
"state": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"example": "CHANGES_REQUESTED"
|
|
149
|
+
},
|
|
150
|
+
"html_url": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"format": "uri",
|
|
153
|
+
"example": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
|
|
154
|
+
},
|
|
155
|
+
"pull_request_url": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"format": "uri",
|
|
158
|
+
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/12"
|
|
159
|
+
},
|
|
160
|
+
"_links": {
|
|
161
|
+
"type": "object",
|
|
162
|
+
"properties": {
|
|
163
|
+
"html": {
|
|
164
|
+
"type": "object",
|
|
165
|
+
"properties": {
|
|
166
|
+
"href": {
|
|
167
|
+
"type": "string"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"required": [
|
|
171
|
+
"href"
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
"pull_request": {
|
|
175
|
+
"type": "object",
|
|
176
|
+
"properties": {
|
|
177
|
+
"href": {
|
|
178
|
+
"type": "string"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"required": [
|
|
182
|
+
"href"
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"required": [
|
|
187
|
+
"html",
|
|
188
|
+
"pull_request"
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
"submitted_at": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"format": "date-time"
|
|
194
|
+
},
|
|
195
|
+
"commit_id": {
|
|
196
|
+
"description": "A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`.",
|
|
197
|
+
"example": "54bb654c9e6025347f57900a4a5c2313a96b8035",
|
|
198
|
+
"type": "string",
|
|
199
|
+
"nullable": true
|
|
200
|
+
},
|
|
201
|
+
"body_html": {
|
|
202
|
+
"type": "string"
|
|
203
|
+
},
|
|
204
|
+
"body_text": {
|
|
205
|
+
"type": "string"
|
|
206
|
+
},
|
|
207
|
+
"author_association": {
|
|
208
|
+
"title": "author_association",
|
|
209
|
+
"type": "string",
|
|
210
|
+
"example": "OWNER",
|
|
211
|
+
"description": "How the author is associated with the repository.",
|
|
212
|
+
"enum": [
|
|
213
|
+
"COLLABORATOR",
|
|
214
|
+
"CONTRIBUTOR",
|
|
215
|
+
"FIRST_TIMER",
|
|
216
|
+
"FIRST_TIME_CONTRIBUTOR",
|
|
217
|
+
"MANNEQUIN",
|
|
218
|
+
"MEMBER",
|
|
219
|
+
"NONE",
|
|
220
|
+
"OWNER"
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"required": [
|
|
225
|
+
"id",
|
|
226
|
+
"node_id",
|
|
227
|
+
"user",
|
|
228
|
+
"body",
|
|
229
|
+
"state",
|
|
230
|
+
"commit_id",
|
|
231
|
+
"html_url",
|
|
232
|
+
"pull_request_url",
|
|
233
|
+
"_links",
|
|
234
|
+
"author_association"
|
|
235
|
+
]
|
|
236
|
+
}
|