@octokit/openapi 7.4.0 → 7.7.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 +2550 -227
  2. package/generated/api.github.com.json +1233 -110
  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 +31 -25
  6. package/generated/ghes-3.2-diff-to-ghes-3.3.json +25 -14
  7. package/generated/ghes-3.2.deref.json +319 -242
  8. package/generated/ghes-3.2.json +558 -26
  9. package/generated/ghes-3.3-anicca-diff-to-ghes-3.4.deref.json +0 -16
  10. package/generated/ghes-3.3-diff-to-ghes-3.4.deref.json +187 -223
  11. package/generated/ghes-3.3-diff-to-ghes-3.4.json +432 -10
  12. package/generated/ghes-3.3.deref.json +319 -244
  13. package/generated/ghes-3.3.json +558 -27
  14. package/generated/ghes-3.4-diff-to-ghes-3.5.deref.json +9 -1
  15. package/generated/ghes-3.4-diff-to-ghes-3.5.json +9 -1
  16. package/generated/ghes-3.4.deref.json +322 -230
  17. package/generated/ghes-3.4.json +566 -29
  18. package/generated/ghes-3.5-anicca-diff-to-ghes-3.6.deref.json +784 -135
  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 +46103 -29773
  22. package/generated/ghes-3.5-diff-to-ghes-3.6.json +7990 -3300
  23. package/generated/ghes-3.5.deref.json +406 -242
  24. package/generated/ghes-3.5.json +650 -41
  25. package/generated/ghes-3.6-anicca-diff-to-api.github.com.deref.json +504 -89
  26. package/generated/ghes-3.6-diff-to-api.github.com.deref.json +18076 -6602
  27. package/generated/ghes-3.6-diff-to-api.github.com.json +6698 -4308
  28. package/generated/ghes-3.6.deref.json +1275 -241
  29. package/generated/ghes-3.6.json +839 -41
  30. package/generated/github.ae-anicca-diff-to-api.github.com.deref.json +332 -32
  31. package/generated/github.ae-diff-to-api.github.com.deref.json +24643 -16633
  32. package/generated/github.ae-diff-to-api.github.com.json +1184 -30
  33. package/generated/github.ae.deref.json +1298 -163
  34. package/generated/github.ae.json +878 -35
  35. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "openapi": "3.0.3",
3
3
  "info": {
4
- "version": "7.4.0",
4
+ "version": "7.7.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": {
@@ -4251,14 +4251,6 @@
4251
4251
  "write"
4252
4252
  ]
4253
4253
  },
4254
- "organization_custom_roles": {
4255
- "type": "string",
4256
- "description": "The level of permission to grant the access token for custom roles management.",
4257
- "enum": [
4258
- "read",
4259
- "write"
4260
- ]
4261
- },
4262
4254
  "deployments": {
4263
4255
  "type": "string",
4264
4256
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -5349,14 +5341,6 @@
5349
5341
  "write"
5350
5342
  ]
5351
5343
  },
5352
- "organization_custom_roles": {
5353
- "type": "string",
5354
- "description": "The level of permission to grant the access token for custom roles management.",
5355
- "enum": [
5356
- "read",
5357
- "write"
5358
- ]
5359
- },
5360
5344
  "deployments": {
5361
5345
  "type": "string",
5362
5346
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -6029,14 +6013,6 @@
6029
6013
  "write"
6030
6014
  ]
6031
6015
  },
6032
- "organization_custom_roles": {
6033
- "type": "string",
6034
- "description": "The level of permission to grant the access token for custom roles management.",
6035
- "enum": [
6036
- "read",
6037
- "write"
6038
- ]
6039
- },
6040
6016
  "deployments": {
6041
6017
  "type": "string",
6042
6018
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -8614,14 +8590,6 @@
8614
8590
  "write"
8615
8591
  ]
8616
8592
  },
8617
- "organization_custom_roles": {
8618
- "type": "string",
8619
- "description": "The level of permission to grant the access token for custom roles management.",
8620
- "enum": [
8621
- "read",
8622
- "write"
8623
- ]
8624
- },
8625
8593
  "deployments": {
8626
8594
  "type": "string",
8627
8595
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -9419,14 +9387,6 @@
9419
9387
  "write"
9420
9388
  ]
9421
9389
  },
9422
- "organization_custom_roles": {
9423
- "type": "string",
9424
- "description": "The level of permission to grant the access token for custom roles management.",
9425
- "enum": [
9426
- "read",
9427
- "write"
9428
- ]
9429
- },
9430
9390
  "deployments": {
9431
9391
  "type": "string",
9432
9392
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -10088,14 +10048,6 @@
10088
10048
  "write"
10089
10049
  ]
10090
10050
  },
