forges 0.0.0 → 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/LICENCE +21 -0
- package/README.md +72 -0
- package/dist/azure-devops/index.d.mts +2 -0
- package/dist/azure-devops/index.mjs +1 -0
- package/dist/azure-devops-DwQvL4TV.mjs +1355 -0
- package/dist/bitbucket/index.d.mts +2 -0
- package/dist/bitbucket/index.mjs +1 -0
- package/dist/bitbucket-CpcfJlYi.mjs +1171 -0
- package/dist/crypto-CQNEyYHD.mjs +156 -0
- package/dist/cursor-origin/index.d.mts +2 -0
- package/dist/cursor-origin/index.mjs +1 -0
- package/dist/cursor-origin-BhqYx2oW.mjs +980 -0
- package/dist/define-B2_4ob2i.d.mts +307 -0
- package/dist/define-D3yEXtKK.mjs +2276 -0
- package/dist/env.d.mts +46 -0
- package/dist/env.mjs +283 -0
- package/dist/fake/index.d.mts +227 -0
- package/dist/fake/index.mjs +1001 -0
- package/dist/fetch-D4pSRvvA.d.mts +1723 -0
- package/dist/forgejo/index.d.mts +2 -0
- package/dist/forgejo/index.mjs +1 -0
- package/dist/forgejo-BCefbHUN.mjs +2005 -0
- package/dist/gitea/index.d.mts +2 -0
- package/dist/gitea/index.mjs +22 -0
- package/dist/gitee/index.d.mts +2 -0
- package/dist/gitee/index.mjs +1 -0
- package/dist/gitee-CA-f7Rs8.mjs +1272 -0
- package/dist/github/index.d.mts +2 -0
- package/dist/github/index.mjs +1 -0
- package/dist/github-B0umL8_f.mjs +3259 -0
- package/dist/gitlab/index.d.mts +2 -0
- package/dist/gitlab/index.mjs +1 -0
- package/dist/gitlab-Bsr__Z0C.mjs +2378 -0
- package/dist/graphql-D7uGzZTf.mjs +366 -0
- package/dist/index-BQ6VS31s.d.mts +32 -0
- package/dist/index-C-jz9Mo3.d.mts +16 -0
- package/dist/index-C4fYzmK3.d.mts +102 -0
- package/dist/index-CQiIX4SH.d.mts +27 -0
- package/dist/index-CTj5gQzl.d.mts +35 -0
- package/dist/index-CliBWzOF.d.mts +23 -0
- package/dist/index-Cz_y-t3d.d.mts +36 -0
- package/dist/index-DEt25E1w.d.mts +77 -0
- package/dist/index-DIuS0EOy.d.mts +43 -0
- package/dist/index-uSpsMCrC.d.mts +26 -0
- package/dist/index.d.mts +41 -0
- package/dist/index.mjs +13 -0
- package/dist/kit.d.mts +183 -0
- package/dist/kit.mjs +4 -0
- package/dist/provider-CoZ7cCxp.d.mts +1439 -0
- package/dist/provider-Ed1YhkQN.mjs +169 -0
- package/dist/pushin/index.d.mts +2 -0
- package/dist/pushin/index.mjs +1 -0
- package/dist/pushin-CkxgJ2cU.mjs +343 -0
- package/dist/schema/Actor.json +96 -0
- package/dist/schema/AlertSupport.json +49 -0
- package/dist/schema/AuthKind.json +15 -0
- package/dist/schema/Branch.json +31 -0
- package/dist/schema/ChangedFile.json +58 -0
- package/dist/schema/Check.json +169 -0
- package/dist/schema/CheckRef.json +114 -0
- package/dist/schema/CheckState.json +14 -0
- package/dist/schema/ChecksSummary.json +34 -0
- package/dist/schema/CiJob.json +186 -0
- package/dist/schema/CiJobRef.json +132 -0
- package/dist/schema/CiRun.json +234 -0
- package/dist/schema/CiRunRef.json +103 -0
- package/dist/schema/CodeFragment.json +19 -0
- package/dist/schema/CodeMatch.json +128 -0
- package/dist/schema/Collaborator.json +169 -0
- package/dist/schema/Comment.json +336 -0
- package/dist/schema/CommentRef.json +158 -0
- package/dist/schema/Commit.json +307 -0
- package/dist/schema/CommitRef.json +104 -0
- package/dist/schema/CommitSignature.json +118 -0
- package/dist/schema/Comparison.json +355 -0
- package/dist/schema/Cursor.json +21 -0
- package/dist/schema/EventAction.json +33 -0
- package/dist/schema/EventDetail.json +649 -0
- package/dist/schema/EventKind.json +26 -0
- package/dist/schema/FileContent.json +73 -0
- package/dist/schema/FileStatus.json +15 -0
- package/dist/schema/ForgeCapabilities.json +737 -0
- package/dist/schema/ForgeEvent.json +789 -0
- package/dist/schema/ForgeInstance.json +7 -0
- package/dist/schema/ForgeKind.json +32 -0
- package/dist/schema/ForgeWarning.json +49 -0
- package/dist/schema/ForgeWarningCode.json +7 -0
- package/dist/schema/GetManyResult.json +699 -0
- package/dist/schema/Installation.json +131 -0
- package/dist/schema/InstallationToken.json +31 -0
- package/dist/schema/KnownForgeKind.json +19 -0
- package/dist/schema/Label.json +22 -0
- package/dist/schema/MergeMethod.json +14 -0
- package/dist/schema/Milestone.json +40 -0
- package/dist/schema/Notification.json +498 -0
- package/dist/schema/NotificationReason.json +28 -0
- package/dist/schema/NotificationRef.json +60 -0
- package/dist/schema/NotificationSubject.json +376 -0
- package/dist/schema/PerKind.json +49 -0
- package/dist/schema/PullBranches.json +125 -0
- package/dist/schema/PushCommit.json +24 -0
- package/dist/schema/Reaction.json +148 -0
- package/dist/schema/ReactionContent.json +17 -0
- package/dist/schema/ReactionSummary.json +70 -0
- package/dist/schema/Release.json +286 -0
- package/dist/schema/ReleaseAsset.json +169 -0
- package/dist/schema/ReleaseAssetRef.json +138 -0
- package/dist/schema/ReleaseRef.json +107 -0
- package/dist/schema/Repo.json +354 -0
- package/dist/schema/RepoFeatures.json +35 -0
- package/dist/schema/RepoPermissions.json +35 -0
- package/dist/schema/RepoRef.json +77 -0
- package/dist/schema/RepoRole.json +15 -0
- package/dist/schema/RepoVisibility.json +12 -0
- package/dist/schema/Review.json +371 -0
- package/dist/schema/ReviewComment.json +280 -0
- package/dist/schema/ReviewCommentInput.json +34 -0
- package/dist/schema/ReviewRef.json +158 -0
- package/dist/schema/ReviewState.json +15 -0
- package/dist/schema/Reviewer.json +133 -0
- package/dist/schema/SecurityAlert.json +219 -0
- package/dist/schema/SecurityAlertKind.json +14 -0
- package/dist/schema/SecurityAlertRef.json +122 -0
- package/dist/schema/SecuritySeverity.json +14 -0
- package/dist/schema/SourceKind.json +12 -0
- package/dist/schema/SubscriptionState.json +12 -0
- package/dist/schema/Support.json +23 -0
- package/dist/schema/Tag.json +25 -0
- package/dist/schema/TextLimits.json +18 -0
- package/dist/schema/Thread.json +653 -0
- package/dist/schema/ThreadKind.json +14 -0
- package/dist/schema/ThreadRef.json +131 -0
- package/dist/schema/ThreadStack.json +146 -0
- package/dist/schema/ThreadState.json +13 -0
- package/dist/schema/TreeEntry.json +46 -0
- package/dist/schema/TreeEntryType.json +13 -0
- package/dist/schema/UpsertCommentResult.json +355 -0
- package/dist/schema/User.json +123 -0
- package/dist/schema/Webhook.json +188 -0
- package/dist/schema/WebhookDeliveryRecord.json +173 -0
- package/dist/schema/WebhookDeliveryRef.json +135 -0
- package/dist/schema/WebhookRef.json +105 -0
- package/dist/schema/index.d.mts +4 -0
- package/dist/schema/index.mjs +3219 -0
- package/dist/tangled/index.d.mts +2 -0
- package/dist/tangled/index.mjs +1 -0
- package/dist/tangled-ChdPmiv-.mjs +1570 -0
- package/dist/testing/index.d.mts +123 -0
- package/dist/testing/index.mjs +242 -0
- package/dist/webhooks-rn9-8lxT.mjs +70 -0
- package/package.json +115 -3
- package/dist/.gitkeep +0 -0
|
@@ -0,0 +1,649 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"anyOf": [
|
|
4
|
+
{
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "comment"
|
|
10
|
+
},
|
|
11
|
+
"comment": {
|
|
12
|
+
"$ref": "#/definitions/CommentRef"
|
|
13
|
+
},
|
|
14
|
+
"body": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"type"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"type": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"const": "review_comment"
|
|
28
|
+
},
|
|
29
|
+
"comment": {
|
|
30
|
+
"$ref": "#/definitions/CommentRef"
|
|
31
|
+
},
|
|
32
|
+
"body": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
"path": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"line": {
|
|
39
|
+
"type": "number"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"required": [
|
|
43
|
+
"type"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "object",
|
|
48
|
+
"properties": {
|
|
49
|
+
"type": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"const": "review"
|
|
52
|
+
},
|
|
53
|
+
"state": {
|
|
54
|
+
"$ref": "#/definitions/ReviewState"
|
|
55
|
+
},
|
|
56
|
+
"stateRaw": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"body": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": [
|
|
64
|
+
"type",
|
|
65
|
+
"state"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "object",
|
|
70
|
+
"properties": {
|
|
71
|
+
"type": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"const": "state_change"
|
|
74
|
+
},
|
|
75
|
+
"state": {
|
|
76
|
+
"$ref": "#/definitions/ThreadState"
|
|
77
|
+
},
|
|
78
|
+
"draft": {
|
|
79
|
+
"type": "boolean"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"required": [
|
|
83
|
+
"type"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"type": "object",
|
|
88
|
+
"properties": {
|
|
89
|
+
"type": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"const": "label"
|
|
92
|
+
},
|
|
93
|
+
"label": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": [
|
|
98
|
+
"type",
|
|
99
|
+
"label"
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"type": "object",
|
|
104
|
+
"properties": {
|
|
105
|
+
"type": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"const": "assignment"
|
|
108
|
+
},
|
|
109
|
+
"assignee": {
|
|
110
|
+
"$ref": "#/definitions/Actor"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"required": [
|
|
114
|
+
"type"
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"type": "object",
|
|
119
|
+
"properties": {
|
|
120
|
+
"type": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"const": "push"
|
|
123
|
+
},
|
|
124
|
+
"ref": {
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
"before": {
|
|
128
|
+
"type": "string"
|
|
129
|
+
},
|
|
130
|
+
"after": {
|
|
131
|
+
"type": "string"
|
|
132
|
+
},
|
|
133
|
+
"commitCount": {
|
|
134
|
+
"type": "number"
|
|
135
|
+
},
|
|
136
|
+
"forced": {
|
|
137
|
+
"type": "boolean"
|
|
138
|
+
},
|
|
139
|
+
"commits": {
|
|
140
|
+
"type": "array",
|
|
141
|
+
"items": {
|
|
142
|
+
"$ref": "#/definitions/PushCommit"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"required": [
|
|
147
|
+
"type",
|
|
148
|
+
"ref",
|
|
149
|
+
"commitCount",
|
|
150
|
+
"forced",
|
|
151
|
+
"commits"
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"type": "object",
|
|
156
|
+
"properties": {
|
|
157
|
+
"type": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"const": "ref"
|
|
160
|
+
},
|
|
161
|
+
"ref": {
|
|
162
|
+
"type": "string"
|
|
163
|
+
},
|
|
164
|
+
"refType": {
|
|
165
|
+
"type": "string"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"required": [
|
|
169
|
+
"type",
|
|
170
|
+
"ref",
|
|
171
|
+
"refType"
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"type": "object",
|
|
176
|
+
"properties": {
|
|
177
|
+
"type": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"const": "repo_renamed"
|
|
180
|
+
},
|
|
181
|
+
"from": {
|
|
182
|
+
"type": "string"
|
|
183
|
+
},
|
|
184
|
+
"to": {
|
|
185
|
+
"type": "string"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"required": [
|
|
189
|
+
"type",
|
|
190
|
+
"from",
|
|
191
|
+
"to"
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"type": "object",
|
|
196
|
+
"properties": {
|
|
197
|
+
"type": {
|
|
198
|
+
"type": "string",
|
|
199
|
+
"const": "repo_transferred"
|
|
200
|
+
},
|
|
201
|
+
"fromOwner": {
|
|
202
|
+
"type": "string"
|
|
203
|
+
},
|
|
204
|
+
"toOwner": {
|
|
205
|
+
"type": "string"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"required": [
|
|
209
|
+
"type"
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"type": "object",
|
|
214
|
+
"properties": {
|
|
215
|
+
"type": {
|
|
216
|
+
"type": "string",
|
|
217
|
+
"const": "repo_archived"
|
|
218
|
+
},
|
|
219
|
+
"archived": {
|
|
220
|
+
"type": "boolean"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"required": [
|
|
224
|
+
"type",
|
|
225
|
+
"archived"
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"type": "object",
|
|
230
|
+
"properties": {
|
|
231
|
+
"type": {
|
|
232
|
+
"type": "string",
|
|
233
|
+
"const": "installation"
|
|
234
|
+
},
|
|
235
|
+
"actionRaw": {
|
|
236
|
+
"type": "string"
|
|
237
|
+
},
|
|
238
|
+
"installationId": {
|
|
239
|
+
"type": "string"
|
|
240
|
+
},
|
|
241
|
+
"added": {
|
|
242
|
+
"type": "array",
|
|
243
|
+
"items": {
|
|
244
|
+
"$ref": "#/definitions/RepoRef"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"removed": {
|
|
248
|
+
"type": "array",
|
|
249
|
+
"items": {
|
|
250
|
+
"$ref": "#/definitions/RepoRef"
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"required": [
|
|
255
|
+
"type",
|
|
256
|
+
"actionRaw",
|
|
257
|
+
"added",
|
|
258
|
+
"removed"
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"type": "object",
|
|
263
|
+
"properties": {
|
|
264
|
+
"type": {
|
|
265
|
+
"type": "string",
|
|
266
|
+
"const": "membership"
|
|
267
|
+
},
|
|
268
|
+
"actionRaw": {
|
|
269
|
+
"type": "string"
|
|
270
|
+
},
|
|
271
|
+
"member": {
|
|
272
|
+
"$ref": "#/definitions/Actor"
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"required": [
|
|
276
|
+
"type",
|
|
277
|
+
"actionRaw"
|
|
278
|
+
]
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"type": "object",
|
|
282
|
+
"properties": {
|
|
283
|
+
"type": {
|
|
284
|
+
"type": "string",
|
|
285
|
+
"const": "release"
|
|
286
|
+
},
|
|
287
|
+
"release": {
|
|
288
|
+
"$ref": "#/definitions/ReleaseRef"
|
|
289
|
+
},
|
|
290
|
+
"name": {
|
|
291
|
+
"type": "string"
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"required": [
|
|
295
|
+
"type",
|
|
296
|
+
"release"
|
|
297
|
+
]
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"type": "object",
|
|
301
|
+
"properties": {
|
|
302
|
+
"type": {
|
|
303
|
+
"type": "string",
|
|
304
|
+
"const": "referenced"
|
|
305
|
+
},
|
|
306
|
+
"from": {
|
|
307
|
+
"anyOf": [
|
|
308
|
+
{
|
|
309
|
+
"$ref": "#/definitions/ThreadRef"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"$ref": "#/definitions/CommitRef"
|
|
313
|
+
}
|
|
314
|
+
]
|
|
315
|
+
},
|
|
316
|
+
"fromRepo": {
|
|
317
|
+
"$ref": "#/definitions/RepoRef"
|
|
318
|
+
},
|
|
319
|
+
"text": {
|
|
320
|
+
"type": "string"
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"required": [
|
|
324
|
+
"type"
|
|
325
|
+
]
|
|
326
|
+
}
|
|
327
|
+
],
|
|
328
|
+
"description": "Typed detail for an event. Discriminated by `type`.",
|
|
329
|
+
"x-forges-type": "EventDetail",
|
|
330
|
+
"definitions": {
|
|
331
|
+
"Actor": {
|
|
332
|
+
"type": "object",
|
|
333
|
+
"properties": {
|
|
334
|
+
"forge": {
|
|
335
|
+
"$ref": "#/definitions/ForgeKind"
|
|
336
|
+
},
|
|
337
|
+
"instance": {
|
|
338
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
339
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
340
|
+
},
|
|
341
|
+
"login": {
|
|
342
|
+
"type": "string"
|
|
343
|
+
},
|
|
344
|
+
"id": {
|
|
345
|
+
"type": "string"
|
|
346
|
+
},
|
|
347
|
+
"name": {
|
|
348
|
+
"type": "string"
|
|
349
|
+
},
|
|
350
|
+
"avatarUrl": {
|
|
351
|
+
"type": "string"
|
|
352
|
+
},
|
|
353
|
+
"url": {
|
|
354
|
+
"type": "string"
|
|
355
|
+
},
|
|
356
|
+
"typeRaw": {
|
|
357
|
+
"type": "string",
|
|
358
|
+
"description": "Forge-reported account type, retained verbatim for callers that classify further."
|
|
359
|
+
},
|
|
360
|
+
"isBotHint": {
|
|
361
|
+
"type": "boolean",
|
|
362
|
+
"description": "Hint derived from forge metadata that the actor is automation. Callers own the classification policy."
|
|
363
|
+
},
|
|
364
|
+
"app": {
|
|
365
|
+
"type": "object",
|
|
366
|
+
"properties": {
|
|
367
|
+
"slug": {
|
|
368
|
+
"type": "string"
|
|
369
|
+
},
|
|
370
|
+
"id": {
|
|
371
|
+
"type": "string"
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
"required": [
|
|
375
|
+
"slug"
|
|
376
|
+
],
|
|
377
|
+
"description": "The app behind a bot account, where the forge ties one to it (GitHub Apps' `slug[bot]` users)."
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
"required": [
|
|
381
|
+
"forge",
|
|
382
|
+
"id",
|
|
383
|
+
"instance",
|
|
384
|
+
"isBotHint",
|
|
385
|
+
"login"
|
|
386
|
+
],
|
|
387
|
+
"description": "An account: a user, an organisation or a bot.",
|
|
388
|
+
"x-forges-type": "Actor"
|
|
389
|
+
},
|
|
390
|
+
"CommentRef": {
|
|
391
|
+
"type": "object",
|
|
392
|
+
"properties": {
|
|
393
|
+
"forge": {
|
|
394
|
+
"$ref": "#/definitions/ForgeKind"
|
|
395
|
+
},
|
|
396
|
+
"instance": {
|
|
397
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
398
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
399
|
+
},
|
|
400
|
+
"thread": {
|
|
401
|
+
"$ref": "#/definitions/ThreadRef"
|
|
402
|
+
},
|
|
403
|
+
"id": {
|
|
404
|
+
"type": "string",
|
|
405
|
+
"description": "Forge-native comment id; an AT-URI on Tangled."
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
"required": [
|
|
409
|
+
"forge",
|
|
410
|
+
"id",
|
|
411
|
+
"instance",
|
|
412
|
+
"thread"
|
|
413
|
+
],
|
|
414
|
+
"description": "Reference to a comment on a thread.",
|
|
415
|
+
"x-forges-type": "CommentRef"
|
|
416
|
+
},
|
|
417
|
+
"CommitRef": {
|
|
418
|
+
"type": "object",
|
|
419
|
+
"properties": {
|
|
420
|
+
"forge": {
|
|
421
|
+
"$ref": "#/definitions/ForgeKind"
|
|
422
|
+
},
|
|
423
|
+
"instance": {
|
|
424
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
425
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
426
|
+
},
|
|
427
|
+
"repo": {
|
|
428
|
+
"$ref": "#/definitions/RepoRef"
|
|
429
|
+
},
|
|
430
|
+
"sha": {
|
|
431
|
+
"type": "string",
|
|
432
|
+
"description": "The full sha of the commit."
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
"required": [
|
|
436
|
+
"forge",
|
|
437
|
+
"instance",
|
|
438
|
+
"repo",
|
|
439
|
+
"sha"
|
|
440
|
+
],
|
|
441
|
+
"description": "A commit addressed by its full sha.",
|
|
442
|
+
"x-forges-type": "CommitRef"
|
|
443
|
+
},
|
|
444
|
+
"ForgeInstance": {
|
|
445
|
+
"type": "string",
|
|
446
|
+
"description": "Host of a single forge deployment, for example `github.com` or `codeberg.org`.",
|
|
447
|
+
"x-forges-type": "ForgeInstance"
|
|
448
|
+
},
|
|
449
|
+
"ForgeKind": {
|
|
450
|
+
"anyOf": [
|
|
451
|
+
{
|
|
452
|
+
"$ref": "#/definitions/KnownForgeKind"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"type": "string"
|
|
456
|
+
}
|
|
457
|
+
],
|
|
458
|
+
"description": "Identifier of a forge implementation. Unknown forges are permitted so that third-party providers can be registered without a core release.",
|
|
459
|
+
"x-forges-type": "ForgeKind"
|
|
460
|
+
},
|
|
461
|
+
"KnownForgeKind": {
|
|
462
|
+
"type": "string",
|
|
463
|
+
"enum": [
|
|
464
|
+
"github",
|
|
465
|
+
"gitlab",
|
|
466
|
+
"bitbucket",
|
|
467
|
+
"forgejo",
|
|
468
|
+
"gitea",
|
|
469
|
+
"tangled",
|
|
470
|
+
"gitee",
|
|
471
|
+
"azure-devops",
|
|
472
|
+
"cursor-origin",
|
|
473
|
+
"pushin"
|
|
474
|
+
],
|
|
475
|
+
"description": "The forges this package ships providers for.",
|
|
476
|
+
"x-forges-type": "KnownForgeKind"
|
|
477
|
+
},
|
|
478
|
+
"PushCommit": {
|
|
479
|
+
"type": "object",
|
|
480
|
+
"properties": {
|
|
481
|
+
"sha": {
|
|
482
|
+
"type": "string"
|
|
483
|
+
},
|
|
484
|
+
"message": {
|
|
485
|
+
"type": "string"
|
|
486
|
+
},
|
|
487
|
+
"author": {
|
|
488
|
+
"type": "string"
|
|
489
|
+
},
|
|
490
|
+
"url": {
|
|
491
|
+
"type": "string"
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
"required": [
|
|
495
|
+
"sha"
|
|
496
|
+
],
|
|
497
|
+
"description": "A commit as a push delivery reports it.",
|
|
498
|
+
"x-forges-type": "PushCommit"
|
|
499
|
+
},
|
|
500
|
+
"ReleaseRef": {
|
|
501
|
+
"type": "object",
|
|
502
|
+
"properties": {
|
|
503
|
+
"forge": {
|
|
504
|
+
"$ref": "#/definitions/ForgeKind"
|
|
505
|
+
},
|
|
506
|
+
"instance": {
|
|
507
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
508
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
509
|
+
},
|
|
510
|
+
"repo": {
|
|
511
|
+
"$ref": "#/definitions/RepoRef"
|
|
512
|
+
},
|
|
513
|
+
"id": {
|
|
514
|
+
"type": "string",
|
|
515
|
+
"description": "Forge-native release id; the tag name on forges that key releases by tag."
|
|
516
|
+
},
|
|
517
|
+
"tag": {
|
|
518
|
+
"type": "string"
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
"required": [
|
|
522
|
+
"forge",
|
|
523
|
+
"id",
|
|
524
|
+
"instance",
|
|
525
|
+
"repo"
|
|
526
|
+
],
|
|
527
|
+
"description": "A release, as a notification subject or event target.",
|
|
528
|
+
"x-forges-type": "ReleaseRef"
|
|
529
|
+
},
|
|
530
|
+
"RepoRef": {
|
|
531
|
+
"type": "object",
|
|
532
|
+
"properties": {
|
|
533
|
+
"forge": {
|
|
534
|
+
"$ref": "#/definitions/ForgeKind"
|
|
535
|
+
},
|
|
536
|
+
"instance": {
|
|
537
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
538
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
539
|
+
},
|
|
540
|
+
"owner": {
|
|
541
|
+
"type": "string",
|
|
542
|
+
"description": "Full namespace path. On forges with nested groups (GitLab) this contains slashes, for example `acme/platform`; `name` never does."
|
|
543
|
+
},
|
|
544
|
+
"name": {
|
|
545
|
+
"type": "string",
|
|
546
|
+
"description": "Repository name. Empty for namespace-scoped refs."
|
|
547
|
+
},
|
|
548
|
+
"kind": {
|
|
549
|
+
"type": "string",
|
|
550
|
+
"enum": [
|
|
551
|
+
"repo",
|
|
552
|
+
"namespace"
|
|
553
|
+
],
|
|
554
|
+
"description": "`'namespace'` for subjects that belong to a group rather than a repository (GitLab epics). Absent means a repository."
|
|
555
|
+
},
|
|
556
|
+
"externalId": {
|
|
557
|
+
"type": "string",
|
|
558
|
+
"description": "Stable forge-native identifier that survives renames and transfers: a GitHub, Forgejo or Gitea numeric id, a GitLab project or group id, a Bitbucket UUID or a Tangled repo DID. {@link repoKey} prefers it over `owner` and `name`."
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
"required": [
|
|
562
|
+
"forge",
|
|
563
|
+
"instance",
|
|
564
|
+
"name",
|
|
565
|
+
"owner"
|
|
566
|
+
],
|
|
567
|
+
"description": "Addresses a repository by its forge, instance, owner and name.",
|
|
568
|
+
"x-forges-type": "RepoRef"
|
|
569
|
+
},
|
|
570
|
+
"ReviewState": {
|
|
571
|
+
"type": "string",
|
|
572
|
+
"enum": [
|
|
573
|
+
"approved",
|
|
574
|
+
"changes_requested",
|
|
575
|
+
"commented",
|
|
576
|
+
"pending",
|
|
577
|
+
"dismissed",
|
|
578
|
+
"unknown"
|
|
579
|
+
],
|
|
580
|
+
"description": "What a review or a reviewer says about a pull request. `unknown` is a state that the model does not name.",
|
|
581
|
+
"x-forges-type": "ReviewState"
|
|
582
|
+
},
|
|
583
|
+
"ThreadKind": {
|
|
584
|
+
"type": "string",
|
|
585
|
+
"enum": [
|
|
586
|
+
"issue",
|
|
587
|
+
"pull_request",
|
|
588
|
+
"discussion",
|
|
589
|
+
"commit",
|
|
590
|
+
"other"
|
|
591
|
+
],
|
|
592
|
+
"description": "Kind of thread. `'other'` holds forge-specific subjects with no shared kind (check suites, epics); `ThreadRef.typeRaw` names them.",
|
|
593
|
+
"x-forges-type": "ThreadKind"
|
|
594
|
+
},
|
|
595
|
+
"ThreadRef": {
|
|
596
|
+
"type": "object",
|
|
597
|
+
"properties": {
|
|
598
|
+
"forge": {
|
|
599
|
+
"$ref": "#/definitions/ForgeKind"
|
|
600
|
+
},
|
|
601
|
+
"instance": {
|
|
602
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
603
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
604
|
+
},
|
|
605
|
+
"repo": {
|
|
606
|
+
"$ref": "#/definitions/RepoRef"
|
|
607
|
+
},
|
|
608
|
+
"kind": {
|
|
609
|
+
"$ref": "#/definitions/ThreadKind"
|
|
610
|
+
},
|
|
611
|
+
"typeRaw": {
|
|
612
|
+
"type": "string",
|
|
613
|
+
"description": "Forge-native subject type, for example `PullRequest` or `MergeRequest`."
|
|
614
|
+
},
|
|
615
|
+
"number": {
|
|
616
|
+
"type": "string",
|
|
617
|
+
"description": "Per-repo thread number, the commit sha for `kind: 'commit'`, or the forge-native id for `kind: 'other'`. Absent when the forge did not identify the thread; such a ref cannot be fetched or keyed until enriched."
|
|
618
|
+
},
|
|
619
|
+
"displayNumber": {
|
|
620
|
+
"type": "string",
|
|
621
|
+
"description": "Human-facing per-repo number, when it differs from `number`. Tangled identifies threads by AT-URI but shows numbers in its UI and webhooks."
|
|
622
|
+
},
|
|
623
|
+
"externalId": {
|
|
624
|
+
"type": "string",
|
|
625
|
+
"description": "Globally unique forge-native identifier, where one exists: a GitHub `node_id`, a GitLab global id, or an atproto record URI."
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
"required": [
|
|
629
|
+
"forge",
|
|
630
|
+
"instance",
|
|
631
|
+
"kind",
|
|
632
|
+
"repo"
|
|
633
|
+
],
|
|
634
|
+
"description": "Reference to a thread. A thread `number` is unique only within its repo, so the repo is always carried alongside it.",
|
|
635
|
+
"x-forges-type": "ThreadRef"
|
|
636
|
+
},
|
|
637
|
+
"ThreadState": {
|
|
638
|
+
"type": "string",
|
|
639
|
+
"enum": [
|
|
640
|
+
"open",
|
|
641
|
+
"closed",
|
|
642
|
+
"merged",
|
|
643
|
+
"unknown"
|
|
644
|
+
],
|
|
645
|
+
"description": "Thread state. `'unknown'` is distinct from any real state and signals that the value was not present in the payload, so the caller may enrich it with `threads.get()`. Draft status is orthogonal; see `Thread.isDraft`.",
|
|
646
|
+
"x-forges-type": "ThreadState"
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "string",
|
|
4
|
+
"enum": [
|
|
5
|
+
"comment",
|
|
6
|
+
"review",
|
|
7
|
+
"review_comment",
|
|
8
|
+
"commit",
|
|
9
|
+
"label",
|
|
10
|
+
"state_change",
|
|
11
|
+
"assignment",
|
|
12
|
+
"mention",
|
|
13
|
+
"referenced",
|
|
14
|
+
"reaction",
|
|
15
|
+
"push",
|
|
16
|
+
"ref",
|
|
17
|
+
"repo",
|
|
18
|
+
"installation",
|
|
19
|
+
"membership",
|
|
20
|
+
"release",
|
|
21
|
+
"other"
|
|
22
|
+
],
|
|
23
|
+
"description": "What an event is about.",
|
|
24
|
+
"x-forges-type": "EventKind",
|
|
25
|
+
"definitions": {}
|
|
26
|
+
}
|