Skip to content

Commit 22a1344

Browse files
author
Octokit Bot
committed
WIP: schema updates
1 parent e372529 commit 22a1344

File tree

21 files changed

+231
-0
lines changed

21 files changed

+231
-0
lines changed

cache/api.github.com.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70467,11 +70467,18 @@
7046770467
"type": "object",
7046870468
"properties": {
7046970469
"permission": {
70470+
"description": "This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.",
7047070471
"type": "object",
7047170472
"properties": {
7047270473
"to": { "type": "string", "enum": ["write", "admin", "read"] }
7047370474
},
7047470475
"required": ["to"]
70476+
},
70477+
"role_name": {
70478+
"description": "The role assigned to the collaborator.",
70479+
"type": "object",
70480+
"properties": { "to": { "type": "string" } },
70481+
"required": ["to"]
7047570482
}
7047670483
}
7047770484
},
@@ -163975,6 +163982,15 @@
163975163982
"required": true,
163976163983
"schema": { "type": "integer" }
163977163984
},
163985+
"git-ref-only": {
163986+
"name": "ref",
163987+
"description": "The Git reference. For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation.",
163988+
"in": "path",
163989+
"required": true,
163990+
"example": "heads/feature-a",
163991+
"schema": { "type": "string" },
163992+
"x-multi-segment": true
163993+
},
163978163994
"since-user": {
163979163995
"name": "since",
163980163996
"description": "A user ID. Only return users with an ID greater than this ID.",

cache/ghec.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72212,11 +72212,18 @@
7221272212
"type": "object",
7221372213
"properties": {
7221472214
"permission": {
72215+
"description": "This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.",
7221572216
"type": "object",
7221672217
"properties": {
7221772218
"to": { "type": "string", "enum": ["write", "admin", "read"] }
7221872219
},
7221972220
"required": ["to"]
72221+
},
72222+
"role_name": {
72223+
"description": "The role assigned to the collaborator.",
72224+
"type": "object",
72225+
"properties": { "to": { "type": "string" } },
72226+
"required": ["to"]
7222072227
}
7222172228
}
7222272229
},
@@ -166743,6 +166750,15 @@
166743166750
"required": true,
166744166751
"schema": { "type": "integer" }
166745166752
},
166753+
"git-ref-only": {
166754+
"name": "ref",
166755+
"description": "The Git reference. For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation.",
166756+
"in": "path",
166757+
"required": true,
166758+
"example": "heads/feature-a",
166759+
"schema": { "type": "string" },
166760+
"x-multi-segment": true
166761+
},
166746166762
"since-user": {
166747166763
"name": "since",
166748166764
"description": "A user ID. Only return users with an ID greater than this ID.",

cache/ghes-3.10.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68197,11 +68197,18 @@
6819768197
"type": "object",
6819868198
"properties": {
6819968199
"permission": {
68200+
"description": "This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.",
6820068201
"type": "object",
6820168202
"properties": {
6820268203
"to": { "type": "string", "enum": ["write", "admin", "read"] }
6820368204
},
6820468205
"required": ["to"]
68206+
},
68207+
"role_name": {
68208+
"description": "The role assigned to the collaborator.",
68209+
"type": "object",
68210+
"properties": { "to": { "type": "string" } },
68211+
"required": ["to"]
6820568212
}
6820668213
}
6820768214
},
@@ -155099,6 +155106,15 @@
155099155106
"required": true,
155100155107
"schema": { "type": "integer" }
155101155108
},
155109+
"git-ref-only": {
155110+
"name": "ref",
155111+
"description": "The Git reference. For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation.",
155112+
"in": "path",
155113+
"required": true,
155114+
"example": "heads/feature-a",
155115+
"schema": { "type": "string" },
155116+
"x-multi-segment": true
155117+
},
155102155118
"invitation-id": {
155103155119
"name": "invitation_id",
155104155120
"description": "The unique identifier of the invitation.",

cache/ghes-3.11.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69750,11 +69750,18 @@
6975069750
"type": "object",
6975169751
"properties": {
6975269752
"permission": {
69753+
"description": "This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.",
6975369754
"type": "object",
6975469755
"properties": {
6975569756
"to": { "type": "string", "enum": ["write", "admin", "read"] }
6975669757
},
6975769758
"required": ["to"]
69759+
},
69760+
"role_name": {
69761+
"description": "The role assigned to the collaborator.",
69762+
"type": "object",
69763+
"properties": { "to": { "type": "string" } },
69764+
"required": ["to"]
6975869765
}
6975969766
}
6976069767
},
@@ -157176,6 +157183,15 @@
157176157183
"required": true,
157177157184
"schema": { "type": "integer" }
157178157185
},
157186+
"git-ref-only": {
157187+
"name": "ref",
157188+
"description": "The Git reference. For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation.",
157189+
"in": "path",
157190+
"required": true,
157191+
"example": "heads/feature-a",
157192+
"schema": { "type": "string" },
157193+
"x-multi-segment": true
157194+
},
157179157195
"invitation-id": {
157180157196
"name": "invitation_id",
157181157197
"description": "The unique identifier of the invitation.",

cache/ghes-3.12.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70607,11 +70607,18 @@
7060770607
"type": "object",
7060870608
"properties": {
7060970609
"permission": {
70610+
"description": "This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.",
7061070611
"type": "object",
7061170612
"properties": {
7061270613
"to": { "type": "string", "enum": ["write", "admin", "read"] }
7061370614
},
7061470615
"required": ["to"]
70616+
},
70617+
"role_name": {
70618+
"description": "The role assigned to the collaborator.",
70619+
"type": "object",
70620+
"properties": { "to": { "type": "string" } },
70621+
"required": ["to"]
7061570622
}
7061670623
}
7061770624
},
@@ -158391,6 +158398,15 @@
158391158398
"required": true,
158392158399
"schema": { "type": "integer" }
158393158400
},
158401+
"git-ref-only": {
158402+
"name": "ref",
158403+
"description": "The Git reference. For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation.",
158404+
"in": "path",
158405+
"required": true,
158406+
"example": "heads/feature-a",
158407+
"schema": { "type": "string" },
158408+
"x-multi-segment": true
158409+
},
158394158410
"invitation-id": {
158395158411
"name": "invitation_id",
158396158412
"description": "The unique identifier of the invitation.",

cache/ghes-3.8.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65912,11 +65912,18 @@
6591265912
"type": "object",
6591365913
"properties": {
6591465914
"permission": {
65915+
"description": "This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.",
6591565916
"type": "object",
6591665917
"properties": {
6591765918
"to": { "type": "string", "enum": ["write", "admin", "read"] }
6591865919
},
6591965920
"required": ["to"]
65921+
},
65922+
"role_name": {
65923+
"description": "The role assigned to the collaborator.",
65924+
"type": "object",
65925+
"properties": { "to": { "type": "string" } },
65926+
"required": ["to"]
6592065927
}
6592165928
}
6592265929
},
@@ -151507,6 +151514,15 @@
151507151514
"description": "The unique identifier of the branch policy.",
151508151515
"schema": { "type": "integer" }
151509151516
},
151517+
"git-ref-only": {
151518+
"name": "ref",
151519+
"description": "The Git reference. For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation.",
151520+
"in": "path",
151521+
"required": true,
151522+
"example": "heads/feature-a",
151523+
"schema": { "type": "string" },
151524+
"x-multi-segment": true
151525+
},
151510151526
"invitation-id": {
151511151527
"name": "invitation_id",
151512151528
"description": "The unique identifier of the invitation.",

cache/ghes-3.9.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67264,11 +67264,18 @@
6726467264
"type": "object",
6726567265
"properties": {
6726667266
"permission": {
67267+
"description": "This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.",
6726767268
"type": "object",
6726867269
"properties": {
6726967270
"to": { "type": "string", "enum": ["write", "admin", "read"] }
6727067271
},
6727167272
"required": ["to"]
67273+
},
67274+
"role_name": {
67275+
"description": "The role assigned to the collaborator.",
67276+
"type": "object",
67277+
"properties": { "to": { "type": "string" } },
67278+
"required": ["to"]
6727267279
}
6727367280
}
6727467281
},
@@ -153692,6 +153699,15 @@
153692153699
"description": "The unique identifier of the branch policy.",
153693153700
"schema": { "type": "integer" }
153694153701
},
153702+
"git-ref-only": {
153703+
"name": "ref",
153704+
"description": "The Git reference. For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation.",
153705+
"in": "path",
153706+
"required": true,
153707+
"example": "heads/feature-a",
153708+
"schema": { "type": "string" },
153709+
"x-multi-segment": true
153710+
},
153695153711
"invitation-id": {
153696153712
"name": "invitation_id",
153697153713
"description": "The unique identifier of the invitation.",

packages/openapi-webhooks-types-ghec/types.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23683,10 +23683,20 @@ export interface components {
2368323683
/** @enum {string} */
2368423684
action: "added";
2368523685
changes?: {
23686+
/**
23687+
* @description This field is included for legacy purposes; use the `role_name` field instead. The `maintain`
23688+
* role is mapped to `write` and the `triage` role is mapped to `read`. To determine the role
23689+
* assigned to the collaborator, use the `role_name` field instead, which will provide the full
23690+
* role name, including custom roles.
23691+
*/
2368623692
permission?: {
2368723693
/** @enum {string} */
2368823694
to: "write" | "admin" | "read";
2368923695
};
23696+
/** @description The role assigned to the collaborator. */
23697+
role_name?: {
23698+
to: string;
23699+
};
2369023700
};
2369123701
enterprise?: components["schemas"]["enterprise-webhooks"];
2369223702
installation?: components["schemas"]["simple-installation"];

packages/openapi-webhooks-types-ghes-3.10/types.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22913,10 +22913,20 @@ export interface components {
2291322913
/** @enum {string} */
2291422914
action: "added";
2291522915
changes?: {
22916+
/**
22917+
* @description This field is included for legacy purposes; use the `role_name` field instead. The `maintain`
22918+
* role is mapped to `write` and the `triage` role is mapped to `read`. To determine the role
22919+
* assigned to the collaborator, use the `role_name` field instead, which will provide the full
22920+
* role name, including custom roles.
22921+
*/
2291622922
permission?: {
2291722923
/** @enum {string} */
2291822924
to: "write" | "admin" | "read";
2291922925
};
22926+
/** @description The role assigned to the collaborator. */
22927+
role_name?: {
22928+
to: string;
22929+
};
2292022930
};
2292122931
enterprise?: components["schemas"]["enterprise-webhooks"];
2292222932
installation?: components["schemas"]["simple-installation"];

packages/openapi-webhooks-types-ghes-3.11/types.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22989,10 +22989,20 @@ export interface components {
2298922989
/** @enum {string} */
2299022990
action: "added";
2299122991
changes?: {
22992+
/**
22993+
* @description This field is included for legacy purposes; use the `role_name` field instead. The `maintain`
22994+
* role is mapped to `write` and the `triage` role is mapped to `read`. To determine the role
22995+
* assigned to the collaborator, use the `role_name` field instead, which will provide the full
22996+
* role name, including custom roles.
22997+
*/
2299222998
permission?: {
2299322999
/** @enum {string} */
2299423000
to: "write" | "admin" | "read";
2299523001
};
23002+
/** @description The role assigned to the collaborator. */
23003+
role_name?: {
23004+
to: string;
23005+
};
2299623006
};
2299723007
enterprise?: components["schemas"]["enterprise-webhooks"];
2299823008
installation?: components["schemas"]["simple-installation"];

0 commit comments

Comments
 (0)