10091
- "organization_custom_roles": {
10092
- "type": "string",
10093
- "description": "The level of permission to grant the access token for custom roles management.",
10094
- "enum": [
10095
- "read",
10096
- "write"
10097
- ]
10098
- },
10099
10051
  "deployments": {
10100
10052
  "type": "string",
10101
10053
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -10389,14 +10341,6 @@
10389
10341
  "write"
10390
10342
  ]
10391
10343
  },
10392
- "organization_custom_roles": {
10393
- "type": "string",
10394
- "description": "The level of permission to grant the access token for custom roles management.",
10395
- "enum": [
10396
- "read",
10397
- "write"
10398
- ]
10399
- },
10400
10344
  "deployments": {
10401
10345
  "type": "string",
10402
10346
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -13424,14 +13368,6 @@
13424
13368
  "write"
13425
13369
  ]
13426
13370
  },
13427
- "organization_custom_roles": {
13428
- "type": "string",
13429
- "description": "The level of permission to grant the access token for custom roles management.",
13430
- "enum": [
13431
- "read",
13432
- "write"
13433
- ]
13434
- },
13435
13371
  "deployments": {
13436
13372
  "type": "string",
13437
13373
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -14283,14 +14219,6 @@
14283
14219
  "write"
14284
14220
  ]
14285
14221
  },
14286
- "organization_custom_roles": {
14287
- "type": "string",
14288
- "description": "The level of permission to grant the access token for custom roles management.",
14289
- "enum": [
14290
- "read",
14291
- "write"
14292
- ]
14293
- },
14294
14222
  "deployments": {
14295
14223
  "type": "string",
14296
14224
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -15066,14 +14994,6 @@
15066
14994
  "write"
15067
14995
  ]
15068
14996
  },
15069
- "organization_custom_roles": {
15070
- "type": "string",
15071
- "description": "The level of permission to grant the access token for custom roles management.",
15072
- "enum": [
15073
- "read",
15074
- "write"
15075
- ]
15076
- },
15077
14997
  "deployments": {
15078
14998
  "type": "string",
15079
14999
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -15557,14 +15477,6 @@
15557
15477
  "write"
15558
15478
  ]
15559
15479
  },
15560
- "organization_custom_roles": {
15561
- "type": "string",
15562
- "description": "The level of permission to grant the access token for custom roles management.",
15563
- "enum": [
15564
- "read",
15565
- "write"
15566
- ]
15567
- },
15568
15480
  "deployments": {
15569
15481
  "type": "string",
15570
15482
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -16481,14 +16393,6 @@
16481
16393
  "write"
16482
16394
  ]
16483
16395
  },
16484
- "organization_custom_roles": {
16485
- "type": "string",
16486
- "description": "The level of permission to grant the access token for custom roles management.",
16487
- "enum": [
16488
- "read",
16489
- "write"
16490
- ]
16491
- },
16492
16396
  "deployments": {
16493
16397
  "type": "string",
16494
16398
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -17257,14 +17161,6 @@
17257
17161
  "write"
17258
17162
  ]
17259
17163
  },
17260
- "organization_custom_roles": {
17261
- "type": "string",
17262
- "description": "The level of permission to grant the access token for custom roles management.",
17263
- "enum": [
17264
- "read",
17265
- "write"
17266
- ]
17267
- },
17268
17164
  "deployments": {
17269
17165
  "type": "string",
17270
17166
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -18448,14 +18344,6 @@
18448
18344
  "write"
18449
18345
  ]
18450
18346
  },
18451
- "organization_custom_roles": {
18452
- "type": "string",
18453
- "description": "The level of permission to grant the access token for custom roles management.",
18454
- "enum": [
18455
- "read",
18456
- "write"
18457
- ]
18458
- },
18459
18347
  "deployments": {
18460
18348
  "type": "string",
18461
18349
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -19317,14 +19205,6 @@
19317
19205
  "write"
19318
19206
  ]
19319
19207
  },
19320
- "organization_custom_roles": {
19321
- "type": "string",
19322
- "description": "The level of permission to grant the access token for custom roles management.",
19323
- "enum": [
19324
- "read",
19325
- "write"
19326
- ]
19327
- },
19328
19208
  "deployments": {
19329
19209
  "type": "string",
19330
19210
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -20255,14 +20135,6 @@
20255
20135
  "write"
20256
20136
  ]
20257
20137
  },
20258
- "organization_custom_roles": {
20259
- "type": "string",
20260
- "description": "The level of permission to grant the access token for custom roles management.",
20261
- "enum": [
20262
- "read",
20263
- "write"
20264
- ]
20265
- },
20266
20138
  "deployments": {
20267
20139
  "type": "string",
20268
20140
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -20943,14 +20815,6 @@
20943
20815
  "write"
20944
20816
  ]
