@octokit/openapi 7.9.0 → 7.11.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.
Files changed (35) hide show
  1. package/generated/api.github.com.deref.json +2604 -719
  2. package/generated/api.github.com.json +539 -29
  3. package/generated/ghes-3.2-diff-to-api.github.com.deref.json +1 -1
  4. package/generated/ghes-3.2-diff-to-api.github.com.json +1 -1
  5. package/generated/ghes-3.2-diff-to-ghes-3.3.deref.json +8 -6
  6. package/generated/ghes-3.2-diff-to-ghes-3.3.json +8 -6
  7. package/generated/ghes-3.2.deref.json +745 -128
  8. package/generated/ghes-3.2.json +35 -8
  9. package/generated/ghes-3.3-anicca-diff-to-ghes-3.4.deref.json +21 -0
  10. package/generated/ghes-3.3-diff-to-ghes-3.4.deref.json +615 -1
  11. package/generated/ghes-3.3-diff-to-ghes-3.4.json +25 -1
  12. package/generated/ghes-3.3.deref.json +910 -293
  13. package/generated/ghes-3.3.json +35 -8
  14. package/generated/ghes-3.4-diff-to-ghes-3.5.deref.json +2 -2
  15. package/generated/ghes-3.4-diff-to-ghes-3.5.json +2 -2
  16. package/generated/ghes-3.4.deref.json +750 -128
  17. package/generated/ghes-3.4.json +37 -10
  18. package/generated/ghes-3.5-anicca-diff-to-ghes-3.6.deref.json +21 -0
  19. package/generated/ghes-3.5-diff-to-api.github.com.deref.json +1 -1
  20. package/generated/ghes-3.5-diff-to-api.github.com.json +1 -1
  21. package/generated/ghes-3.5-diff-to-ghes-3.6.deref.json +753 -132
  22. package/generated/ghes-3.5-diff-to-ghes-3.6.json +32 -6
  23. package/generated/ghes-3.5.deref.json +915 -293
  24. package/generated/ghes-3.5.json +37 -10
  25. package/generated/ghes-3.6-anicca-diff-to-api.github.com.deref.json +46 -0
  26. package/generated/ghes-3.6-diff-to-api.github.com.deref.json +125 -20
  27. package/generated/ghes-3.6-diff-to-api.github.com.json +110 -6
  28. package/generated/ghes-3.6.deref.json +1236 -419
  29. package/generated/ghes-3.6.json +142 -21
  30. package/generated/github.ae-anicca-diff-to-api.github.com.deref.json +10 -0
  31. package/generated/github.ae-diff-to-api.github.com.deref.json +8 -6
  32. package/generated/github.ae-diff-to-api.github.com.json +8 -6
  33. package/generated/github.ae.deref.json +1001 -288
  34. package/generated/github.ae.json +127 -14
  35. package/package.json +1 -6
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "openapi": "3.0.3",
3
3
  "info": {
4
- "version": "7.9.0",
4
+ "version": "7.11.0",
5
5
  "title": "GitHub's official OpenAPI spec + Octokit extension",
6
6
  "description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
7
7
  "license": {
@@ -95211,8 +95211,9 @@
95211
95211
  },
95212
95212
  "use_squash_pr_title_as_default": {
95213
95213
  "type": "boolean",
95214
- "description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
95215
- "default": false
95214
+ "description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.",
95215
+ "default": false,
95216
+ "deprecated": true
95216
95217
  },
95217
95218
  "squash_merge_commit_title": {
95218
95219
  "type": "string",
@@ -98764,7 +98765,624 @@
98764
98765
  ],
98765
98766
  "responses": {
98766
98767
  "200": {
98767
- "description": "Response",
98768
+ "description": "Response",
98769
+ "content": {
98770
+ "application/json": {
98771
+ "schema": {
98772
+ "title": "Full Team",
98773
+ "description": "Groups of organization members that gives permissions on specified repositories.",
98774
+ "type": "object",
98775
+ "properties": {
98776
+ "id": {
98777
+ "description": "Unique identifier of the team",
98778
+ "example": 42,
98779
+ "type": "integer"
98780
+ },
98781
+ "node_id": {
98782
+ "type": "string",
98783
+ "example": "MDQ6VGVhbTE="
98784
+ },
98785
+ "url": {
98786
+ "description": "URL for the team",
98787
+ "example": "https://api.github.com/organizations/1/team/1",
98788
+ "type": "string",
98789
+ "format": "uri"
98790
+ },
98791
+ "html_url": {
98792
+ "type": "string",
98793
+ "format": "uri",
98794
+ "example": "https://github.com/orgs/rails/teams/core"
98795
+ },
98796
+ "name": {
98797
+ "description": "Name of the team",
98798
+ "example": "Developers",
98799
+ "type": "string"
98800
+ },
98801
+ "slug": {
98802
+ "type": "string",
98803
+ "example": "justice-league"
98804
+ },
98805
+ "description": {
98806
+ "type": "string",
98807
+ "example": "A great team.",
98808
+ "nullable": true
98809
+ },
98810
+ "privacy": {
98811
+ "description": "The level of privacy this team should have",
98812
+ "type": "string",
98813
+ "enum": [
98814
+ "closed",
98815
+ "secret"
98816
+ ],
98817
+ "example": "closed"
98818
+ },
98819
+ "permission": {
98820
+ "description": "Permission that the team will have for its repositories",
98821
+ "example": "push",
98822
+ "type": "string"
98823
+ },
98824
+ "members_url": {
98825
+ "type": "string",
98826
+ "example": "https://api.github.com/organizations/1/team/1/members{/member}"
98827
+ },
98828
+ "repositories_url": {
98829
+ "type": "string",
98830
+ "format": "uri",
98831
+ "example": "https://api.github.com/organizations/1/team/1/repos"
98832
+ },
98833
+ "parent": {
98834
+ "title": "Team Simple",
98835
+ "description": "Groups of organization members that gives permissions on specified repositories.",
98836
+ "type": "object",
98837
+ "properties": {
98838
+ "id": {
98839
+ "description": "Unique identifier of the team",
98840
+ "type": "integer",
98841
+ "example": 1
98842
+ },
98843
+ "node_id": {
98844
+ "type": "string",
98845
+ "example": "MDQ6VGVhbTE="
98846
+ },
98847
+ "url": {
98848
+ "description": "URL for the team",
98849
+ "type": "string",
98850
+ "format": "uri",
98851
+ "example": "https://api.github.com/organizations/1/team/1"
98852
+ },
98853
+ "members_url": {
98854
+ "type": "string",
98855
+ "example": "https://api.github.com/organizations/1/team/1/members{/member}"
98856
+ },
98857
+ "name": {
98858
+ "description": "Name of the team",
98859
+ "type": "string",
98860
+ "example": "Justice League"
98861
+ },
98862
+ "description": {
98863
+ "description": "Description of the team",
98864
+ "type": "string",
98865
+ "nullable": true,
98866
+ "example": "A great team."
98867
+ },
98868
+ "permission": {
98869
+ "description": "Permission that the team will have for its repositories",
98870
+ "type": "string",
98871
+ "example": "admin"
98872
+ },
98873
+ "privacy": {
98874
+ "description": "The level of privacy this team should have",
98875
+ "type": "string",
98876
+ "example": "closed"
98877
+ },
98878
+ "html_url": {
98879
+ "type": "string",
98880
+ "format": "uri",
98881
+ "example": "https://github.com/orgs/rails/teams/core"
98882
+ },
98883
+ "repositories_url": {
98884
+ "type": "string",
98885
+ "format": "uri",
98886
+ "example": "https://api.github.com/organizations/1/team/1/repos"
98887
+ },
98888
+ "slug": {
98889
+ "type": "string",
98890
+ "example": "justice-league"
98891
+ },
98892
+ "ldap_dn": {
98893
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
98894
+ "example": "uid=example,ou=users,dc=github,dc=com",
98895
+ "type": "string"
98896
+ }
98897
+ },
98898
+ "required": [
98899
+ "id",
98900
+ "node_id",
98901
+ "url",
98902
+ "members_url",
98903
+ "name",
98904
+ "description",
98905
+ "permission",
98906
+ "html_url",
98907
+ "repositories_url",
98908
+ "slug"
98909
+ ],
98910
+ "nullable": true
98911
+ },
98912
+ "members_count": {
98913
+ "type": "integer",
98914
+ "example": 3
98915
+ },
98916
+ "repos_count": {
98917
+ "type": "integer",
98918
+ "example": 10
98919
+ },
98920
+ "created_at": {
98921
+ "type": "string",
98922
+ "format": "date-time",
98923
+ "example": "2017-07-14T16:53:42Z"
98924
+ },
98925
+ "updated_at": {
98926
+ "type": "string",
98927
+ "format": "date-time",
98928
+ "example": "2017-08-17T12:37:15Z"
98929
+ },
98930
+ "organization": {
98931
+ "title": "Team Organization",
98932
+ "description": "Team Organization",
98933
+ "type": "object",
98934
+ "properties": {
98935
+ "login": {
98936
+ "type": "string",
98937
+ "example": "github"
98938
+ },
98939
+ "id": {
98940
+ "type": "integer",
98941
+ "example": 1
98942
+ },
98943
+ "node_id": {
98944
+ "type": "string",
98945
+ "example": "MDEyOk9yZ2FuaXphdGlvbjE="
98946
+ },
98947
+ "url": {
98948
+ "type": "string",
98949
+ "format": "uri",
98950
+ "example": "https://api.github.com/orgs/github"
98951
+ },
98952
+ "repos_url": {
98953
+ "type": "string",
98954
+ "format": "uri",
98955
+ "example": "https://api.github.com/orgs/github/repos"
98956
+ },
98957
+ "events_url": {
98958
+ "type": "string",
98959
+ "format": "uri",
98960
+ "example": "https://api.github.com/orgs/github/events"
98961
+ },
98962
+ "hooks_url": {
98963
+ "type": "string",
98964
+ "example": "https://api.github.com/orgs/github/hooks"
98965
+ },
98966
+ "issues_url": {
98967
+ "type": "string",
98968
+ "example": "https://api.github.com/orgs/github/issues"
98969
+ },
98970
+ "members_url": {
98971
+ "type": "string",
98972
+ "example": "https://api.github.com/orgs/github/members{/member}"
98973
+ },
98974
+ "public_members_url": {
98975
+ "type": "string",
98976
+ "example": "https://api.github.com/orgs/github/public_members{/member}"
98977
+ },
98978
+ "avatar_url": {
98979
+ "type": "string",
98980
+ "example": "https://github.com/images/error/octocat_happy.gif"
98981
+ },
98982
+ "description": {
98983
+ "type": "string",
98984
+ "example": "A great organization",
98985
+ "nullable": true
98986
+ },
98987
+ "name": {
98988
+ "type": "string",
98989
+ "example": "github"
98990
+ },
98991
+ "company": {
98992
+ "type": "string",
98993
+ "example": "GitHub"
98994
+ },
98995
+ "blog": {
98996
+ "type": "string",
98997
+ "format": "uri",
98998
+ "example": "https://github.com/blog"
98999
+ },
99000
+ "location": {
99001
+ "type": "string",
99002
+ "example": "San Francisco"
99003
+ },
99004
+ "email": {
99005
+ "type": "string",
99006
+ "format": "email",
99007
+ "example": "octocat@github.com"
99008
+ },
99009
+ "twitter_username": {
99010
+ "type": "string",
99011
+ "example": "github",
99012
+ "nullable": true
99013
+ },
99014
+ "is_verified": {
99015
+ "type": "boolean",
99016
+ "example": true
99017
+ },
99018
+ "has_organization_projects": {
99019
+ "type": "boolean",
99020
+ "example": true
99021
+ },
99022
+ "has_repository_projects": {
99023
+ "type": "boolean",
99024
+ "example": true
99025
+ },
99026
+ "public_repos": {
99027
+ "type": "integer",
99028
+ "example": 2
99029
+ },
99030
+ "public_gists": {
99031
+ "type": "integer",
99032
+ "example": 1
99033
+ },
99034
+ "followers": {
99035
+ "type": "integer",
99036
+ "example": 20
99037
+ },
99038
+ "following": {
99039
+ "type": "integer",
99040
+ "example": 0
99041
+ },
99042
+ "html_url": {
99043
+ "type": "string",
99044
+ "format": "uri",
99045
+ "example": "https://github.com/octocat"
99046
+ },
99047
+ "created_at": {
99048
+ "type": "string",
99049
+ "format": "date-time",
99050
+ "example": "2008-01-14T04:33:35Z"
99051
+ },
99052
+ "type": {
99053
+ "type": "string",
99054
+ "example": "Organization"
99055
+ },
99056
+ "total_private_repos": {
99057
+ "type": "integer",
99058
+ "example": 100
99059
+ },
99060
+ "owned_private_repos": {
99061
+ "type": "integer",
99062
+ "example": 100
99063
+ },
99064
+ "private_gists": {
99065
+ "type": "integer",
99066
+ "example": 81,
99067
+ "nullable": true
99068
+ },
99069
+ "disk_usage": {
99070
+ "type": "integer",
99071
+ "example": 10000,
99072
+ "nullable": true
99073
+ },
99074
+ "collaborators": {
99075
+ "type": "integer",
99076
+ "example": 8,
99077
+ "nullable": true
99078
+ },
99079
+ "billing_email": {
99080
+ "type": "string",
99081
+ "format": "email",
99082
+ "example": "org@example.com",
99083
+ "nullable": true
99084
+ },
99085
+ "plan": {
99086
+ "type": "object",
99087
+ "properties": {
99088
+ "name": {
99089
+ "type": "string"
99090
+ },
99091
+ "space": {
99092
+ "type": "integer"
99093
+ },
99094
+ "private_repos": {
99095
+ "type": "integer"
99096
+ },
99097
+ "filled_seats": {
99098
+ "type": "integer"
99099
+ },
99100
+ "seats": {
99101
+ "type": "integer"
99102
+ }
99103
+ },
99104
+ "required": [
99105
+ "name",
99106
+ "space",
99107
+ "private_repos"
99108
+ ]
99109
+ },
99110
+ "default_repository_permission": {
99111
+ "type": "string",
99112
+ "nullable": true
99113
+ },
99114
+ "members_can_create_repositories": {
99115
+ "type": "boolean",
99116
+ "example": true,
99117
+ "nullable": true
99118
+ },
99119
+ "two_factor_requirement_enabled": {
99120
+ "type": "boolean",
99121
+ "example": true,
99122
+ "nullable": true
99123
+ },
99124
+ "members_allowed_repository_creation_type": {
99125
+ "type": "string",
99126
+ "example": "all"
99127
+ },
99128
+ "members_can_create_public_repositories": {
99129
+ "type": "boolean",
99130
+ "example": true
99131
+ },
99132
+ "members_can_create_private_repositories": {
99133
+ "type": "boolean",
99134
+ "example": true
99135
+ },
99136
+ "members_can_create_internal_repositories": {
99137
+ "type": "boolean",
99138
+ "example": true
99139
+ },
99140
+ "members_can_create_pages": {
99141
+ "type": "boolean",
99142
+ "example": true
99143
+ },
99144
+ "members_can_create_public_pages": {
99145
+ "type": "boolean",
99146
+ "example": true
99147
+ },
99148
+ "members_can_create_private_pages": {
99149
+ "type": "boolean",
99150
+ "example": true
99151
+ },
99152
+ "members_can_fork_private_repositories": {
99153
+ "type": "boolean",
99154
+ "example": false,
99155
+ "nullable": true
99156
+ },
99157
+ "updated_at": {
99158
+ "type": "string",
99159
+ "format": "date-time"
99160
+ }
99161
+ },
99162
+ "required": [
99163
+ "login",
99164
+ "url",
99165
+ "id",
99166
+ "node_id",
99167
+ "repos_url",
99168
+ "events_url",
99169
+ "hooks_url",
99170
+ "issues_url",
99171
+ "members_url",
99172
+ "public_members_url",
99173
+ "avatar_url",
99174
+ "description",
99175
+ "html_url",
99176
+ "has_organization_projects",
99177
+ "has_repository_projects",
99178
+ "public_repos",
99179
+ "public_gists",
99180
+ "followers",
99181
+ "following",
99182
+ "type",
99183
+ "created_at",
99184
+ "updated_at"
99185
+ ]
99186
+ },
99187
+ "ldap_dn": {
99188
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
99189
+ "example": "uid=example,ou=users,dc=github,dc=com",
99190
+ "type": "string"
99191
+ }
99192
+ },
99193
+ "required": [
99194
+ "id",
99195
+ "node_id",
99196
+ "url",
99197
+ "members_url",
99198
+ "name",
99199
+ "description",
99200
+ "permission",
99201
+ "html_url",
99202
+ "repositories_url",
99203
+ "slug",
99204
+ "created_at",
99205
+ "updated_at",
99206
+ "members_count",
99207
+ "repos_count",
99208
+ "organization"
99209
+ ]
99210
+ },
99211
+ "examples": {
99212
+ "default": {
99213
+ "value": {
99214
+ "id": 1,
99215
+ "node_id": "MDQ6VGVhbTE=",
99216
+ "url": "https://api.github.com/teams/1",
99217
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
99218
+ "name": "Justice League",
99219
+ "slug": "justice-league",
99220
+ "description": "A great team.",
99221
+ "privacy": "closed",
99222
+ "permission": "admin",
99223
+ "members_url": "https://api.github.com/teams/1/members{/member}",
99224
+ "repositories_url": "https://api.github.com/teams/1/repos",
99225
+ "members_count": 3,
99226
+ "repos_count": 10,
99227
+ "created_at": "2017-07-14T16:53:42Z",
99228
+ "updated_at": "2017-08-17T12:37:15Z",
99229
+ "organization": {
99230
+ "login": "github",
99231
+ "id": 1,
99232
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
99233
+ "url": "https://api.github.com/orgs/github",
99234
+ "repos_url": "https://api.github.com/orgs/github/repos",
99235
+ "events_url": "https://api.github.com/orgs/github/events",
99236
+ "hooks_url": "https://api.github.com/orgs/github/hooks",
99237
+ "issues_url": "https://api.github.com/orgs/github/issues",
99238
+ "members_url": "https://api.github.com/orgs/github/members{/member}",
99239
+ "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
99240
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
99241
+ "description": "A great organization",
99242
+ "name": "github",
99243
+ "company": "GitHub",
99244
+ "blog": "https://github.com/blog",
99245
+ "location": "San Francisco",
99246
+ "email": "octocat@github.com",
99247
+ "has_organization_projects": true,
99248
+ "has_repository_projects": true,
99249
+ "public_repos": 2,
99250
+ "public_gists": 1,
99251
+ "followers": 20,
99252
+ "following": 0,
99253
+ "html_url": "https://github.com/octocat",
99254
+ "created_at": "2008-01-14T04:33:35Z",
99255
+ "updated_at": "2017-08-17T12:37:15Z",
99256
+ "type": "Organization"
99257
+ },
99258
+ "ldap_dn": "uid=asdf,ou=users,dc=github,dc=com"
99259
+ }
99260
+ }
99261
+ }
99262
+ }
99263
+ }
99264
+ },
99265
+ "404": {
99266
+ "description": "Resource not found",
99267
+ "content": {
99268
+ "application/json": {
99269
+ "schema": {
99270
+ "title": "Basic Error",
99271
+ "description": "Basic Error",
99272
+ "type": "object",
99273
+ "properties": {
99274
+ "message": {
99275
+ "type": "string"
99276
+ },
99277
+ "documentation_url": {
99278
+ "type": "string"
99279
+ },
99280
+ "url": {
99281
+ "type": "string"
99282
+ },
99283
+ "status": {
99284
+ "type": "string"
99285
+ }
99286
+ }
99287
+ }
99288
+ }
99289
+ }
99290
+ }
99291
+ },
99292
+ "x-github": {
99293
+ "githubCloudOnly": false,
99294
+ "enabledForGitHubApps": true,
99295
+ "category": "teams",
99296
+ "subcategory": null
99297
+ },
99298
+ "x-octokit": {}
99299
+ },
99300
+ "patch": {
99301
+ "summary": "Update a team",
99302
+ "description": "To edit a team, the authenticated user must either be an organization owner or a team maintainer.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/{org_id}/team/{team_id}`.",
99303
+ "tags": [
99304
+ "teams"
99305
+ ],
99306
+ "operationId": "teams/update-in-org",
99307
+ "externalDocs": {
99308
+ "description": "API method documentation",
99309
+ "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/teams#update-a-team"
99310
+ },
99311
+ "parameters": [
99312
+ {
99313
+ "name": "org",
99314
+ "description": "The organization name. The name is not case sensitive.",
99315
+ "in": "path",
99316
+ "required": true,
99317
+ "schema": {
99318
+ "type": "string"
99319
+ }
99320
+ },
99321
+ {
99322
+ "name": "team_slug",
99323
+ "description": "The slug of the team name.",
99324
+ "in": "path",
99325
+ "required": true,
99326
+ "schema": {
99327
+ "type": "string"
99328
+ }
99329
+ }
99330
+ ],
99331
+ "requestBody": {
99332
+ "required": false,
99333
+ "content": {
99334
+ "application/json": {
99335
+ "schema": {
99336
+ "type": "object",
99337
+ "properties": {
99338
+ "name": {
99339
+ "type": "string",
99340
+ "description": "The name of the team."
99341
+ },
99342
+ "description": {
99343
+ "type": "string",
99344
+ "description": "The description of the team."
99345
+ },
99346
+ "privacy": {
99347
+ "type": "string",
99348
+ "description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
99349
+ "enum": [
99350
+ "secret",
99351
+ "closed"
99352
+ ]
99353
+ },
99354
+ "permission": {
99355
+ "type": "string",
99356
+ "description": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
99357
+ "enum": [
99358
+ "pull",
99359
+ "push",
99360
+ "admin"
99361
+ ],
99362
+ "default": "pull"
99363
+ },
99364
+ "parent_team_id": {
99365
+ "type": "integer",
99366
+ "description": "The ID of a team to set as the parent team.",
99367
+ "nullable": true
99368
+ }
99369
+ }
99370
+ },
99371
+ "examples": {
99372
+ "default": {
99373
+ "value": {
99374
+ "name": "new team name",
99375
+ "description": "new team description",
99376
+ "privacy": "closed"
99377
+ }
99378
+ }
99379
+ }
99380
+ }
99381
+ }
99382
+ },
99383
+ "responses": {
99384
+ "200": {
99385
+ "description": "Response when the updated information already exists",
98768
99386
  "content": {
98769
99387
  "application/json": {
98770
99388
  "schema": {
@@ -99261,125 +99879,6 @@
99261
99879
  }
99262
99880
  }
99263
99881
  },
99264
- "404": {
99265
- "description": "Resource not found",
99266
- "content": {
99267
- "application/json": {
99268
- "schema": {
99269
- "title": "Basic Error",
99270
- "description": "Basic Error",
99271
- "type": "object",
99272
- "properties": {
99273
- "message": {
99274
- "type": "string"
99275
- },
99276
- "documentation_url": {
99277
- "type": "string"
99278
- },
99279
- "url": {
99280
- "type": "string"
99281
- },
99282
- "status": {
99283
- "type": "string"
99284
- }
99285
- }
99286
- }
99287
- }
99288
- }
99289
- }
99290
- },
99291
- "x-github": {
99292
- "githubCloudOnly": false,
99293
- "enabledForGitHubApps": true,
99294
- "category": "teams",
99295
- "subcategory": null
99296
- },
99297
- "x-octokit": {}
99298
- },
99299
- "patch": {
99300
- "summary": "Update a team",
99301
- "description": "To edit a team, the authenticated user must either be an organization owner or a team maintainer.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/{org_id}/team/{team_id}`.",
99302
- "tags": [
99303
- "teams"
99304
- ],
99305
- "operationId": "teams/update-in-org",
99306
- "externalDocs": {
99307
- "description": "API method documentation",
99308
- "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/teams#update-a-team"
99309
- },
99310
- "parameters": [
99311
- {
99312
- "name": "org",
99313
- "description": "The organization name. The name is not case sensitive.",
99314
- "in": "path",
99315
- "required": true,
99316
- "schema": {
99317
- "type": "string"
99318
- }
99319
- },
99320
- {
99321
- "name": "team_slug",
99322
- "description": "The slug of the team name.",
99323
- "in": "path",
99324
- "required": true,
99325
- "schema": {
99326
- "type": "string"
99327
- }
99328
- }
99329
- ],
99330
- "requestBody": {
99331
- "required": false,
99332
- "content": {
99333
- "application/json": {
99334
- "schema": {
99335
- "type": "object",
99336
- "properties": {
99337
- "name": {
99338
- "type": "string",
99339
- "description": "The name of the team."
99340
- },
99341
- "description": {
99342
- "type": "string",
99343
- "description": "The description of the team."
99344
- },
99345
- "privacy": {
99346
- "type": "string",
99347
- "description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
99348
- "enum": [
99349
- "secret",
99350
- "closed"
99351
- ]
99352
- },
99353
- "permission": {
99354
- "type": "string",
99355
- "description": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
99356
- "enum": [
99357
- "pull",
99358
- "push",
99359
- "admin"
99360
- ],
99361
- "default": "pull"
99362
- },
99363
- "parent_team_id": {
99364
- "type": "integer",
99365
- "description": "The ID of a team to set as the parent team.",
99366
- "nullable": true
99367
- }
99368
- }
99369
- },
99370
- "examples": {
99371
- "default": {
99372
- "value": {
99373
- "name": "new team name",
99374
- "description": "new team description",
99375
- "privacy": "closed"
99376
- }
99377
- }
99378
- }
99379
- }
99380
- }
99381
- },
99382
- "responses": {
99383
99882
  "201": {
99384
99883
  "description": "Response",
99385
99884
  "content": {
@@ -99877,6 +100376,127 @@
99877
100376
  }
99878
100377
  }
99879
100378
  }
100379
+ },
100380
+ "403": {
100381
+ "description": "Forbidden",
100382
+ "content": {
100383
+ "application/json": {
100384
+ "schema": {
100385
+ "title": "Basic Error",
100386
+ "description": "Basic Error",
100387
+ "type": "object",
100388
+ "properties": {
100389
+ "message": {
100390
+ "type": "string"
100391
+ },
100392
+ "documentation_url": {
100393
+ "type": "string"
100394
+ },
100395
+ "url": {
100396
+ "type": "string"
100397
+ },
100398
+ "status": {
100399
+ "type": "string"
100400
+ }
100401
+ }
100402
+ }
100403
+ }
100404
+ }
100405
+ },
100406
+ "404": {
100407
+ "description": "Resource not found",
100408
+ "content": {
100409
+ "application/json": {
100410
+ "schema": {
100411
+ "title": "Basic Error",
100412
+ "description": "Basic Error",
100413
+ "type": "object",
100414
+ "properties": {
100415
+ "message": {
100416
+ "type": "string"
100417
+ },
100418
+ "documentation_url": {
100419
+ "type": "string"
100420
+ },
100421
+ "url": {
100422
+ "type": "string"
100423
+ },
100424
+ "status": {
100425
+ "type": "string"
100426
+ }
100427
+ }
100428
+ }
100429
+ }
100430
+ }
100431
+ },
100432
+ "422": {
100433
+ "description": "Validation failed",
100434
+ "content": {
100435
+ "application/json": {
100436
+ "schema": {
100437
+ "title": "Validation Error",
100438
+ "description": "Validation Error",
100439
+ "type": "object",
100440
+ "required": [
100441
+ "message",
100442
+ "documentation_url"
100443
+ ],
100444
+ "properties": {
100445
+ "message": {
100446
+ "type": "string"
100447
+ },
100448
+ "documentation_url": {
100449
+ "type": "string"
100450
+ },
100451
+ "errors": {
100452
+ "type": "array",
100453
+ "items": {
100454
+ "type": "object",
100455
+ "required": [
100456
+ "code"
100457
+ ],
100458
+ "properties": {
100459
+ "resource": {
100460
+ "type": "string"
100461
+ },
100462
+ "field": {
100463
+ "type": "string"
100464
+ },
100465
+ "message": {
100466
+ "type": "string"
100467
+ },
100468
+ "code": {
100469
+ "type": "string"
100470
+ },
100471
+ "index": {
100472
+ "type": "integer"
100473
+ },
100474
+ "value": {
100475
+ "oneOf": [
100476
+ {
100477
+ "type": "string",
100478
+ "nullable": true
100479
+ },
100480
+ {
100481
+ "type": "integer",
100482
+ "nullable": true
100483
+ },
100484
+ {
100485
+ "type": "array",
100486
+ "nullable": true,
100487
+ "items": {
100488
+ "type": "string"
100489
+ }
100490
+ }
100491
+ ]
100492
+ }
100493
+ }
100494
+ }
100495
+ }
100496
+ }
100497
+ }
100498
+ }
100499
+ }
99880
100500
  }
99881
100501
  },
