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,280 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"ref": {
|
|
6
|
+
"$ref": "#/definitions/CommentRef"
|
|
7
|
+
},
|
|
8
|
+
"body": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"author": {
|
|
12
|
+
"$ref": "#/definitions/Actor"
|
|
13
|
+
},
|
|
14
|
+
"path": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"line": {
|
|
18
|
+
"type": "number",
|
|
19
|
+
"description": "Line in the file the comment is anchored to, in the side it is anchored to."
|
|
20
|
+
},
|
|
21
|
+
"side": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"enum": [
|
|
24
|
+
"left",
|
|
25
|
+
"right"
|
|
26
|
+
],
|
|
27
|
+
"description": "`'left'` is the base of the diff, `'right'` the head."
|
|
28
|
+
},
|
|
29
|
+
"inReplyTo": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "Forge-native id of the comment this one replies to."
|
|
32
|
+
},
|
|
33
|
+
"thread": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"properties": {
|
|
36
|
+
"id": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"resolved": {
|
|
40
|
+
"type": "boolean"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": [
|
|
44
|
+
"id",
|
|
45
|
+
"resolved"
|
|
46
|
+
],
|
|
47
|
+
"description": "The resolvable conversation the comment belongs to, where the forge has one."
|
|
48
|
+
},
|
|
49
|
+
"createdAt": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"format": "date-time"
|
|
52
|
+
},
|
|
53
|
+
"url": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"raw": {}
|
|
57
|
+
},
|
|
58
|
+
"required": [
|
|
59
|
+
"body",
|
|
60
|
+
"raw"
|
|
61
|
+
],
|
|
62
|
+
"description": "A comment left on a line of the diff as part of a review.",
|
|
63
|
+
"x-forges-type": "ReviewComment",
|
|
64
|
+
"definitions": {
|
|
65
|
+
"Actor": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"properties": {
|
|
68
|
+
"forge": {
|
|
69
|
+
"$ref": "#/definitions/ForgeKind"
|
|
70
|
+
},
|
|
71
|
+
"instance": {
|
|
72
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
73
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
74
|
+
},
|
|
75
|
+
"login": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"id": {
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"name": {
|
|
82
|
+
"type": "string"
|
|
83
|
+
},
|
|
84
|
+
"avatarUrl": {
|
|
85
|
+
"type": "string"
|
|
86
|
+
},
|
|
87
|
+
"url": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
},
|
|
90
|
+
"typeRaw": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"description": "Forge-reported account type, retained verbatim for callers that classify further."
|
|
93
|
+
},
|
|
94
|
+
"isBotHint": {
|
|
95
|
+
"type": "boolean",
|
|
96
|
+
"description": "Hint derived from forge metadata that the actor is automation. Callers own the classification policy."
|
|
97
|
+
},
|
|
98
|
+
"app": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"properties": {
|
|
101
|
+
"slug": {
|
|
102
|
+
"type": "string"
|
|
103
|
+
},
|
|
104
|
+
"id": {
|
|
105
|
+
"type": "string"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"required": [
|
|
109
|
+
"slug"
|
|
110
|
+
],
|
|
111
|
+
"description": "The app behind a bot account, where the forge ties one to it (GitHub Apps' `slug[bot]` users)."
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"required": [
|
|
115
|
+
"forge",
|
|
116
|
+
"id",
|
|
117
|
+
"instance",
|
|
118
|
+
"isBotHint",
|
|
119
|
+
"login"
|
|
120
|
+
],
|
|
121
|
+
"description": "An account: a user, an organisation or a bot.",
|
|
122
|
+
"x-forges-type": "Actor"
|
|
123
|
+
},
|
|
124
|
+
"CommentRef": {
|
|
125
|
+
"type": "object",
|
|
126
|
+
"properties": {
|
|
127
|
+
"forge": {
|
|
128
|
+
"$ref": "#/definitions/ForgeKind"
|
|
129
|
+
},
|
|
130
|
+
"instance": {
|
|
131
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
132
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
133
|
+
},
|
|
134
|
+
"thread": {
|
|
135
|
+
"$ref": "#/definitions/ThreadRef"
|
|
136
|
+
},
|
|
137
|
+
"id": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"description": "Forge-native comment id; an AT-URI on Tangled."
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"required": [
|
|
143
|
+
"forge",
|
|
144
|
+
"id",
|
|
145
|
+
"instance",
|
|
146
|
+
"thread"
|
|
147
|
+
],
|
|
148
|
+
"description": "Reference to a comment on a thread.",
|
|
149
|
+
"x-forges-type": "CommentRef"
|
|
150
|
+
},
|
|
151
|
+
"ForgeInstance": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"description": "Host of a single forge deployment, for example `github.com` or `codeberg.org`.",
|
|
154
|
+
"x-forges-type": "ForgeInstance"
|
|
155
|
+
},
|
|
156
|
+
"ForgeKind": {
|
|
157
|
+
"anyOf": [
|
|
158
|
+
{
|
|
159
|
+
"$ref": "#/definitions/KnownForgeKind"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"type": "string"
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
"description": "Identifier of a forge implementation. Unknown forges are permitted so that third-party providers can be registered without a core release.",
|
|
166
|
+
"x-forges-type": "ForgeKind"
|
|
167
|
+
},
|
|
168
|
+
"KnownForgeKind": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"enum": [
|
|
171
|
+
"github",
|
|
172
|
+
"gitlab",
|
|
173
|
+
"bitbucket",
|
|
174
|
+
"forgejo",
|
|
175
|
+
"gitea",
|
|
176
|
+
"tangled",
|
|
177
|
+
"gitee",
|
|
178
|
+
"azure-devops",
|
|
179
|
+
"cursor-origin",
|
|
180
|
+
"pushin"
|
|
181
|
+
],
|
|
182
|
+
"description": "The forges this package ships providers for.",
|
|
183
|
+
"x-forges-type": "KnownForgeKind"
|
|
184
|
+
},
|
|
185
|
+
"RepoRef": {
|
|
186
|
+
"type": "object",
|
|
187
|
+
"properties": {
|
|
188
|
+
"forge": {
|
|
189
|
+
"$ref": "#/definitions/ForgeKind"
|
|
190
|
+
},
|
|
191
|
+
"instance": {
|
|
192
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
193
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
194
|
+
},
|
|
195
|
+
"owner": {
|
|
196
|
+
"type": "string",
|
|
197
|
+
"description": "Full namespace path. On forges with nested groups (GitLab) this contains slashes, for example `acme/platform`; `name` never does."
|
|
198
|
+
},
|
|
199
|
+
"name": {
|
|
200
|
+
"type": "string",
|
|
201
|
+
"description": "Repository name. Empty for namespace-scoped refs."
|
|
202
|
+
},
|
|
203
|
+
"kind": {
|
|
204
|
+
"type": "string",
|
|
205
|
+
"enum": [
|
|
206
|
+
"repo",
|
|
207
|
+
"namespace"
|
|
208
|
+
],
|
|
209
|
+
"description": "`'namespace'` for subjects that belong to a group rather than a repository (GitLab epics). Absent means a repository."
|
|
210
|
+
},
|
|
211
|
+
"externalId": {
|
|
212
|
+
"type": "string",
|
|
213
|
+
"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`."
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"required": [
|
|
217
|
+
"forge",
|
|
218
|
+
"instance",
|
|
219
|
+
"name",
|
|
220
|
+
"owner"
|
|
221
|
+
],
|
|
222
|
+
"description": "Addresses a repository by its forge, instance, owner and name.",
|
|
223
|
+
"x-forges-type": "RepoRef"
|
|
224
|
+
},
|
|
225
|
+
"ThreadKind": {
|
|
226
|
+
"type": "string",
|
|
227
|
+
"enum": [
|
|
228
|
+
"issue",
|
|
229
|
+
"pull_request",
|
|
230
|
+
"discussion",
|
|
231
|
+
"commit",
|
|
232
|
+
"other"
|
|
233
|
+
],
|
|
234
|
+
"description": "Kind of thread. `'other'` holds forge-specific subjects with no shared kind (check suites, epics); `ThreadRef.typeRaw` names them.",
|
|
235
|
+
"x-forges-type": "ThreadKind"
|
|
236
|
+
},
|
|
237
|
+
"ThreadRef": {
|
|
238
|
+
"type": "object",
|
|
239
|
+
"properties": {
|
|
240
|
+
"forge": {
|
|
241
|
+
"$ref": "#/definitions/ForgeKind"
|
|
242
|
+
},
|
|
243
|
+
"instance": {
|
|
244
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
245
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
246
|
+
},
|
|
247
|
+
"repo": {
|
|
248
|
+
"$ref": "#/definitions/RepoRef"
|
|
249
|
+
},
|
|
250
|
+
"kind": {
|
|
251
|
+
"$ref": "#/definitions/ThreadKind"
|
|
252
|
+
},
|
|
253
|
+
"typeRaw": {
|
|
254
|
+
"type": "string",
|
|
255
|
+
"description": "Forge-native subject type, for example `PullRequest` or `MergeRequest`."
|
|
256
|
+
},
|
|
257
|
+
"number": {
|
|
258
|
+
"type": "string",
|
|
259
|
+
"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."
|
|
260
|
+
},
|
|
261
|
+
"displayNumber": {
|
|
262
|
+
"type": "string",
|
|
263
|
+
"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."
|
|
264
|
+
},
|
|
265
|
+
"externalId": {
|
|
266
|
+
"type": "string",
|
|
267
|
+
"description": "Globally unique forge-native identifier, where one exists: a GitHub `node_id`, a GitLab global id, or an atproto record URI."
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"required": [
|
|
271
|
+
"forge",
|
|
272
|
+
"instance",
|
|
273
|
+
"kind",
|
|
274
|
+
"repo"
|
|
275
|
+
],
|
|
276
|
+
"description": "Reference to a thread. A thread `number` is unique only within its repo, so the repo is always carried alongside it.",
|
|
277
|
+
"x-forges-type": "ThreadRef"
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"path": {
|
|
6
|
+
"type": "string"
|
|
7
|
+
},
|
|
8
|
+
"line": {
|
|
9
|
+
"type": "number",
|
|
10
|
+
"description": "Line in the diff, in `side`."
|
|
11
|
+
},
|
|
12
|
+
"side": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": [
|
|
15
|
+
"left",
|
|
16
|
+
"right"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"startLine": {
|
|
20
|
+
"type": "number",
|
|
21
|
+
"description": "First line of a multi-line comment."
|
|
22
|
+
},
|
|
23
|
+
"body": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"required": [
|
|
28
|
+
"path",
|
|
29
|
+
"body"
|
|
30
|
+
],
|
|
31
|
+
"description": "An inline comment to send with a review.",
|
|
32
|
+
"x-forges-type": "ReviewCommentInput",
|
|
33
|
+
"definitions": {}
|
|
34
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
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
|
+
"thread": {
|
|
13
|
+
"$ref": "#/definitions/ThreadRef"
|
|
14
|
+
},
|
|
15
|
+
"id": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Forge-native review id; a synthesised `approval:<login>` where the forge has approvals but no review objects."
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"forge",
|
|
22
|
+
"id",
|
|
23
|
+
"instance",
|
|
24
|
+
"thread"
|
|
25
|
+
],
|
|
26
|
+
"description": "Reference to a review on a pull request.",
|
|
27
|
+
"x-forges-type": "ReviewRef",
|
|
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
|
+
"ThreadKind": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"enum": [
|
|
106
|
+
"issue",
|
|
107
|
+
"pull_request",
|
|
108
|
+
"discussion",
|
|
109
|
+
"commit",
|
|
110
|
+
"other"
|
|
111
|
+
],
|
|
112
|
+
"description": "Kind of thread. `'other'` holds forge-specific subjects with no shared kind (check suites, epics); `ThreadRef.typeRaw` names them.",
|
|
113
|
+
"x-forges-type": "ThreadKind"
|
|
114
|
+
},
|
|
115
|
+
"ThreadRef": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"properties": {
|
|
118
|
+
"forge": {
|
|
119
|
+
"$ref": "#/definitions/ForgeKind"
|
|
120
|
+
},
|
|
121
|
+
"instance": {
|
|
122
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
123
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
124
|
+
},
|
|
125
|
+
"repo": {
|
|
126
|
+
"$ref": "#/definitions/RepoRef"
|
|
127
|
+
},
|
|
128
|
+
"kind": {
|
|
129
|
+
"$ref": "#/definitions/ThreadKind"
|
|
130
|
+
},
|
|
131
|
+
"typeRaw": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"description": "Forge-native subject type, for example `PullRequest` or `MergeRequest`."
|
|
134
|
+
},
|
|
135
|
+
"number": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"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."
|
|
138
|
+
},
|
|
139
|
+
"displayNumber": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"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."
|
|
142
|
+
},
|
|
143
|
+
"externalId": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"description": "Globally unique forge-native identifier, where one exists: a GitHub `node_id`, a GitLab global id, or an atproto record URI."
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"required": [
|
|
149
|
+
"forge",
|
|
150
|
+
"instance",
|
|
151
|
+
"kind",
|
|
152
|
+
"repo"
|
|
153
|
+
],
|
|
154
|
+
"description": "Reference to a thread. A thread `number` is unique only within its repo, so the repo is always carried alongside it.",
|
|
155
|
+
"x-forges-type": "ThreadRef"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "string",
|
|
4
|
+
"enum": [
|
|
5
|
+
"approved",
|
|
6
|
+
"changes_requested",
|
|
7
|
+
"commented",
|
|
8
|
+
"pending",
|
|
9
|
+
"dismissed",
|
|
10
|
+
"unknown"
|
|
11
|
+
],
|
|
12
|
+
"description": "What a review or a reviewer says about a pull request. `unknown` is a state that the model does not name.",
|
|
13
|
+
"x-forges-type": "ReviewState",
|
|
14
|
+
"definitions": {}
|
|
15
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"actor": {
|
|
6
|
+
"$ref": "#/definitions/Actor"
|
|
7
|
+
},
|
|
8
|
+
"state": {
|
|
9
|
+
"$ref": "#/definitions/ReviewState"
|
|
10
|
+
},
|
|
11
|
+
"stateRaw": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"isTeam": {
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"description": "True when the reviewer is a team rather than an account."
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"required": [
|
|
20
|
+
"actor",
|
|
21
|
+
"state"
|
|
22
|
+
],
|
|
23
|
+
"description": "A reviewer who was asked to review a pull request, and what they said.",
|
|
24
|
+
"x-forges-type": "Reviewer",
|
|
25
|
+
"definitions": {
|
|
26
|
+
"Actor": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"properties": {
|
|
29
|
+
"forge": {
|
|
30
|
+
"$ref": "#/definitions/ForgeKind"
|
|
31
|
+
},
|
|
32
|
+
"instance": {
|
|
33
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
34
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
35
|
+
},
|
|
36
|
+
"login": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"id": {
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"name": {
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
"avatarUrl": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"url": {
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
"typeRaw": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "Forge-reported account type, retained verbatim for callers that classify further."
|
|
54
|
+
},
|
|
55
|
+
"isBotHint": {
|
|
56
|
+
"type": "boolean",
|
|
57
|
+
"description": "Hint derived from forge metadata that the actor is automation. Callers own the classification policy."
|
|
58
|
+
},
|
|
59
|
+
"app": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"properties": {
|
|
62
|
+
"slug": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"id": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"required": [
|
|
70
|
+
"slug"
|
|
71
|
+
],
|
|
72
|
+
"description": "The app behind a bot account, where the forge ties one to it (GitHub Apps' `slug[bot]` users)."
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"required": [
|
|
76
|
+
"forge",
|
|
77
|
+
"id",
|
|
78
|
+
"instance",
|
|
79
|
+
"isBotHint",
|
|
80
|
+
"login"
|
|
81
|
+
],
|
|
82
|
+
"description": "An account: a user, an organisation or a bot.",
|
|
83
|
+
"x-forges-type": "Actor"
|
|
84
|
+
},
|
|
85
|
+
"ForgeInstance": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"description": "Host of a single forge deployment, for example `github.com` or `codeberg.org`.",
|
|
88
|
+
"x-forges-type": "ForgeInstance"
|
|
89
|
+
},
|
|
90
|
+
"ForgeKind": {
|
|
91
|
+
"anyOf": [
|
|
92
|
+
{
|
|
93
|
+
"$ref": "#/definitions/KnownForgeKind"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"type": "string"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"description": "Identifier of a forge implementation. Unknown forges are permitted so that third-party providers can be registered without a core release.",
|
|
100
|
+
"x-forges-type": "ForgeKind"
|
|
101
|
+
},
|
|
102
|
+
"KnownForgeKind": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"enum": [
|
|
105
|
+
"github",
|
|
106
|
+
"gitlab",
|
|
107
|
+
"bitbucket",
|
|
108
|
+
"forgejo",
|
|
109
|
+
"gitea",
|
|
110
|
+
"tangled",
|
|
111
|
+
"gitee",
|
|
112
|
+
"azure-devops",
|
|
113
|
+
"cursor-origin",
|
|
114
|
+
"pushin"
|
|
115
|
+
],
|
|
116
|
+
"description": "The forges this package ships providers for.",
|
|
117
|
+
"x-forges-type": "KnownForgeKind"
|
|
118
|
+
},
|
|
119
|
+
"ReviewState": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"enum": [
|
|
122
|
+
"approved",
|
|
123
|
+
"changes_requested",
|
|
124
|
+
"commented",
|
|
125
|
+
"pending",
|
|
126
|
+
"dismissed",
|
|
127
|
+
"unknown"
|
|
128
|
+
],
|
|
129
|
+
"description": "What a review or a reviewer says about a pull request. `unknown` is a state that the model does not name.",
|
|
130
|
+
"x-forges-type": "ReviewState"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|