20945
20817
  },
20946
- "organization_custom_roles": {
20947
- "type": "string",
20948
- "description": "The level of permission to grant the access token for custom roles management.",
20949
- "enum": [
20950
- "read",
20951
- "write"
20952
- ]
20953
- },
20954
20818
  "deployments": {
20955
20819
  "type": "string",
20956
20820
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -21859,14 +21723,6 @@
21859
21723
  "write"
21860
21724
  ]
21861
21725
  },
21862
- "organization_custom_roles": {
21863
- "type": "string",
21864
- "description": "The level of permission to grant the access token for custom roles management.",
21865
- "enum": [
21866
- "read",
21867
- "write"
21868
- ]
21869
- },
21870
21726
  "deployments": {
21871
21727
  "type": "string",
21872
21728
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -22547,14 +22403,6 @@
22547
22403
  "write"
22548
22404
  ]
22549
22405
  },
22550
- "organization_custom_roles": {
22551
- "type": "string",
22552
- "description": "The level of permission to grant the access token for custom roles management.",
22553
- "enum": [
22554
- "read",
22555
- "write"
22556
- ]
22557
- },
22558
22406
  "deployments": {
22559
22407
  "type": "string",
22560
22408
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -23341,14 +23189,6 @@
23341
23189
  "write"
23342
23190
  ]
23343
23191
  },
23344
- "organization_custom_roles": {
23345
- "type": "string",
23346
- "description": "The level of permission to grant the access token for custom roles management.",
23347
- "enum": [
23348
- "read",
23349
- "write"
23350
- ]
23351
- },
23352
23192
  "deployments": {
23353
23193
  "type": "string",
23354
23194
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -24162,14 +24002,6 @@
24162
24002
  "write"
24163
24003
  ]
24164
24004
  },
24165
- "organization_custom_roles": {
24166
- "type": "string",
24167
- "description": "The level of permission to grant the access token for custom roles management.",
24168
- "enum": [
24169
- "read",
24170
- "write"
24171
- ]
24172
- },
24173
24005
  "deployments": {
24174
24006
  "type": "string",
24175
24007
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -76383,14 +76215,6 @@
76383
76215
  "write"
76384
76216
  ]
76385
76217
  },
76386
- "organization_custom_roles": {
76387
- "type": "string",
76388
- "description": "The level of permission to grant the access token for custom roles management.",
76389
- "enum": [
76390
- "read",
76391
- "write"
76392
- ]
76393
- },
76394
76218
  "deployments": {
76395
76219
  "type": "string",
76396
76220
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -77202,14 +77026,6 @@
77202
77026
  "write"
77203
77027
  ]
77204
77028
  },
77205
- "organization_custom_roles": {
77206
- "type": "string",
77207
- "description": "The level of permission to grant the access token for custom roles management.",
77208
- "enum": [
77209
- "read",
77210
- "write"
77211
- ]
77212
- },
77213
77029
  "deployments": {
77214
77030
  "type": "string",
77215
77031
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -87917,8 +87733,8 @@
87917
87733
  "example": "2017-08-17T12:37:15Z"
87918
87734
  },
