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,376 @@
|
|
|
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": "thread"
|
|
10
|
+
},
|
|
11
|
+
"thread": {
|
|
12
|
+
"$ref": "#/definitions/ThreadRef"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": [
|
|
16
|
+
"type",
|
|
17
|
+
"thread"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": {
|
|
23
|
+
"type": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"const": "repo"
|
|
26
|
+
},
|
|
27
|
+
"repo": {
|
|
28
|
+
"$ref": "#/definitions/RepoRef"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"required": [
|
|
32
|
+
"type",
|
|
33
|
+
"repo"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"type": "object",
|
|
38
|
+
"properties": {
|
|
39
|
+
"type": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"const": "actor"
|
|
42
|
+
},
|
|
43
|
+
"actor": {
|
|
44
|
+
"$ref": "#/definitions/Actor"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"required": [
|
|
48
|
+
"type",
|
|
49
|
+
"actor"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"type": "object",
|
|
54
|
+
"properties": {
|
|
55
|
+
"type": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"const": "release"
|
|
58
|
+
},
|
|
59
|
+
"release": {
|
|
60
|
+
"$ref": "#/definitions/ReleaseRef"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": [
|
|
64
|
+
"type",
|
|
65
|
+
"release"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "object",
|
|
70
|
+
"properties": {
|
|
71
|
+
"type": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"const": "security_alert"
|
|
74
|
+
},
|
|
75
|
+
"alert": {
|
|
76
|
+
"$ref": "#/definitions/SecurityAlertRef"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"required": [
|
|
80
|
+
"type",
|
|
81
|
+
"alert"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"type": "object",
|
|
86
|
+
"properties": {
|
|
87
|
+
"type": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"const": "other"
|
|
90
|
+
},
|
|
91
|
+
"typeRaw": {
|
|
92
|
+
"type": "string"
|
|
93
|
+
},
|
|
94
|
+
"repo": {
|
|
95
|
+
"$ref": "#/definitions/RepoRef"
|
|
96
|
+
},
|
|
97
|
+
"id": {
|
|
98
|
+
"type": "string"
|
|
99
|
+
},
|
|
100
|
+
"url": {
|
|
101
|
+
"type": "string"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"required": [
|
|
105
|
+
"type",
|
|
106
|
+
"typeRaw"
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"description": "What a notification is about. Not every notification concerns a thread.",
|
|
111
|
+
"x-forges-type": "NotificationSubject",
|
|
112
|
+
"definitions": {
|
|
113
|
+
"Actor": {
|
|
114
|
+
"type": "object",
|
|
115
|
+
"properties": {
|
|
116
|
+
"forge": {
|
|
117
|
+
"$ref": "#/definitions/ForgeKind"
|
|
118
|
+
},
|
|
119
|
+
"instance": {
|
|
120
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
121
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
122
|
+
},
|
|
123
|
+
"login": {
|
|
124
|
+
"type": "string"
|
|
125
|
+
},
|
|
126
|
+
"id": {
|
|
127
|
+
"type": "string"
|
|
128
|
+
},
|
|
129
|
+
"name": {
|
|
130
|
+
"type": "string"
|
|
131
|
+
},
|
|
132
|
+
"avatarUrl": {
|
|
133
|
+
"type": "string"
|
|
134
|
+
},
|
|
135
|
+
"url": {
|
|
136
|
+
"type": "string"
|
|
137
|
+
},
|
|
138
|
+
"typeRaw": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"description": "Forge-reported account type, retained verbatim for callers that classify further."
|
|
141
|
+
},
|
|
142
|
+
"isBotHint": {
|
|
143
|
+
"type": "boolean",
|
|
144
|
+
"description": "Hint derived from forge metadata that the actor is automation. Callers own the classification policy."
|
|
145
|
+
},
|
|
146
|
+
"app": {
|
|
147
|
+
"type": "object",
|
|
148
|
+
"properties": {
|
|
149
|
+
"slug": {
|
|
150
|
+
"type": "string"
|
|
151
|
+
},
|
|
152
|
+
"id": {
|
|
153
|
+
"type": "string"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"required": [
|
|
157
|
+
"slug"
|
|
158
|
+
],
|
|
159
|
+
"description": "The app behind a bot account, where the forge ties one to it (GitHub Apps' `slug[bot]` users)."
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"required": [
|
|
163
|
+
"forge",
|
|
164
|
+
"id",
|
|
165
|
+
"instance",
|
|
166
|
+
"isBotHint",
|
|
167
|
+
"login"
|
|
168
|
+
],
|
|
169
|
+
"description": "An account: a user, an organisation or a bot.",
|
|
170
|
+
"x-forges-type": "Actor"
|
|
171
|
+
},
|
|
172
|
+
"ForgeInstance": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"description": "Host of a single forge deployment, for example `github.com` or `codeberg.org`.",
|
|
175
|
+
"x-forges-type": "ForgeInstance"
|
|
176
|
+
},
|
|
177
|
+
"ForgeKind": {
|
|
178
|
+
"anyOf": [
|
|
179
|
+
{
|
|
180
|
+
"$ref": "#/definitions/KnownForgeKind"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"type": "string"
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
"description": "Identifier of a forge implementation. Unknown forges are permitted so that third-party providers can be registered without a core release.",
|
|
187
|
+
"x-forges-type": "ForgeKind"
|
|
188
|
+
},
|
|
189
|
+
"KnownForgeKind": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"enum": [
|
|
192
|
+
"github",
|
|
193
|
+
"gitlab",
|
|
194
|
+
"bitbucket",
|
|
195
|
+
"forgejo",
|
|
196
|
+
"gitea",
|
|
197
|
+
"tangled",
|
|
198
|
+
"gitee",
|
|
199
|
+
"azure-devops",
|
|
200
|
+
"cursor-origin",
|
|
201
|
+
"pushin"
|
|
202
|
+
],
|
|
203
|
+
"description": "The forges this package ships providers for.",
|
|
204
|
+
"x-forges-type": "KnownForgeKind"
|
|
205
|
+
},
|
|
206
|
+
"ReleaseRef": {
|
|
207
|
+
"type": "object",
|
|
208
|
+
"properties": {
|
|
209
|
+
"forge": {
|
|
210
|
+
"$ref": "#/definitions/ForgeKind"
|
|
211
|
+
},
|
|
212
|
+
"instance": {
|
|
213
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
214
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
215
|
+
},
|
|
216
|
+
"repo": {
|
|
217
|
+
"$ref": "#/definitions/RepoRef"
|
|
218
|
+
},
|
|
219
|
+
"id": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"description": "Forge-native release id; the tag name on forges that key releases by tag."
|
|
222
|
+
},
|
|
223
|
+
"tag": {
|
|
224
|
+
"type": "string"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"required": [
|
|
228
|
+
"forge",
|
|
229
|
+
"id",
|
|
230
|
+
"instance",
|
|
231
|
+
"repo"
|
|
232
|
+
],
|
|
233
|
+
"description": "A release, as a notification subject or event target.",
|
|
234
|
+
"x-forges-type": "ReleaseRef"
|
|
235
|
+
},
|
|
236
|
+
"RepoRef": {
|
|
237
|
+
"type": "object",
|
|
238
|
+
"properties": {
|
|
239
|
+
"forge": {
|
|
240
|
+
"$ref": "#/definitions/ForgeKind"
|
|
241
|
+
},
|
|
242
|
+
"instance": {
|
|
243
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
244
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
245
|
+
},
|
|
246
|
+
"owner": {
|
|
247
|
+
"type": "string",
|
|
248
|
+
"description": "Full namespace path. On forges with nested groups (GitLab) this contains slashes, for example `acme/platform`; `name` never does."
|
|
249
|
+
},
|
|
250
|
+
"name": {
|
|
251
|
+
"type": "string",
|
|
252
|
+
"description": "Repository name. Empty for namespace-scoped refs."
|
|
253
|
+
},
|
|
254
|
+
"kind": {
|
|
255
|
+
"type": "string",
|
|
256
|
+
"enum": [
|
|
257
|
+
"repo",
|
|
258
|
+
"namespace"
|
|
259
|
+
],
|
|
260
|
+
"description": "`'namespace'` for subjects that belong to a group rather than a repository (GitLab epics). Absent means a repository."
|
|
261
|
+
},
|
|
262
|
+
"externalId": {
|
|
263
|
+
"type": "string",
|
|
264
|
+
"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`."
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"required": [
|
|
268
|
+
"forge",
|
|
269
|
+
"instance",
|
|
270
|
+
"name",
|
|
271
|
+
"owner"
|
|
272
|
+
],
|
|
273
|
+
"description": "Addresses a repository by its forge, instance, owner and name.",
|
|
274
|
+
"x-forges-type": "RepoRef"
|
|
275
|
+
},
|
|
276
|
+
"SecurityAlertKind": {
|
|
277
|
+
"type": "string",
|
|
278
|
+
"enum": [
|
|
279
|
+
"dependency",
|
|
280
|
+
"code_scanning",
|
|
281
|
+
"secret",
|
|
282
|
+
"advisory",
|
|
283
|
+
"other"
|
|
284
|
+
],
|
|
285
|
+
"description": "What an alert is about. `other` is a kind that the model does not name.",
|
|
286
|
+
"x-forges-type": "SecurityAlertKind"
|
|
287
|
+
},
|
|
288
|
+
"SecurityAlertRef": {
|
|
289
|
+
"type": "object",
|
|
290
|
+
"properties": {
|
|
291
|
+
"forge": {
|
|
292
|
+
"$ref": "#/definitions/ForgeKind"
|
|
293
|
+
},
|
|
294
|
+
"instance": {
|
|
295
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
296
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
297
|
+
},
|
|
298
|
+
"repo": {
|
|
299
|
+
"$ref": "#/definitions/RepoRef"
|
|
300
|
+
},
|
|
301
|
+
"id": {
|
|
302
|
+
"type": "string",
|
|
303
|
+
"description": "Forge-native alert id. GitHub numbers each alert kind separately, so `kind` is needed to address one."
|
|
304
|
+
},
|
|
305
|
+
"kind": {
|
|
306
|
+
"$ref": "#/definitions/SecurityAlertKind"
|
|
307
|
+
},
|
|
308
|
+
"severityRaw": {
|
|
309
|
+
"type": "string"
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"required": [
|
|
313
|
+
"forge",
|
|
314
|
+
"id",
|
|
315
|
+
"instance",
|
|
316
|
+
"repo"
|
|
317
|
+
],
|
|
318
|
+
"description": "A security alert: a vulnerable dependency, a code scanning result, a leaked secret or an advisory.",
|
|
319
|
+
"x-forges-type": "SecurityAlertRef"
|
|
320
|
+
},
|
|
321
|
+
"ThreadKind": {
|
|
322
|
+
"type": "string",
|
|
323
|
+
"enum": [
|
|
324
|
+
"issue",
|
|
325
|
+
"pull_request",
|
|
326
|
+
"discussion",
|
|
327
|
+
"commit",
|
|
328
|
+
"other"
|
|
329
|
+
],
|
|
330
|
+
"description": "Kind of thread. `'other'` holds forge-specific subjects with no shared kind (check suites, epics); `ThreadRef.typeRaw` names them.",
|
|
331
|
+
"x-forges-type": "ThreadKind"
|
|
332
|
+
},
|
|
333
|
+
"ThreadRef": {
|
|
334
|
+
"type": "object",
|
|
335
|
+
"properties": {
|
|
336
|
+
"forge": {
|
|
337
|
+
"$ref": "#/definitions/ForgeKind"
|
|
338
|
+
},
|
|
339
|
+
"instance": {
|
|
340
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
341
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
342
|
+
},
|
|
343
|
+
"repo": {
|
|
344
|
+
"$ref": "#/definitions/RepoRef"
|
|
345
|
+
},
|
|
346
|
+
"kind": {
|
|
347
|
+
"$ref": "#/definitions/ThreadKind"
|
|
348
|
+
},
|
|
349
|
+
"typeRaw": {
|
|
350
|
+
"type": "string",
|
|
351
|
+
"description": "Forge-native subject type, for example `PullRequest` or `MergeRequest`."
|
|
352
|
+
},
|
|
353
|
+
"number": {
|
|
354
|
+
"type": "string",
|
|
355
|
+
"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."
|
|
356
|
+
},
|
|
357
|
+
"displayNumber": {
|
|
358
|
+
"type": "string",
|
|
359
|
+
"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."
|
|
360
|
+
},
|
|
361
|
+
"externalId": {
|
|
362
|
+
"type": "string",
|
|
363
|
+
"description": "Globally unique forge-native identifier, where one exists: a GitHub `node_id`, a GitLab global id, or an atproto record URI."
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
"required": [
|
|
367
|
+
"forge",
|
|
368
|
+
"instance",
|
|
369
|
+
"kind",
|
|
370
|
+
"repo"
|
|
371
|
+
],
|
|
372
|
+
"description": "Reference to a thread. A thread `number` is unique only within its repo, so the repo is always carried alongside it.",
|
|
373
|
+
"x-forges-type": "ThreadRef"
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"issue": {
|
|
6
|
+
"$ref": "#/definitions/Support"
|
|
7
|
+
},
|
|
8
|
+
"pull_request": {
|
|
9
|
+
"$ref": "#/definitions/Support"
|
|
10
|
+
},
|
|
11
|
+
"discussion": {
|
|
12
|
+
"$ref": "#/definitions/Support"
|
|
13
|
+
},
|
|
14
|
+
"commit": {
|
|
15
|
+
"$ref": "#/definitions/Support"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"issue",
|
|
20
|
+
"pull_request",
|
|
21
|
+
"discussion",
|
|
22
|
+
"commit"
|
|
23
|
+
],
|
|
24
|
+
"description": "Per-thread-kind support. `'other'` subjects have no verbs, so they have no entry.",
|
|
25
|
+
"x-forges-type": "PerKind",
|
|
26
|
+
"definitions": {
|
|
27
|
+
"Support": {
|
|
28
|
+
"anyOf": [
|
|
29
|
+
{
|
|
30
|
+
"type": "boolean"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"type": "string",
|
|
34
|
+
"const": "emulated"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"type": "string",
|
|
38
|
+
"const": "experimental"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"type": "string",
|
|
42
|
+
"const": "unverified"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"description": "Capability flag. Every value other than `false` means the operation is available:\n\n- `true`: native, and verified against the forge's responses.\n- `'experimental'`: native and verified, but built on an API the forge marks unstable, so it can change.\n- `'emulated'`: composed from other calls, so the result is approximate.\n- `'unverified'`: implemented, but not yet verified against the forge's responses, so it may not work.",
|
|
46
|
+
"x-forges-type": "Support"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"head": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"ref": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"sha": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"repo": {
|
|
15
|
+
"$ref": "#/definitions/RepoRef",
|
|
16
|
+
"description": "The repository that holds the head branch, which differs for a fork."
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"required": [
|
|
20
|
+
"ref"
|
|
21
|
+
],
|
|
22
|
+
"description": "`sha` is absent on forges where a pull is a patch rather than a branch (Tangled)."
|
|
23
|
+
},
|
|
24
|
+
"base": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"ref": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"sha": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"required": [
|
|
35
|
+
"ref"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"mergeCommitSha": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "The merge commit, once the pull request is merged."
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": [
|
|
44
|
+
"head",
|
|
45
|
+
"base"
|
|
46
|
+
],
|
|
47
|
+
"description": "The branches of a pull request.",
|
|
48
|
+
"x-forges-type": "PullBranches",
|
|
49
|
+
"definitions": {
|
|
50
|
+
"ForgeInstance": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"description": "Host of a single forge deployment, for example `github.com` or `codeberg.org`.",
|
|
53
|
+
"x-forges-type": "ForgeInstance"
|
|
54
|
+
},
|
|
55
|
+
"ForgeKind": {
|
|
56
|
+
"anyOf": [
|
|
57
|
+
{
|
|
58
|
+
"$ref": "#/definitions/KnownForgeKind"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"type": "string"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"description": "Identifier of a forge implementation. Unknown forges are permitted so that third-party providers can be registered without a core release.",
|
|
65
|
+
"x-forges-type": "ForgeKind"
|
|
66
|
+
},
|
|
67
|
+
"KnownForgeKind": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"enum": [
|
|
70
|
+
"github",
|
|
71
|
+
"gitlab",
|
|
72
|
+
"bitbucket",
|
|
73
|
+
"forgejo",
|
|
74
|
+
"gitea",
|
|
75
|
+
"tangled",
|
|
76
|
+
"gitee",
|
|
77
|
+
"azure-devops",
|
|
78
|
+
"cursor-origin",
|
|
79
|
+
"pushin"
|
|
80
|
+
],
|
|
81
|
+
"description": "The forges this package ships providers for.",
|
|
82
|
+
"x-forges-type": "KnownForgeKind"
|
|
83
|
+
},
|
|
84
|
+
"RepoRef": {
|
|
85
|
+
"type": "object",
|
|
86
|
+
"properties": {
|
|
87
|
+
"forge": {
|
|
88
|
+
"$ref": "#/definitions/ForgeKind"
|
|
89
|
+
},
|
|
90
|
+
"instance": {
|
|
91
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
92
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
93
|
+
},
|
|
94
|
+
"owner": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"description": "Full namespace path. On forges with nested groups (GitLab) this contains slashes, for example `acme/platform`; `name` never does."
|
|
97
|
+
},
|
|
98
|
+
"name": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"description": "Repository name. Empty for namespace-scoped refs."
|
|
101
|
+
},
|
|
102
|
+
"kind": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"enum": [
|
|
105
|
+
"repo",
|
|
106
|
+
"namespace"
|
|
107
|
+
],
|
|
108
|
+
"description": "`'namespace'` for subjects that belong to a group rather than a repository (GitLab epics). Absent means a repository."
|
|
109
|
+
},
|
|
110
|
+
"externalId": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"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`."
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"required": [
|
|
116
|
+
"forge",
|
|
117
|
+
"instance",
|
|
118
|
+
"name",
|
|
119
|
+
"owner"
|
|
120
|
+
],
|
|
121
|
+
"description": "Addresses a repository by its forge, instance, owner and name.",
|
|
122
|
+
"x-forges-type": "RepoRef"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"sha": {
|
|
6
|
+
"type": "string"
|
|
7
|
+
},
|
|
8
|
+
"message": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"author": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"url": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"sha"
|
|
20
|
+
],
|
|
21
|
+
"description": "A commit as a push delivery reports it.",
|
|
22
|
+
"x-forges-type": "PushCommit",
|
|
23
|
+
"definitions": {}
|
|
24
|
+
}
|