99882
100502
  "x-github": {
@@ -121289,8 +121909,9 @@
121289
121909
  },
121290
121910
  "use_squash_pr_title_as_default": {
121291
121911
  "type": "boolean",
121292
- "description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
121293
- "default": false
121912
+ "description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.",
121913
+ "default": false,
121914
+ "deprecated": true
121294
121915
  },
121295
121916
  "squash_merge_commit_title": {
121296
121917
  "type": "string",
@@ -142981,7 +143602,7 @@
142981
143602
  },
142982
143603
  "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": {
142983
143604
  "get": {
142984
- "summary": "List workflow runs",
143605
+ "summary": "List workflow runs for a workflow",
142985
143606
  "description": "List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/enterprise-server@3.4/rest/overview/resources-in-the-rest-api#parameters).\n\nAnyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope.",
142986
143607
  "tags": [
142987
143608
  "actions"
@@ -204007,6 +204628,7 @@
204007
204628
  "description": "The base branch and head branch to compare. This parameter expects the format `{base}...{head}`.",
204008
204629
  "in": "path",
204009
204630
  "required": true,
204631
+ "x-multi-segment": true,
204010
204632
  "schema": {
204011
204633
  "type": "string"
204012
204634
  }
@@ -207541,7 +208163,7 @@
207541
208163
  },
207542
208164
  "sha": {
207543
208165
  "type": "string",
207544
- "description": "The blob SHA of the file being replaced."
208166
+ "description": "The blob SHA of the file being deleted."
207545
208167
  },
207546
208168
  "branch": {
207547
208169
  "type": "string",
@@ -228369,7 +228991,7 @@
228369
228991
  "/repos/{owner}/{repo}/git/trees/{tree_sha}": {
228370
228992
  "get": {
228371
228993
  "summary": "Get a tree",
228372
- "description": "Returns a single tree using the SHA1 value for that tree.\n\nIf `truncated` is `true` in the response then the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, use the non-recursive method of fetching trees, and fetch one sub-tree at a time.",
228994
+ "description": "Returns a single tree using the SHA1 value for that tree.\n\nIf `truncated` is `true` in the response then the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, use the non-recursive method of fetching trees, and fetch one sub-tree at a time.\n\n\n**Note**: The limit for the `tree` array is 100,000 entries with a maximum size of 7 MB when using the `recursive` parameter.",
228373
228995
  "tags": [
228374
228996
  "git"
228375
228997
  ],