87919
87735
  "organization": {
87920
- "title": "Organization Full",
87921
- "description": "Organization Full",
87736
+ "title": "Team Organization",
87737
+ "description": "Team Organization",
87922
87738
  "type": "object",
87923
87739
  "properties": {
87924
87740
  "login": {
@@ -88548,8 +88364,8 @@
88548
88364
  "example": "2017-08-17T12:37:15Z"
88549
88365
  },
88550
88366
  "organization": {
88551
- "title": "Organization Full",
88552
- "description": "Organization Full",
88367
+ "title": "Team Organization",
88368
+ "description": "Team Organization",
88553
88369
  "type": "object",
88554
88370
  "properties": {
88555
88371
  "login": {
@@ -89160,8 +88976,8 @@
89160
88976
  "example": "2017-08-17T12:37:15Z"
89161
88977
  },
89162
88978
  "organization": {
89163
- "title": "Organization Full",
89164
- "description": "Organization Full",
88979
+ "title": "Team Organization",
88980
+ "description": "Team Organization",
89165
88981
  "type": "object",
89166
88982
  "properties": {
89167
88983
  "login": {
@@ -139219,6 +139035,111 @@
139219
139035
  "protected",
139220
139036
  "protection_url"
139221
139037
  ]
139038
+ },
139039
+ "examples": {
139040
+ "default": {
139041
+ "value": {
139042
+ "name": "main",
139043
+ "commit": {
139044
+ "sha": "7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
139045
+ "node_id": "MDY6Q29tbWl0MTI5NjI2OTo3ZmQxYTYwYjAxZjkxYjMxNGY1OTk1NWE0ZTRkNGU4MGQ4ZWRmMTFk",
139046
+ "commit": {
139047
+ "author": {
139048
+ "name": "The Octocat",
139049
+ "email": "octocat@nowhere.com",
139050
+ "date": "2012-03-06T23:06:50Z"
139051
+ },
139052
+ "committer": {
139053
+ "name": "The Octocat",
139054
+ "email": "octocat@nowhere.com",
139055
+ "date": "2012-03-06T23:06:50Z"
139056
+ },
139057
+ "message": "Merge pull request #6 from Spaceghost/patch-1\n\nNew line at end of file.",
139058
+ "tree": {
139059
+ "sha": "b4eecafa9be2f2006ce1b709d6857b07069b4608",
139060
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/b4eecafa9be2f2006ce1b709d6857b07069b4608"
139061
+ },
139062
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
139063
+ "comment_count": 77,
139064
+ "verification": {
139065
+ "verified": false,
139066
+ "reason": "unsigned",
139067
+ "signature": null,
139068
+ "payload": null
139069
+ }
139070
+ },
139071
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
139072
+ "html_url": "https://github.com/octocat/Hello-World/commit/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
139073
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d/comments",
139074
+ "author": {
139075
+ "login": "octocat",
139076
+ "id": 583231,
139077
+ "node_id": "MDQ6VXNlcjU4MzIzMQ==",
139078
+ "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=4",
139079
+ "gravatar_id": "",
139080
+ "url": "https://api.github.com/users/octocat",
139081
+ "html_url": "https://github.com/octocat",
139082
+ "followers_url": "https://api.github.com/users/octocat/followers",
139083
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
139084
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
139085
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
139086
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
139087
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
139088
+ "repos_url": "https://api.github.com/users/octocat/repos",
139089
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
139090
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
139091
+ "type": "User",
139092
+ "site_admin": false
139093
+ },
139094
+ "committer": {
139095
+ "login": "octocat",
139096
+ "id": 583231,
139097
+ "node_id": "MDQ6VXNlcjU4MzIzMQ==",
139098
+ "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=4",
139099
+ "gravatar_id": "",
139100
+ "url": "https://api.github.com/users/octocat",
139101
+ "html_url": "https://github.com/octocat",
139102
+ "followers_url": "https://api.github.com/users/octocat/followers",
139103
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
139104
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
139105
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
139106
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
139107
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
139108
+ "repos_url": "https://api.github.com/users/octocat/repos",
139109
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
139110
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
139111
+ "type": "User",
139112
+ "site_admin": false
139113
+ },
139114
+ "parents": [
139115
+ {
139116
+ "sha": "553c2077f0edc3d5dc5d17262f6aa498e69d6f8e",
139117
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/553c2077f0edc3d5dc5d17262f6aa498e69d6f8e",
139118
+ "html_url": "https://github.com/octocat/Hello-World/commit/553c2077f0edc3d5dc5d17262f6aa498e69d6f8e"
139119
+ },
139120
+ {
139121
+ "sha": "762941318ee16e59dabbacb1b4049eec22f0d303",
139122
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/762941318ee16e59dabbacb1b4049eec22f0d303",
139123
+ "html_url": "https://github.com/octocat/Hello-World/commit/762941318ee16e59dabbacb1b4049eec22f0d303"
139124
+ }
139125
+ ]
139126
+ },
139127
+ "_links": {
139128
+ "self": "https://api.github.com/repos/octocat/Hello-World/branches/main",
139129
+ "html": "https://github.com/octocat/Hello-World/tree/main"
139130
+ },
139131
+ "protected": false,
139132
+ "protection": {
139133
+ "enabled": false,
139134
+ "required_status_checks": {
139135
+ "enforcement_level": "off",
139136
+ "contexts": [],
139137
+ "checks": []
139138
+ }
139139
+ },
139140
+ "protection_url": "https://api.github.com/repos/octocat/Hello-World/branches/main/protection"
139141
+ }
139142
+ }
139222
139143
  }
139223
139144
  }
139224
139145
  }
@@ -141845,6 +141766,73 @@
141845
141766
  "required": [
141846
141767
  "url"
141847
141768
  ]
141769
+ },
141770
+ "examples": {
141771
+ "default": {
141772
+ "value": {
141773
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection",
141774
+ "required_status_checks": {
141775
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_status_checks",
141776
+ "strict": true,
141777
+ "contexts": [
141778
+ "continuous-integration/travis-ci"
141779
+ ],
141780
+ "contexts_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_status_checks/contexts",
141781
+ "checks": [
141782
+ {
141783
+ "context": "continuous-integration/travis-ci",
141784
+ "app_id": null
141785
+ }
141786
+ ]
141787
+ },
141788
+ "restrictions": {
141789
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions",
141790
+ "users_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/users",
141791
+ "teams_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/teams",
141792
+ "apps_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/apps",
141793
+ "users": [],
141794
+ "teams": [],
141795
+ "apps": []
141796
+ },
141797
+ "required_pull_request_reviews": {
141798
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_pull_request_reviews",
141799
+ "dismiss_stale_reviews": true,
141800
+ "require_code_owner_reviews": true,
141801
+ "required_approving_review_count": 2,
141802
+ "dismissal_restrictions": {
141803
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions",
141804
+ "users_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions/users",
141805
+ "teams_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions/teams",
141806
+ "users": [],
141807
+ "teams": [],
141808
+ "apps": []
141809
+ }
141810
+ },
141811
+ "required_signatures": {
141812
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_signatures",
141813
+ "enabled": false
141814
+ },
141815
+ "enforce_admins": {
141816
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/enforce_admins",
141817
+ "enabled": true
141818
+ },
141819
+ "required_linear_history": {
141820
+ "enabled": true
141821
+ },
141822
+ "allow_force_pushes": {
141823
+ "enabled": true
141824
+ },
141825
+ "allow_deletions": {
141826
+ "enabled": true
141827
+ },
141828
+ "block_creations": {
141829
+ "enabled": true
141830
+ },
141831
+ "required_conversation_resolution": {
141832
+ "enabled": true
141833
+ }
141834
+ }
141835
+ }
141848
141836
  }
141849
141837
  }
141850
141838
  }
