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,131 @@
|
|
|
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
|
+
"kind": {
|
|
16
|
+
"$ref": "#/definitions/ThreadKind"
|
|
17
|
+
},
|
|
18
|
+
"typeRaw": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Forge-native subject type, for example `PullRequest` or `MergeRequest`."
|
|
21
|
+
},
|
|
22
|
+
"number": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"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."
|
|
25
|
+
},
|
|
26
|
+
"displayNumber": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"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."
|
|
29
|
+
},
|
|
30
|
+
"externalId": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "Globally unique forge-native identifier, where one exists: a GitHub `node_id`, a GitLab global id, or an atproto record URI."
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": [
|
|
36
|
+
"forge",
|
|
37
|
+
"instance",
|
|
38
|
+
"kind",
|
|
39
|
+
"repo"
|
|
40
|
+
],
|
|
41
|
+
"description": "Reference to a thread. A thread `number` is unique only within its repo, so the repo is always carried alongside it.",
|
|
42
|
+
"x-forges-type": "ThreadRef",
|
|
43
|
+
"definitions": {
|
|
44
|
+
"ForgeInstance": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "Host of a single forge deployment, for example `github.com` or `codeberg.org`.",
|
|
47
|
+
"x-forges-type": "ForgeInstance"
|
|
48
|
+
},
|
|
49
|
+
"ForgeKind": {
|
|
50
|
+
"anyOf": [
|
|
51
|
+
{
|
|
52
|
+
"$ref": "#/definitions/KnownForgeKind"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "string"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"description": "Identifier of a forge implementation. Unknown forges are permitted so that third-party providers can be registered without a core release.",
|
|
59
|
+
"x-forges-type": "ForgeKind"
|
|
60
|
+
},
|
|
61
|
+
"KnownForgeKind": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"enum": [
|
|
64
|
+
"github",
|
|
65
|
+
"gitlab",
|
|
66
|
+
"bitbucket",
|
|
67
|
+
"forgejo",
|
|
68
|
+
"gitea",
|
|
69
|
+
"tangled",
|
|
70
|
+
"gitee",
|
|
71
|
+
"azure-devops",
|
|
72
|
+
"cursor-origin",
|
|
73
|
+
"pushin"
|
|
74
|
+
],
|
|
75
|
+
"description": "The forges this package ships providers for.",
|
|
76
|
+
"x-forges-type": "KnownForgeKind"
|
|
77
|
+
},
|
|
78
|
+
"RepoRef": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"properties": {
|
|
81
|
+
"forge": {
|
|
82
|
+
"$ref": "#/definitions/ForgeKind"
|
|
83
|
+
},
|
|
84
|
+
"instance": {
|
|
85
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
86
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
87
|
+
},
|
|
88
|
+
"owner": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"description": "Full namespace path. On forges with nested groups (GitLab) this contains slashes, for example `acme/platform`; `name` never does."
|
|
91
|
+
},
|
|
92
|
+
"name": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"description": "Repository name. Empty for namespace-scoped refs."
|
|
95
|
+
},
|
|
96
|
+
"kind": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"enum": [
|
|
99
|
+
"repo",
|
|
100
|
+
"namespace"
|
|
101
|
+
],
|
|
102
|
+
"description": "`'namespace'` for subjects that belong to a group rather than a repository (GitLab epics). Absent means a repository."
|
|
103
|
+
},
|
|
104
|
+
"externalId": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"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`."
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"required": [
|
|
110
|
+
"forge",
|
|
111
|
+
"instance",
|
|
112
|
+
"name",
|
|
113
|
+
"owner"
|
|
114
|
+
],
|
|
115
|
+
"description": "Addresses a repository by its forge, instance, owner and name.",
|
|
116
|
+
"x-forges-type": "RepoRef"
|
|
117
|
+
},
|
|
118
|
+
"ThreadKind": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"enum": [
|
|
121
|
+
"issue",
|
|
122
|
+
"pull_request",
|
|
123
|
+
"discussion",
|
|
124
|
+
"commit",
|
|
125
|
+
"other"
|
|
126
|
+
],
|
|
127
|
+
"description": "Kind of thread. `'other'` holds forge-specific subjects with no shared kind (check suites, epics); `ThreadRef.typeRaw` names them.",
|
|
128
|
+
"x-forges-type": "ThreadKind"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"id": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"description": "Forge-native stack id, where the forge names stacks."
|
|
8
|
+
},
|
|
9
|
+
"parent": {
|
|
10
|
+
"$ref": "#/definitions/ThreadRef",
|
|
11
|
+
"description": "The pull request this one is stacked on. Absent for the root of the stack."
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"description": "Where a pull request sits in a stack of pull requests.",
|
|
15
|
+
"x-forges-type": "ThreadStack",
|
|
16
|
+
"definitions": {
|
|
17
|
+
"ForgeInstance": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Host of a single forge deployment, for example `github.com` or `codeberg.org`.",
|
|
20
|
+
"x-forges-type": "ForgeInstance"
|
|
21
|
+
},
|
|
22
|
+
"ForgeKind": {
|
|
23
|
+
"anyOf": [
|
|
24
|
+
{
|
|
25
|
+
"$ref": "#/definitions/KnownForgeKind"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "string"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"description": "Identifier of a forge implementation. Unknown forges are permitted so that third-party providers can be registered without a core release.",
|
|
32
|
+
"x-forges-type": "ForgeKind"
|
|
33
|
+
},
|
|
34
|
+
"KnownForgeKind": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"enum": [
|
|
37
|
+
"github",
|
|
38
|
+
"gitlab",
|
|
39
|
+
"bitbucket",
|
|
40
|
+
"forgejo",
|
|
41
|
+
"gitea",
|
|
42
|
+
"tangled",
|
|
43
|
+
"gitee",
|
|
44
|
+
"azure-devops",
|
|
45
|
+
"cursor-origin",
|
|
46
|
+
"pushin"
|
|
47
|
+
],
|
|
48
|
+
"description": "The forges this package ships providers for.",
|
|
49
|
+
"x-forges-type": "KnownForgeKind"
|
|
50
|
+
},
|
|
51
|
+
"RepoRef": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"properties": {
|
|
54
|
+
"forge": {
|
|
55
|
+
"$ref": "#/definitions/ForgeKind"
|
|
56
|
+
},
|
|
57
|
+
"instance": {
|
|
58
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
59
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
60
|
+
},
|
|
61
|
+
"owner": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"description": "Full namespace path. On forges with nested groups (GitLab) this contains slashes, for example `acme/platform`; `name` never does."
|
|
64
|
+
},
|
|
65
|
+
"name": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"description": "Repository name. Empty for namespace-scoped refs."
|
|
68
|
+
},
|
|
69
|
+
"kind": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"enum": [
|
|
72
|
+
"repo",
|
|
73
|
+
"namespace"
|
|
74
|
+
],
|
|
75
|
+
"description": "`'namespace'` for subjects that belong to a group rather than a repository (GitLab epics). Absent means a repository."
|
|
76
|
+
},
|
|
77
|
+
"externalId": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"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`."
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"required": [
|
|
83
|
+
"forge",
|
|
84
|
+
"instance",
|
|
85
|
+
"name",
|
|
86
|
+
"owner"
|
|
87
|
+
],
|
|
88
|
+
"description": "Addresses a repository by its forge, instance, owner and name.",
|
|
89
|
+
"x-forges-type": "RepoRef"
|
|
90
|
+
},
|
|
91
|
+
"ThreadKind": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"enum": [
|
|
94
|
+
"issue",
|
|
95
|
+
"pull_request",
|
|
96
|
+
"discussion",
|
|
97
|
+
"commit",
|
|
98
|
+
"other"
|
|
99
|
+
],
|
|
100
|
+
"description": "Kind of thread. `'other'` holds forge-specific subjects with no shared kind (check suites, epics); `ThreadRef.typeRaw` names them.",
|
|
101
|
+
"x-forges-type": "ThreadKind"
|
|
102
|
+
},
|
|
103
|
+
"ThreadRef": {
|
|
104
|
+
"type": "object",
|
|
105
|
+
"properties": {
|
|
106
|
+
"forge": {
|
|
107
|
+
"$ref": "#/definitions/ForgeKind"
|
|
108
|
+
},
|
|
109
|
+
"instance": {
|
|
110
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
111
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
112
|
+
},
|
|
113
|
+
"repo": {
|
|
114
|
+
"$ref": "#/definitions/RepoRef"
|
|
115
|
+
},
|
|
116
|
+
"kind": {
|
|
117
|
+
"$ref": "#/definitions/ThreadKind"
|
|
118
|
+
},
|
|
119
|
+
"typeRaw": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"description": "Forge-native subject type, for example `PullRequest` or `MergeRequest`."
|
|
122
|
+
},
|
|
123
|
+
"number": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"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."
|
|
126
|
+
},
|
|
127
|
+
"displayNumber": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"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."
|
|
130
|
+
},
|
|
131
|
+
"externalId": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"description": "Globally unique forge-native identifier, where one exists: a GitHub `node_id`, a GitLab global id, or an atproto record URI."
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"required": [
|
|
137
|
+
"forge",
|
|
138
|
+
"instance",
|
|
139
|
+
"kind",
|
|
140
|
+
"repo"
|
|
141
|
+
],
|
|
142
|
+
"description": "Reference to a thread. A thread `number` is unique only within its repo, so the repo is always carried alongside it.",
|
|
143
|
+
"x-forges-type": "ThreadRef"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "string",
|
|
4
|
+
"enum": [
|
|
5
|
+
"open",
|
|
6
|
+
"closed",
|
|
7
|
+
"merged",
|
|
8
|
+
"unknown"
|
|
9
|
+
],
|
|
10
|
+
"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`.",
|
|
11
|
+
"x-forges-type": "ThreadState",
|
|
12
|
+
"definitions": {}
|
|
13
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"path": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"description": "Path from the repository root, without a leading slash."
|
|
8
|
+
},
|
|
9
|
+
"type": {
|
|
10
|
+
"$ref": "#/definitions/TreeEntryType"
|
|
11
|
+
},
|
|
12
|
+
"sha": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"size": {
|
|
16
|
+
"type": "number",
|
|
17
|
+
"description": "The size in bytes, for a file."
|
|
18
|
+
},
|
|
19
|
+
"mode": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "POSIX mode as the forge reports it, for example `100644`."
|
|
22
|
+
},
|
|
23
|
+
"url": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"required": [
|
|
28
|
+
"path",
|
|
29
|
+
"type"
|
|
30
|
+
],
|
|
31
|
+
"description": "One entry of a repository tree.",
|
|
32
|
+
"x-forges-type": "TreeEntry",
|
|
33
|
+
"definitions": {
|
|
34
|
+
"TreeEntryType": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"enum": [
|
|
37
|
+
"file",
|
|
38
|
+
"directory",
|
|
39
|
+
"symlink",
|
|
40
|
+
"submodule"
|
|
41
|
+
],
|
|
42
|
+
"description": "What a tree entry is.",
|
|
43
|
+
"x-forges-type": "TreeEntryType"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|