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,307 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"ref": {
|
|
6
|
+
"$ref": "#/definitions/CommitRef"
|
|
7
|
+
},
|
|
8
|
+
"sha": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The full sha."
|
|
11
|
+
},
|
|
12
|
+
"message": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"author": {
|
|
16
|
+
"$ref": "#/definitions/CommitSignature",
|
|
17
|
+
"description": "Who wrote the change."
|
|
18
|
+
},
|
|
19
|
+
"committer": {
|
|
20
|
+
"$ref": "#/definitions/CommitSignature",
|
|
21
|
+
"description": "Who recorded the change."
|
|
22
|
+
},
|
|
23
|
+
"parents": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"items": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"url": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"stats": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"properties": {
|
|
35
|
+
"additions": {
|
|
36
|
+
"type": "number"
|
|
37
|
+
},
|
|
38
|
+
"deletions": {
|
|
39
|
+
"type": "number"
|
|
40
|
+
},
|
|
41
|
+
"total": {
|
|
42
|
+
"type": "number"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"additions",
|
|
47
|
+
"deletions"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"files": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"items": {
|
|
53
|
+
"$ref": "#/definitions/ChangedFile"
|
|
54
|
+
},
|
|
55
|
+
"description": "Present on `contents.commit`; absent from listings."
|
|
56
|
+
},
|
|
57
|
+
"raw": {}
|
|
58
|
+
},
|
|
59
|
+
"required": [
|
|
60
|
+
"ref",
|
|
61
|
+
"sha",
|
|
62
|
+
"message",
|
|
63
|
+
"parents",
|
|
64
|
+
"raw"
|
|
65
|
+
],
|
|
66
|
+
"description": "A commit.",
|
|
67
|
+
"x-forges-type": "Commit",
|
|
68
|
+
"definitions": {
|
|
69
|
+
"Actor": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"properties": {
|
|
72
|
+
"forge": {
|
|
73
|
+
"$ref": "#/definitions/ForgeKind"
|
|
74
|
+
},
|
|
75
|
+
"instance": {
|
|
76
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
77
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
78
|
+
},
|
|
79
|
+
"login": {
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
"id": {
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
"name": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
},
|
|
88
|
+
"avatarUrl": {
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
"url": {
|
|
92
|
+
"type": "string"
|
|
93
|
+
},
|
|
94
|
+
"typeRaw": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"description": "Forge-reported account type, retained verbatim for callers that classify further."
|
|
97
|
+
},
|
|
98
|
+
"isBotHint": {
|
|
99
|
+
"type": "boolean",
|
|
100
|
+
"description": "Hint derived from forge metadata that the actor is automation. Callers own the classification policy."
|
|
101
|
+
},
|
|
102
|
+
"app": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"properties": {
|
|
105
|
+
"slug": {
|
|
106
|
+
"type": "string"
|
|
107
|
+
},
|
|
108
|
+
"id": {
|
|
109
|
+
"type": "string"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"required": [
|
|
113
|
+
"slug"
|
|
114
|
+
],
|
|
115
|
+
"description": "The app behind a bot account, where the forge ties one to it (GitHub Apps' `slug[bot]` users)."
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"required": [
|
|
119
|
+
"forge",
|
|
120
|
+
"id",
|
|
121
|
+
"instance",
|
|
122
|
+
"isBotHint",
|
|
123
|
+
"login"
|
|
124
|
+
],
|
|
125
|
+
"description": "An account: a user, an organisation or a bot.",
|
|
126
|
+
"x-forges-type": "Actor"
|
|
127
|
+
},
|
|
128
|
+
"ChangedFile": {
|
|
129
|
+
"type": "object",
|
|
130
|
+
"properties": {
|
|
131
|
+
"path": {
|
|
132
|
+
"type": "string"
|
|
133
|
+
},
|
|
134
|
+
"previousPath": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"description": "Path before a rename or copy."
|
|
137
|
+
},
|
|
138
|
+
"status": {
|
|
139
|
+
"$ref": "#/definitions/FileStatus"
|
|
140
|
+
},
|
|
141
|
+
"statusRaw": {
|
|
142
|
+
"type": "string"
|
|
143
|
+
},
|
|
144
|
+
"additions": {
|
|
145
|
+
"type": "number"
|
|
146
|
+
},
|
|
147
|
+
"deletions": {
|
|
148
|
+
"type": "number"
|
|
149
|
+
},
|
|
150
|
+
"patch": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"description": "Unified diff for the file, where the forge returns one inline."
|
|
153
|
+
},
|
|
154
|
+
"sha": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"description": "Blob sha after the change."
|
|
157
|
+
},
|
|
158
|
+
"isBinary": {
|
|
159
|
+
"type": "boolean",
|
|
160
|
+
"description": "The file is binary, so it has no patch."
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"required": [
|
|
164
|
+
"path",
|
|
165
|
+
"status"
|
|
166
|
+
],
|
|
167
|
+
"description": "A file that a commit or pull request changed.",
|
|
168
|
+
"x-forges-type": "ChangedFile"
|
|
169
|
+
},
|
|
170
|
+
"CommitRef": {
|
|
171
|
+
"type": "object",
|
|
172
|
+
"properties": {
|
|
173
|
+
"forge": {
|
|
174
|
+
"$ref": "#/definitions/ForgeKind"
|
|
175
|
+
},
|
|
176
|
+
"instance": {
|
|
177
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
178
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
179
|
+
},
|
|
180
|
+
"repo": {
|
|
181
|
+
"$ref": "#/definitions/RepoRef"
|
|
182
|
+
},
|
|
183
|
+
"sha": {
|
|
184
|
+
"type": "string",
|
|
185
|
+
"description": "The full sha of the commit."
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"required": [
|
|
189
|
+
"forge",
|
|
190
|
+
"instance",
|
|
191
|
+
"repo",
|
|
192
|
+
"sha"
|
|
193
|
+
],
|
|
194
|
+
"description": "A commit addressed by its full sha.",
|
|
195
|
+
"x-forges-type": "CommitRef"
|
|
196
|
+
},
|
|
197
|
+
"CommitSignature": {
|
|
198
|
+
"type": "object",
|
|
199
|
+
"properties": {
|
|
200
|
+
"actor": {
|
|
201
|
+
"$ref": "#/definitions/Actor",
|
|
202
|
+
"description": "The account, where the forge can match it."
|
|
203
|
+
},
|
|
204
|
+
"name": {
|
|
205
|
+
"type": "string"
|
|
206
|
+
},
|
|
207
|
+
"email": {
|
|
208
|
+
"type": "string"
|
|
209
|
+
},
|
|
210
|
+
"date": {
|
|
211
|
+
"type": "string",
|
|
212
|
+
"format": "date-time",
|
|
213
|
+
"description": "When the commit was authored or committed."
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"description": "Git authorship, with the forge account behind it where the forge matched one.",
|
|
217
|
+
"x-forges-type": "CommitSignature"
|
|
218
|
+
},
|
|
219
|
+
"FileStatus": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"enum": [
|
|
222
|
+
"added",
|
|
223
|
+
"modified",
|
|
224
|
+
"removed",
|
|
225
|
+
"renamed",
|
|
226
|
+
"copied",
|
|
227
|
+
"changed"
|
|
228
|
+
],
|
|
229
|
+
"description": "How a commit or pull request changed a file.",
|
|
230
|
+
"x-forges-type": "FileStatus"
|
|
231
|
+
},
|
|
232
|
+
"ForgeInstance": {
|
|
233
|
+
"type": "string",
|
|
234
|
+
"description": "Host of a single forge deployment, for example `github.com` or `codeberg.org`.",
|
|
235
|
+
"x-forges-type": "ForgeInstance"
|
|
236
|
+
},
|
|
237
|
+
"ForgeKind": {
|
|
238
|
+
"anyOf": [
|
|
239
|
+
{
|
|
240
|
+
"$ref": "#/definitions/KnownForgeKind"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"type": "string"
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
"description": "Identifier of a forge implementation. Unknown forges are permitted so that third-party providers can be registered without a core release.",
|
|
247
|
+
"x-forges-type": "ForgeKind"
|
|
248
|
+
},
|
|
249
|
+
"KnownForgeKind": {
|
|
250
|
+
"type": "string",
|
|
251
|
+
"enum": [
|
|
252
|
+
"github",
|
|
253
|
+
"gitlab",
|
|
254
|
+
"bitbucket",
|
|
255
|
+
"forgejo",
|
|
256
|
+
"gitea",
|
|
257
|
+
"tangled",
|
|
258
|
+
"gitee",
|
|
259
|
+
"azure-devops",
|
|
260
|
+
"cursor-origin",
|
|
261
|
+
"pushin"
|
|
262
|
+
],
|
|
263
|
+
"description": "The forges this package ships providers for.",
|
|
264
|
+
"x-forges-type": "KnownForgeKind"
|
|
265
|
+
},
|
|
266
|
+
"RepoRef": {
|
|
267
|
+
"type": "object",
|
|
268
|
+
"properties": {
|
|
269
|
+
"forge": {
|
|
270
|
+
"$ref": "#/definitions/ForgeKind"
|
|
271
|
+
},
|
|
272
|
+
"instance": {
|
|
273
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
274
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
275
|
+
},
|
|
276
|
+
"owner": {
|
|
277
|
+
"type": "string",
|
|
278
|
+
"description": "Full namespace path. On forges with nested groups (GitLab) this contains slashes, for example `acme/platform`; `name` never does."
|
|
279
|
+
},
|
|
280
|
+
"name": {
|
|
281
|
+
"type": "string",
|
|
282
|
+
"description": "Repository name. Empty for namespace-scoped refs."
|
|
283
|
+
},
|
|
284
|
+
"kind": {
|
|
285
|
+
"type": "string",
|
|
286
|
+
"enum": [
|
|
287
|
+
"repo",
|
|
288
|
+
"namespace"
|
|
289
|
+
],
|
|
290
|
+
"description": "`'namespace'` for subjects that belong to a group rather than a repository (GitLab epics). Absent means a repository."
|
|
291
|
+
},
|
|
292
|
+
"externalId": {
|
|
293
|
+
"type": "string",
|
|
294
|
+
"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`."
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"required": [
|
|
298
|
+
"forge",
|
|
299
|
+
"instance",
|
|
300
|
+
"name",
|
|
301
|
+
"owner"
|
|
302
|
+
],
|
|
303
|
+
"description": "Addresses a repository by its forge, instance, owner and name.",
|
|
304
|
+
"x-forges-type": "RepoRef"
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"forge": {
|
|
6
|
+
"$ref": "#/definitions/ForgeKind"
|
|
7
|
+
},
|
|
8
|
+
"instance": {
|
|
9
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
10
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
11
|
+
},
|
|
12
|
+
"repo": {
|
|
13
|
+
"$ref": "#/definitions/RepoRef"
|
|
14
|
+
},
|
|
15
|
+
"sha": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The full sha of the commit."
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"forge",
|
|
22
|
+
"instance",
|
|
23
|
+
"repo",
|
|
24
|
+
"sha"
|
|
25
|
+
],
|
|
26
|
+
"description": "A commit addressed by its full sha.",
|
|
27
|
+
"x-forges-type": "CommitRef",
|
|
28
|
+
"definitions": {
|
|
29
|
+
"ForgeInstance": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "Host of a single forge deployment, for example `github.com` or `codeberg.org`.",
|
|
32
|
+
"x-forges-type": "ForgeInstance"
|
|
33
|
+
},
|
|
34
|
+
"ForgeKind": {
|
|
35
|
+
"anyOf": [
|
|
36
|
+
{
|
|
37
|
+
"$ref": "#/definitions/KnownForgeKind"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "string"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"description": "Identifier of a forge implementation. Unknown forges are permitted so that third-party providers can be registered without a core release.",
|
|
44
|
+
"x-forges-type": "ForgeKind"
|
|
45
|
+
},
|
|
46
|
+
"KnownForgeKind": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"enum": [
|
|
49
|
+
"github",
|
|
50
|
+
"gitlab",
|
|
51
|
+
"bitbucket",
|
|
52
|
+
"forgejo",
|
|
53
|
+
"gitea",
|
|
54
|
+
"tangled",
|
|
55
|
+
"gitee",
|
|
56
|
+
"azure-devops",
|
|
57
|
+
"cursor-origin",
|
|
58
|
+
"pushin"
|
|
59
|
+
],
|
|
60
|
+
"description": "The forges this package ships providers for.",
|
|
61
|
+
"x-forges-type": "KnownForgeKind"
|
|
62
|
+
},
|
|
63
|
+
"RepoRef": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"properties": {
|
|
66
|
+
"forge": {
|
|
67
|
+
"$ref": "#/definitions/ForgeKind"
|
|
68
|
+
},
|
|
69
|
+
"instance": {
|
|
70
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
71
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
72
|
+
},
|
|
73
|
+
"owner": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"description": "Full namespace path. On forges with nested groups (GitLab) this contains slashes, for example `acme/platform`; `name` never does."
|
|
76
|
+
},
|
|
77
|
+
"name": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"description": "Repository name. Empty for namespace-scoped refs."
|
|
80
|
+
},
|
|
81
|
+
"kind": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"enum": [
|
|
84
|
+
"repo",
|
|
85
|
+
"namespace"
|
|
86
|
+
],
|
|
87
|
+
"description": "`'namespace'` for subjects that belong to a group rather than a repository (GitLab epics). Absent means a repository."
|
|
88
|
+
},
|
|
89
|
+
"externalId": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"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`."
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"required": [
|
|
95
|
+
"forge",
|
|
96
|
+
"instance",
|
|
97
|
+
"name",
|
|
98
|
+
"owner"
|
|
99
|
+
],
|
|
100
|
+
"description": "Addresses a repository by its forge, instance, owner and name.",
|
|
101
|
+
"x-forges-type": "RepoRef"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"actor": {
|
|
6
|
+
"$ref": "#/definitions/Actor",
|
|
7
|
+
"description": "The account, where the forge can match it."
|
|
8
|
+
},
|
|
9
|
+
"name": {
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
12
|
+
"email": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"date": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"format": "date-time",
|
|
18
|
+
"description": "When the commit was authored or committed."
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"description": "Git authorship, with the forge account behind it where the forge matched one.",
|
|
22
|
+
"x-forges-type": "CommitSignature",
|
|
23
|
+
"definitions": {
|
|
24
|
+
"Actor": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"forge": {
|
|
28
|
+
"$ref": "#/definitions/ForgeKind"
|
|
29
|
+
},
|
|
30
|
+
"instance": {
|
|
31
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
32
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
33
|
+
},
|
|
34
|
+
"login": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"id": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"name": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"avatarUrl": {
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
"url": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
"typeRaw": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "Forge-reported account type, retained verbatim for callers that classify further."
|
|
52
|
+
},
|
|
53
|
+
"isBotHint": {
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"description": "Hint derived from forge metadata that the actor is automation. Callers own the classification policy."
|
|
56
|
+
},
|
|
57
|
+
"app": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"properties": {
|
|
60
|
+
"slug": {
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
"id": {
|
|
64
|
+
"type": "string"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"required": [
|
|
68
|
+
"slug"
|
|
69
|
+
],
|
|
70
|
+
"description": "The app behind a bot account, where the forge ties one to it (GitHub Apps' `slug[bot]` users)."
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": [
|
|
74
|
+
"forge",
|
|
75
|
+
"id",
|
|
76
|
+
"instance",
|
|
77
|
+
"isBotHint",
|
|
78
|
+
"login"
|
|
79
|
+
],
|
|
80
|
+
"description": "An account: a user, an organisation or a bot.",
|
|
81
|
+
"x-forges-type": "Actor"
|
|
82
|
+
},
|
|
83
|
+
"ForgeInstance": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"description": "Host of a single forge deployment, for example `github.com` or `codeberg.org`.",
|
|
86
|
+
"x-forges-type": "ForgeInstance"
|
|
87
|
+
},
|
|
88
|
+
"ForgeKind": {
|
|
89
|
+
"anyOf": [
|
|
90
|
+
{
|
|
91
|
+
"$ref": "#/definitions/KnownForgeKind"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"type": "string"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"description": "Identifier of a forge implementation. Unknown forges are permitted so that third-party providers can be registered without a core release.",
|
|
98
|
+
"x-forges-type": "ForgeKind"
|
|
99
|
+
},
|
|
100
|
+
"KnownForgeKind": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"enum": [
|
|
103
|
+
"github",
|
|
104
|
+
"gitlab",
|
|
105
|
+
"bitbucket",
|
|
106
|
+
"forgejo",
|
|
107
|
+
"gitea",
|
|
108
|
+
"tangled",
|
|
109
|
+
"gitee",
|
|
110
|
+
"azure-devops",
|
|
111
|
+
"cursor-origin",
|
|
112
|
+
"pushin"
|
|
113
|
+
],
|
|
114
|
+
"description": "The forges this package ships providers for.",
|
|
115
|
+
"x-forges-type": "KnownForgeKind"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|