@@ -144903,7 +144891,7 @@
144903
144891
  "properties": {
144904
144892
  "contexts": {
144905
144893
  "type": "array",
144906
- "description": "contexts parameter",
144894
+ "description": "The name of the status checks",
144907
144895
  "items": {
144908
144896
  "type": "string"
144909
144897
  }
@@ -144919,6 +144907,17 @@
144919
144907
  }
144920
144908
  }
144921
144909
  ]
144910
+ },
144911
+ "examples": {
144912
+ "default": {
144913
+ "summary": "Example adding status checks to a branch protection rule",
144914
+ "value": {
144915
+ "contexts": [
144916
+ "continuous-integration/travis-ci",
144917
+ "continuous-integration/jenkins"
144918
+ ]
144919
+ }
144920
+ }
144922
144921
  }
144923
144922
  }
144924
144923
  }
@@ -145128,7 +145127,7 @@
145128
145127
  "properties": {
145129
145128
  "contexts": {
145130
145129
  "type": "array",
145131
- "description": "contexts parameter",
145130
+ "description": "The name of the status checks",
145132
145131
  "items": {
145133
145132
  "type": "string"
145134
145133
  }
@@ -145144,6 +145143,16 @@
145144
145143
  }
145145
145144
  }
145146
145145
  ]
145146
+ },
145147
+ "examples": {
145148
+ "default": {
145149
+ "summary": "Example updating status checks for a branch protection rule",
145150
+ "value": {
145151
+ "contexts": [
145152
+ "continuous-integration/travis-ci"
145153
+ ]
145154
+ }
145155
+ }
145147
145156
  }
145148
145157
  }
145149
145158
  }
@@ -145325,7 +145334,7 @@
145325
145334
  "properties": {
145326
145335
  "contexts": {
145327
145336
  "type": "array",
145328
- "description": "contexts parameter",
145337
+ "description": "The name of the status checks",
145329
145338
  "items": {
145330
145339
  "type": "string"
145331
145340
  }
@@ -145341,6 +145350,16 @@
145341
145350
  }
145342
145351
  }
145343
145352
  ]
145353
+ },
145354
+ "examples": {
145355
+ "default": {
145356
+ "summary": "Example removing status checks from a branch protection rule",
145357
+ "value": {
145358
+ "contexts": [
145359
+ "continuous-integration/travis-ci"
145360
+ ]
145361
+ }
145362
+ }
145344
145363
  }
145345
145364
  }
145346
145365
  }
@@ -148046,7 +148065,7 @@
148046
148065
  "properties": {
148047
148066
  "teams": {
148048
148067
  "type": "array",
148049
- "description": "teams parameter",
148068
+ "description": "The slug values for teams",
148050
148069
  "items": {
148051
148070
  "type": "string"
148052
148071
  }
@@ -148062,6 +148081,16 @@
148062
148081
  }
148063
148082
  }
148064
148083
  ]
148084
+ },
148085
+ "examples": {
148086
+ "default": {
148087
+ "summary": "Example adding a team in a branch protection rule",
148088
+ "value": {
148089
+ "teams": [
148090
+ "justice-league"
148091
+ ]
148092
+ }
148093
+ }
148065
148094
  }
148066
148095
  }
148067
148096
  }
@@ -148392,7 +148421,7 @@
148392
148421
  "properties": {
148393
148422
  "teams": {
148394
148423
  "type": "array",
148395
- "description": "teams parameter",
148424
+ "description": "The slug values for teams",
148396
148425
  "items": {
148397
148426
  "type": "string"
148398
148427
  }
@@ -148403,11 +148432,21 @@
148403
148432
  ],
148404
148433
  "example": {
148405
148434
  "teams": [
148406
- "my-team"
148435
+ "justice-league"
148407
148436
  ]
148408
148437
  }
148409
148438
  }
148410
148439
  ]
148440
+ },
148441
+ "examples": {
148442
+ "default": {
148443
+ "summary": "Example replacing a team in a branch protection rule",
148444
+ "value": {
148445
+ "teams": [
148446
+ "justice-league"
148447
+ ]
148448
+ }
148449
+ }
148411
148450
  }
148412
148451
  }
148413
148452
  }
@@ -148737,7 +148776,7 @@
148737
148776
  "properties": {
148738
148777
  "teams": {
148739
148778
  "type": "array",
148740
- "description": "teams parameter",
148779
+ "description": "The slug values for teams",
148741
148780
  "items": {
148742
148781
  "type": "string"
148743
148782
  }
@@ -148753,6 +148792,16 @@
148753
148792
  }
148754
148793
  }
148755
148794
  ]
148795
+ },
148796
+ "examples": {
148797
+ "default": {
148798
+ "summary": "Example removing a team in a branch protection rule",
148799
+ "value": {
148800
+ "teams": [
148801
+ "justice-league"
148802
+ ]
148803
+ }
148804
+ }
148756
148805
  }
148757
148806
  }
148758
148807
  }
@@ -149317,7 +149366,7 @@
149317
149366
  "properties": {
149318
149367
  "users": {
149319
149368
  "type": "array",
149320
- "description": "users parameter",
149369
+ "description": "The username for users",
149321
149370
  "items": {
149322
149371
  "type": "string"
149323
149372
  }
@@ -149333,6 +149382,16 @@
149333
149382
  }
149334
149383
  }
149335
149384
  ]
149385
+ },
149386
+ "examples": {
149387
+ "default": {
149388
+ "summary": "Example adding a user in a branch protection rule",
149389
+ "value": {
149390
+ "users": [
149391
+ "octocat"
149392
+ ]
149393
+ }
149394
+ }
149336
149395
  }
149337
149396
  }
149338
149397
  }
@@ -149624,7 +149683,7 @@
149624
149683
  "properties": {
149625
149684
  "users": {
149626
149685
  "type": "array",
149627
- "description": "users parameter",
149686
+ "description": "The username for users",
149628
149687
  "items": {
149629
149688
  "type": "string"
149630
149689
  }
@@ -149640,6 +149699,16 @@
149640
149699
  }
149641
149700
  }
149642
149701
  ]
149702
+ },
149703
+ "examples": {
149704
+ "default": {
149705
+ "summary": "Example replacing a user in a branch protection rule",
149706
+ "value": {
149707
+ "users": [
149708
+ "octocat"
149709
+ ]
149710
+ }
149711
+ }
149643
149712
  }
149644
149713
  }
149645
149714
  }
@@ -149930,7 +149999,7 @@
149930
149999
  "properties": {
149931
150000
  "users": {
149932
150001
  "type": "array",
149933
- "description": "users parameter",
150002
+ "description": "The username for users",
149934
150003
  "items": {
149935
150004
  "type": "string"
149936
150005
  }
@@ -149946,6 +150015,16 @@
149946
150015
  }
149947
150016
  }
149948
150017
  ]
150018
+ },
150019
+ "examples": {
150020
+ "default": {
150021
+ "summary": "Example removing a user in a branch protection rule",
150022
+ "value": {
150023
+ "users": [
150024
+ "octocat"
150025
+ ]
150026
+ }
150027
+ }
149949
150028
  }
149950
150029
  }
149951
150030
  }
@@ -190383,7 +190462,7 @@
190383
190462
  "/repos/{owner}/{repo}/contents/{path}": {
190384
190463
  "get": {
190385
190464
  "summary": "Get repository content",
190386
- "description": "Gets the contents of a file or directory in a repository. Specify the file path or directory in `:path`. If you omit\n`:path`, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories. \n\nFiles and symlinks support [a custom media type](https://docs.github.com/enterprise-server@3.2/rest/reference/repos#custom-media-types) for\nretrieving the raw content or rendered HTML (when supported). All content types support [a custom media\ntype](https://docs.github.com/enterprise-server@3.2/rest/reference/repos#custom-media-types) to ensure the content is returned in a consistent\nobject format.\n\n**Note**:\n* To get a repository's contents recursively, you can [recursively get the tree](https://docs.github.com/enterprise-server@3.2/rest/reference/git#trees).\n* This API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the [Git Trees\nAPI](https://docs.github.com/enterprise-server@3.2/rest/reference/git#get-a-tree).\n* This API supports files up to 1 megabyte in size.\n\n#### If the content is a directory\nThe response will be an array of objects, one object for each item in the directory.\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value\n_should_ be \"submodule\". This behavior exists in API v3 [for backwards compatibility purposes](https://git.io/v1YCW).\nIn the next major version of the API, the type will be returned as \"submodule\".\n\n#### If the content is a symlink \nIf the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then the\nAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object \ndescribing the symlink itself.\n\n#### If the content is a submodule\nThe `submodule_git_url` identifies the location of the submodule repository, and the `sha` identifies a specific\ncommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out\nthe submodule at that specific commit.\n\nIf the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links[\"git\"]`) and the\ngithub.com URLs (`html_url` and `_links[\"html\"]`) will have null values.",
190465
+ "description": "Gets the contents of a file or directory in a repository. Specify the file path or directory in `:path`. If you omit\n`:path`, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories. \n\nFiles and symlinks support [a custom media type](https://docs.github.com/enterprise-server@3.2/rest/reference/repos#custom-media-types) for\nretrieving the raw content or rendered HTML (when supported). All content types support [a custom media\ntype](https://docs.github.com/enterprise-server@3.2/rest/reference/repos#custom-media-types) to ensure the content is returned in a consistent\nobject format.\n\n**Notes**:\n* To get a repository's contents recursively, you can [recursively get the tree](https://docs.github.com/enterprise-server@3.2/rest/reference/git#trees).\n* This API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the [Git Trees\nAPI](https://docs.github.com/enterprise-server@3.2/rest/reference/git#get-a-tree).\n * Download URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download. \n* This API supports files up to 1 megabyte in size.\n\n#### If the content is a directory\nThe response will be an array of objects, one object for each item in the directory.\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value\n_should_ be \"submodule\". This behavior exists in API v3 [for backwards compatibility purposes](https://git.io/v1YCW).\nIn the next major version of the API, the type will be returned as \"submodule\".\n\n#### If the content is a symlink \nIf the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then the\nAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object \ndescribing the symlink itself.\n\n#### If the content is a submodule\nThe `submodule_git_url` identifies the location of the submodule repository, and the `sha` identifies a specific\ncommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out\nthe submodule at that specific commit.\n\nIf the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links[\"git\"]`) and the\ngithub.com URLs (`html_url` and `_links[\"html\"]`) will have null values.",
190387
190466
  "tags": [
190388
190467
  "repos"
190389
190468
  ],
@@ -215703,14 +215782,6 @@
215703
215782
  "write"
215704
215783
  ]
215705
215784
  },
215706
- "organization_custom_roles": {
215707
- "type": "string",
215708
- "description": "The level of permission to grant the access token for custom roles management.",
215709
- "enum": [
215710
- "read",
215711
- "write"
215712
- ]
215713
- },
215714
215785
  "deployments": {
215715
215786
  "type": "string",
215716
215787
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -218470,6 +218541,14 @@
218470
218541
  ]
218471
218542
  }
218472
218543
  }
218544
+ },
218545
+ "examples": {
218546
+ "default": {
218547
+ "summary": "Example request body",
218548
+ "value": {
218549
+ "permissions": "write"
218550
+ }
218551
+ }
218473
218552
  }
218474
218553
  }
218475
218554
  }
@@ -223270,7 +223349,8 @@
223270
223349
  "type": "User",
223271
223350
  "site_admin": false
223272
223351
  },
223273
- "author_association": "COLLABORATOR"
223352
+ "author_association": "COLLABORATOR",
223353
+ "state_reason": "completed"
223274
223354
  }
223275
223355
  ]
223276
223356
  }
@@ -226045,7 +226125,8 @@
226045
226125
  "type": "User",
226046
226126
  "site_admin": false
226047
226127
  },
226048
- "author_association": "COLLABORATOR"
226128
+ "author_association": "COLLABORATOR",
226129
+ "state_reason": "completed"
226049
226130
  }
226050
226131
  }
226051
226132
  }
@@ -233038,7 +233119,8 @@
233038
233119
  "closed_at": null,
233039
233120
  "created_at": "2011-04-22T13:33:48Z",
233040
233121
  "updated_at": "2011-04-22T13:33:48Z",
233041
- "author_association": "COLLABORATOR"
233122
+ "author_association": "COLLABORATOR",
233123
+ "state_reason": "completed"
233042
233124
  }
233043
233125
  }
233044
233126
  ]
@@ -236906,7 +236988,8 @@
236906
236988
  "closed_at": null,
236907
236989
  "created_at": "2011-04-22T13:33:48Z",
236908
236990
  "updated_at": "2011-04-22T13:33:48Z",
236909
- "author_association": "COLLABORATOR"
236991
+ "author_association": "COLLABORATOR",
236992
+ "state_reason": "completed"
236910
236993
  }
236911
236994
  }
236912
236995
  }
@@ -239539,7 +239622,8 @@
239539
239622
  "type": "User",
239540
239623
  "site_admin": false
239541
239624
  },
239542
- "author_association": "COLLABORATOR"
239625
+ "author_association": "COLLABORATOR",
239626
+ "state_reason": "completed"
239543
239627
  }
239544
239628
  }
239545
239629
  }
@@ -239724,6 +239808,12 @@
239724
239808
  "closed"
239725
239809
  ]
239726
239810
  },
239811
+ "state_reason": {
239812
+ "type": "string",
239813
+ "nullable": true,
239814
+ "description": "The reason for the current state",
239815
+ "example": "not_planned"
239816
+ },
239727
239817
  "milestone": {
239728
239818
  "oneOf": [
239729
239819
  {
@@ -242278,7 +242368,8 @@
242278
242368
  "type": "User",
242279
242369
  "site_admin": false
242280
242370
  },
242281
- "author_association": "COLLABORATOR"
242371
+ "author_association": "COLLABORATOR",
242372
+ "state_reason": "completed"
242282
242373
  }
242283
242374
  }
242284
242375
  }
@@ -245049,7 +245140,8 @@
245049
245140
  "type": "User",
245050
245141
  "site_admin": false
245051
245142
  },
245052
- "author_association": "COLLABORATOR"
245143
+ "author_association": "COLLABORATOR",
245144
+ "state_reason": "completed"
245053
245145
  }
245054
245146
  }
245055
245147
  }
@@ -338002,7 +338094,8 @@
338002
338094
  "body": "...",
338003
338095
  "score": 1,
338004
338096
  "locked": true,
338005
- "author_association": "COLLABORATOR"
338097
+ "author_association": "COLLABORATOR",
338098
+ "state_reason": "completed"
338006
338099
  }
338007
338100
  ]
338008
338101
  }
@@ -341821,8 +341914,8 @@
341821
341914
  "example": "2017-08-17T12:37:15Z"
341822
341915
  },
341823
341916
  "organization": {
341824
- "title": "Organization Full",
341825
- "description": "Organization Full",
341917
+ "title": "Team Organization",
341918
+ "description": "Team Organization",
341826
341919
  "type": "object",
341827
341920
  "properties": {
341828
341921
  "login": {
@@ -342430,8 +342523,8 @@
342430
342523
  "example": "2017-08-17T12:37:15Z"
342431
342524
  },
342432
342525
  "organization": {
342433
- "title": "Organization Full",
342434
- "description": "Organization Full",
342526
+ "title": "Team Organization",
342527
+ "description": "Team Organization",
342435
342528
  "type": "object",
342436
342529
  "properties": {
342437
342530
  "login": {
@@ -342923,8 +343016,8 @@
342923
343016
  "example": "2017-08-17T12:37:15Z"
342924
343017
  },
342925
343018
  "organization": {
342926
- "title": "Organization Full",
342927
- "description": "Organization Full",
343019
+ "title": "Team Organization",
343020
+ "description": "Team Organization",
342928
343021
  "type": "object",
342929
343022
  "properties": {
342930
343023
  "login": {
@@ -358650,14 +358743,6 @@
358650
358743
  "write"
358651
358744
  ]
358652
358745
  },
358653
- "organization_custom_roles": {
358654
- "type": "string",
358655
- "description": "The level of permission to grant the access token for custom roles management.",
358656
- "enum": [
358657
- "read",
358658
- "write"
358659
- ]
358660
- },
358661
358746
  "deployments": {
358662
358747
  "type": "string",
358663
358748
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -377381,8 +377466,8 @@
377381
377466
  "example": "2017-08-17T12:37:15Z"
377382
377467
  },
377383
377468
  "organization": {
377384
- "title": "Organization Full",
377385
- "description": "Organization Full",
377469
+ "title": "Team Organization",
377470
+ "description": "Team Organization",
377386
377471
  "type": "object",
377387
377472
  "properties": {
377388
377473
  "login": {
@@ -389734,14 +389819,6 @@
389734
389819
  "write"
389735
389820
  ]
389736
389821
  },
389737
- "organization_custom_roles": {
389738
- "type": "string",
389739
- "description": "The level of permission to grant the access token for custom roles management.",
389740
- "enum": [
389741
- "read",
389742
- "write"
389743
- ]
389744
- },
389745
389822
  "deployments": {
389746
389823
  "type": "string",
389747
389824
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",