@octokit/openapi 7.0.0 → 7.3.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/generated/api.github.com.deref.json +1523 -250
- package/generated/api.github.com.json +803 -61
- package/generated/ghes-3.2-diff-to-api.github.com.deref.json +1 -1
- package/generated/ghes-3.2-diff-to-api.github.com.json +1 -1
- package/generated/ghes-3.2-diff-to-ghes-3.3.deref.json +17 -8
- package/generated/ghes-3.2-diff-to-ghes-3.3.json +9 -8
- package/generated/ghes-3.2.deref.json +1108 -313
- package/generated/ghes-3.2.json +451 -31
- package/generated/ghes-3.3-anicca-diff-to-ghes-3.4.deref.json +16 -0
- package/generated/ghes-3.3-diff-to-ghes-3.4.deref.json +209 -1
- package/generated/ghes-3.3-diff-to-ghes-3.4.json +9 -1
- package/generated/ghes-3.3.deref.json +1108 -313
- package/generated/ghes-3.3.json +451 -31
- package/generated/ghes-3.4-diff-to-ghes-3.5.deref.json +1 -8
- package/generated/ghes-3.4-diff-to-ghes-3.5.json +1 -8
- package/generated/ghes-3.4.deref.json +1092 -313
- package/generated/ghes-3.4.json +451 -31
- package/generated/ghes-3.5-diff-to-api.github.com.deref.json +1 -1
- package/generated/ghes-3.5-diff-to-api.github.com.json +1 -1
- package/generated/ghes-3.5-diff-to-ghes-3.6.deref.json +17 -8
- package/generated/ghes-3.5-diff-to-ghes-3.6.json +9 -8
- package/generated/ghes-3.5.deref.json +1094 -315
- package/generated/ghes-3.5.json +453 -33
- package/generated/ghes-3.6-anicca-diff-to-api.github.com.deref.json +94 -56
- package/generated/ghes-3.6-diff-to-api.github.com.deref.json +89 -164
- package/generated/ghes-3.6-diff-to-api.github.com.json +9 -130
- package/generated/ghes-3.6.deref.json +1299 -488
- package/generated/ghes-3.6.json +499 -47
- package/generated/github.ae-anicca-diff-to-api.github.com.deref.json +38 -0
- package/generated/github.ae-diff-to-api.github.com.deref.json +49 -8
- package/generated/github.ae-diff-to-api.github.com.json +9 -8
- package/generated/github.ae.deref.json +783 -32
- package/generated/github.ae.json +495 -31
- package/index.js +2 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.3.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,6 +4251,14 @@
|
|
|
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
|
+
},
|
|
4254
4262
|
"deployments": {
|
|
4255
4263
|
"type": "string",
|
|
4256
4264
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -5341,6 +5349,14 @@
|
|
|
5341
5349
|
"write"
|
|
5342
5350
|
]
|
|
5343
5351
|
},
|
|
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
|
+
},
|
|
5344
5360
|
"deployments": {
|
|
5345
5361
|
"type": "string",
|
|
5346
5362
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -6013,6 +6029,14 @@
|
|
|
6013
6029
|
"write"
|
|
6014
6030
|
]
|
|
6015
6031
|
},
|
|
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
|
+
},
|
|
6016
6040
|
"deployments": {
|
|
6017
6041
|
"type": "string",
|
|
6018
6042
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -8590,6 +8614,14 @@
|
|
|
8590
8614
|
"write"
|
|
8591
8615
|
]
|
|
8592
8616
|
},
|
|
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
|
+
},
|
|
8593
8625
|
"deployments": {
|
|
8594
8626
|
"type": "string",
|
|
8595
8627
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -9387,6 +9419,14 @@
|
|
|
9387
9419
|
"write"
|
|
9388
9420
|
]
|
|
9389
9421
|
},
|
|
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
|
+
},
|
|
9390
9430
|
"deployments": {
|
|
9391
9431
|
"type": "string",
|
|
9392
9432
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -10048,6 +10088,14 @@
|
|
|
10048
10088
|
"write"
|
|
10049
10089
|
]
|
|
10050
10090
|
},
|
|
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
|
+
},
|
|
10051
10099
|
"deployments": {
|
|
10052
10100
|
"type": "string",
|
|
10053
10101
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -10341,6 +10389,14 @@
|
|
|
10341
10389
|
"write"
|
|
10342
10390
|
]
|
|
10343
10391
|
},
|
|
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
|
+
},
|
|
10344
10400
|
"deployments": {
|
|
10345
10401
|
"type": "string",
|
|
10346
10402
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -13368,6 +13424,14 @@
|
|
|
13368
13424
|
"write"
|
|
13369
13425
|
]
|
|
13370
13426
|
},
|
|
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
|
+
},
|
|
13371
13435
|
"deployments": {
|
|
13372
13436
|
"type": "string",
|
|
13373
13437
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -14219,6 +14283,14 @@
|
|
|
14219
14283
|
"write"
|
|
14220
14284
|
]
|
|
14221
14285
|
},
|
|
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
|
+
},
|
|
14222
14294
|
"deployments": {
|
|
14223
14295
|
"type": "string",
|
|
14224
14296
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -14994,6 +15066,14 @@
|
|
|
14994
15066
|
"write"
|
|
14995
15067
|
]
|
|
14996
15068
|
},
|
|
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
|
+
},
|
|
14997
15077
|
"deployments": {
|
|
14998
15078
|
"type": "string",
|
|
14999
15079
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -15477,6 +15557,14 @@
|
|
|
15477
15557
|
"write"
|
|
15478
15558
|
]
|
|
15479
15559
|
},
|
|
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
|
+
},
|
|
15480
15568
|
"deployments": {
|
|
15481
15569
|
"type": "string",
|
|
15482
15570
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -16393,6 +16481,14 @@
|
|
|
16393
16481
|
"write"
|
|
16394
16482
|
]
|
|
16395
16483
|
},
|
|
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
|
+
},
|
|
16396
16492
|
"deployments": {
|
|
16397
16493
|
"type": "string",
|
|
16398
16494
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -17161,6 +17257,14 @@
|
|
|
17161
17257
|
"write"
|
|
17162
17258
|
]
|
|
17163
17259
|
},
|
|
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
|
+
},
|
|
17164
17268
|
"deployments": {
|
|
17165
17269
|
"type": "string",
|
|
17166
17270
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -18344,6 +18448,14 @@
|
|
|
18344
18448
|
"write"
|
|
18345
18449
|
]
|
|
18346
18450
|
},
|
|
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
|
+
},
|
|
18347
18459
|
"deployments": {
|
|
18348
18460
|
"type": "string",
|
|
18349
18461
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -19205,6 +19317,14 @@
|
|
|
19205
19317
|
"write"
|
|
19206
19318
|
]
|
|
19207
19319
|
},
|
|
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
|
+
},
|
|
19208
19328
|
"deployments": {
|
|
19209
19329
|
"type": "string",
|
|
19210
19330
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -20135,6 +20255,14 @@
|
|
|
20135
20255
|
"write"
|
|
20136
20256
|
]
|
|
20137
20257
|
},
|
|
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
|
+
},
|
|
20138
20266
|
"deployments": {
|
|
20139
20267
|
"type": "string",
|
|
20140
20268
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -20815,6 +20943,14 @@
|
|
|
20815
20943
|
"write"
|
|
20816
20944
|
]
|
|
20817
20945
|
},
|
|
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
|
+
},
|
|
20818
20954
|
"deployments": {
|
|
20819
20955
|
"type": "string",
|
|
20820
20956
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -21723,6 +21859,14 @@
|
|
|
21723
21859
|
"write"
|
|
21724
21860
|
]
|
|
21725
21861
|
},
|
|
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
|
+
},
|
|
21726
21870
|
"deployments": {
|
|
21727
21871
|
"type": "string",
|
|
21728
21872
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -22403,6 +22547,14 @@
|
|
|
22403
22547
|
"write"
|
|
22404
22548
|
]
|
|
22405
22549
|
},
|
|
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
|
+
},
|
|
22406
22558
|
"deployments": {
|
|
22407
22559
|
"type": "string",
|
|
22408
22560
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -23189,6 +23341,14 @@
|
|
|
23189
23341
|
"write"
|
|
23190
23342
|
]
|
|
23191
23343
|
},
|
|
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
|
+
},
|
|
23192
23352
|
"deployments": {
|
|
23193
23353
|
"type": "string",
|
|
23194
23354
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -24002,6 +24162,14 @@
|
|
|
24002
24162
|
"write"
|
|
24003
24163
|
]
|
|
24004
24164
|
},
|
|
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
|
+
},
|
|
24005
24173
|
"deployments": {
|
|
24006
24174
|
"type": "string",
|
|
24007
24175
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -76215,6 +76383,14 @@
|
|
|
76215
76383
|
"write"
|
|
76216
76384
|
]
|
|
76217
76385
|
},
|
|
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
|
+
},
|
|
76218
76394
|
"deployments": {
|
|
76219
76395
|
"type": "string",
|
|
76220
76396
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -77026,6 +77202,14 @@
|
|
|
77026
77202
|
"write"
|
|
77027
77203
|
]
|
|
77028
77204
|
},
|
|
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
|
+
},
|
|
77029
77213
|
"deployments": {
|
|
77030
77214
|
"type": "string",
|
|
77031
77215
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -99756,13 +99940,6 @@
|
|
|
99756
99940
|
"permission": {
|
|
99757
99941
|
"type": "string",
|
|
99758
99942
|
"description": "The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
|
|
99759
|
-
"enum": [
|
|
99760
|
-
"pull",
|
|
99761
|
-
"push",
|
|
99762
|
-
"admin",
|
|
99763
|
-
"maintain",
|
|
99764
|
-
"triage"
|
|
99765
|
-
],
|
|
99766
99943
|
"default": "push"
|
|
99767
99944
|
}
|
|
99768
99945
|
}
|
|
@@ -169964,13 +170141,6 @@
|
|
|
169964
170141
|
"permission": {
|
|
169965
170142
|
"type": "string",
|
|
169966
170143
|
"description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
|
|
169967
|
-
"enum": [
|
|
169968
|
-
"pull",
|
|
169969
|
-
"push",
|
|
169970
|
-
"admin",
|
|
169971
|
-
"maintain",
|
|
169972
|
-
"triage"
|
|
169973
|
-
],
|
|
169974
170144
|
"default": "push"
|
|
169975
170145
|
}
|
|
169976
170146
|
}
|
|
@@ -190333,7 +190503,13 @@
|
|
|
190333
190503
|
"type": "object",
|
|
190334
190504
|
"properties": {
|
|
190335
190505
|
"type": {
|
|
190336
|
-
"type": "string"
|
|
190506
|
+
"type": "string",
|
|
190507
|
+
"enum": [
|
|
190508
|
+
"dir",
|
|
190509
|
+
"file",
|
|
190510
|
+
"submodule",
|
|
190511
|
+
"symlink"
|
|
190512
|
+
]
|
|
190337
190513
|
},
|
|
190338
190514
|
"size": {
|
|
190339
190515
|
"type": "integer"
|
|
@@ -190414,7 +190590,10 @@
|
|
|
190414
190590
|
"type": "object",
|
|
190415
190591
|
"properties": {
|
|
190416
190592
|
"type": {
|
|
190417
|
-
"type": "string"
|
|
190593
|
+
"type": "string",
|
|
190594
|
+
"enum": [
|
|
190595
|
+
"file"
|
|
190596
|
+
]
|
|
190418
190597
|
},
|
|
190419
190598
|
"encoding": {
|
|
190420
190599
|
"type": "string"
|
|
@@ -190507,7 +190686,10 @@
|
|
|
190507
190686
|
"type": "object",
|
|
190508
190687
|
"properties": {
|
|
190509
190688
|
"type": {
|
|
190510
|
-
"type": "string"
|
|
190689
|
+
"type": "string",
|
|
190690
|
+
"enum": [
|
|
190691
|
+
"symlink"
|
|
190692
|
+
]
|
|
190511
190693
|
},
|
|
190512
190694
|
"target": {
|
|
190513
190695
|
"type": "string"
|
|
@@ -190583,12 +190765,15 @@
|
|
|
190583
190765
|
]
|
|
190584
190766
|
},
|
|
190585
190767
|
{
|
|
190586
|
-
"title": "
|
|
190587
|
-
"description": "An object describing a
|
|
190768
|
+
"title": "Submodule Content",
|
|
190769
|
+
"description": "An object describing a submodule",
|
|
190588
190770
|
"type": "object",
|
|
190589
190771
|
"properties": {
|
|
190590
190772
|
"type": {
|
|
190591
|
-
"type": "string"
|
|
190773
|
+
"type": "string",
|
|
190774
|
+
"enum": [
|
|
190775
|
+
"submodule"
|
|
190776
|
+
]
|
|
190592
190777
|
},
|
|
190593
190778
|
"submodule_git_url": {
|
|
190594
190779
|
"type": "string",
|
|
@@ -196486,15 +196671,15 @@
|
|
|
196486
196671
|
},
|
|
196487
196672
|
"/repos/{owner}/{repo}/environments": {
|
|
196488
196673
|
"get": {
|
|
196489
|
-
"summary": "
|
|
196490
|
-
"description": "
|
|
196674
|
+
"summary": "List environments",
|
|
196675
|
+
"description": "Lists the environments for a repository.\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. GitHub Apps must have the `actions:read` permission to use this endpoint.",
|
|
196491
196676
|
"tags": [
|
|
196492
196677
|
"repos"
|
|
196493
196678
|
],
|
|
196494
196679
|
"operationId": "repos/get-all-environments",
|
|
196495
196680
|
"externalDocs": {
|
|
196496
196681
|
"description": "API method documentation",
|
|
196497
|
-
"url": "https://docs.github.com/enterprise-server@3.2/rest/
|
|
196682
|
+
"url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/environments#list-environments"
|
|
196498
196683
|
},
|
|
196499
196684
|
"parameters": [
|
|
196500
196685
|
{
|
|
@@ -197093,7 +197278,7 @@
|
|
|
197093
197278
|
"x-github": {
|
|
197094
197279
|
"githubCloudOnly": false,
|
|
197095
197280
|
"enabledForGitHubApps": true,
|
|
197096
|
-
"category": "
|
|
197281
|
+
"category": "deployments",
|
|
197097
197282
|
"subcategory": "environments"
|
|
197098
197283
|
},
|
|
197099
197284
|
"x-octokit": {}
|
|
@@ -197102,7 +197287,7 @@
|
|
|
197102
197287
|
"/repos/{owner}/{repo}/environments/{environment_name}": {
|
|
197103
197288
|
"get": {
|
|
197104
197289
|
"summary": "Get an environment",
|
|
197105
|
-
"description": "
|
|
197290
|
+
"description": "**Note:** To get information about name patterns that branches must match in order to deploy to this environment, see \"[Get a deployment branch policy](/rest/deployments/branch-policies#get-a-deployment-branch-policy).\"\n\nAnyone with read access to the repository can use this endpoint. If the\nrepository is private, you must use an access token with the `repo` scope. GitHub\nApps must have the `actions:read` permission to use this endpoint.",
|
|
197106
197291
|
"tags": [
|
|
197107
197292
|
"repos"
|
|
197108
197293
|
],
|
|
@@ -197134,7 +197319,7 @@
|
|
|
197134
197319
|
"name": "environment_name",
|
|
197135
197320
|
"in": "path",
|
|
197136
197321
|
"required": true,
|
|
197137
|
-
"description": "The name of the environment",
|
|
197322
|
+
"description": "The name of the environment.",
|
|
197138
197323
|
"schema": {
|
|
197139
197324
|
"type": "string"
|
|
197140
197325
|
}
|
|
@@ -197688,7 +197873,7 @@
|
|
|
197688
197873
|
},
|
|
197689
197874
|
"put": {
|
|
197690
197875
|
"summary": "Create or update an environment",
|
|
197691
|
-
"description": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"[Environments](/actions/reference/environments#environment-protection-rules).\"\n\n**Note:**
|
|
197876
|
+
"description": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"[Environments](/actions/reference/environments#environment-protection-rules).\"\n\n**Note:** To create or update name patterns that branches must match in order to deploy to this environment, see \"[Deployment branch policies](/rest/deployments/branch-policies).\"\n\n**Note:** To create or update secrets for an environment, see \"[Secrets](/rest/reference/actions#secrets).\"\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration:write` permission for the repository to use this endpoint.",
|
|
197692
197877
|
"tags": [
|
|
197693
197878
|
"repos"
|
|
197694
197879
|
],
|
|
@@ -197720,7 +197905,7 @@
|
|
|
197720
197905
|
"name": "environment_name",
|
|
197721
197906
|
"in": "path",
|
|
197722
197907
|
"required": true,
|
|
197723
|
-
"description": "The name of the environment",
|
|
197908
|
+
"description": "The name of the environment.",
|
|
197724
197909
|
"schema": {
|
|
197725
197910
|
"type": "string"
|
|
197726
197911
|
}
|
|
@@ -197784,6 +197969,27 @@
|
|
|
197784
197969
|
}
|
|
197785
197970
|
},
|
|
197786
197971
|
"additionalProperties": false
|
|
197972
|
+
},
|
|
197973
|
+
"examples": {
|
|
197974
|
+
"default": {
|
|
197975
|
+
"value": {
|
|
197976
|
+
"wait_timer": 30,
|
|
197977
|
+
"reviewers": [
|
|
197978
|
+
{
|
|
197979
|
+
"type": "User",
|
|
197980
|
+
"id": 1
|
|
197981
|
+
},
|
|
197982
|
+
{
|
|
197983
|
+
"type": "Team",
|
|
197984
|
+
"id": 1
|
|
197985
|
+
}
|
|
197986
|
+
],
|
|
197987
|
+
"deployment_branch_policy": {
|
|
197988
|
+
"protected_branches": false,
|
|
197989
|
+
"custom_branch_policies": true
|
|
197990
|
+
}
|
|
197991
|
+
}
|
|
197992
|
+
}
|
|
197787
197993
|
}
|
|
197788
197994
|
}
|
|
197789
197995
|
}
|
|
@@ -198394,7 +198600,7 @@
|
|
|
198394
198600
|
"name": "environment_name",
|
|
198395
198601
|
"in": "path",
|
|
198396
198602
|
"required": true,
|
|
198397
|
-
"description": "The name of the environment",
|
|
198603
|
+
"description": "The name of the environment.",
|
|
198398
198604
|
"schema": {
|
|
198399
198605
|
"type": "string"
|
|
198400
198606
|
}
|
|
@@ -198414,6 +198620,559 @@
|
|
|
198414
198620
|
"x-octokit": {}
|
|
198415
198621
|
}
|
|
198416
198622
|
},
|
|
198623
|
+
"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
|
|
198624
|
+
"get": {
|
|
198625
|
+
"summary": "List deployment branch policies",
|
|
198626
|
+
"description": "Lists the deployment branch policies for an environment.\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. GitHub Apps must have the `actions:read` permission to use this endpoint.",
|
|
198627
|
+
"tags": [
|
|
198628
|
+
"repos"
|
|
198629
|
+
],
|
|
198630
|
+
"operationId": "repos/list-deployment-branch-policies",
|
|
198631
|
+
"externalDocs": {
|
|
198632
|
+
"description": "API method documentation",
|
|
198633
|
+
"url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/branch-policies#list-deployment-branch-policies"
|
|
198634
|
+
},
|
|
198635
|
+
"parameters": [
|
|
198636
|
+
{
|
|
198637
|
+
"name": "owner",
|
|
198638
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
198639
|
+
"in": "path",
|
|
198640
|
+
"required": true,
|
|
198641
|
+
"schema": {
|
|
198642
|
+
"type": "string"
|
|
198643
|
+
}
|
|
198644
|
+
},
|
|
198645
|
+
{
|
|
198646
|
+
"name": "repo",
|
|
198647
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
198648
|
+
"in": "path",
|
|
198649
|
+
"required": true,
|
|
198650
|
+
"schema": {
|
|
198651
|
+
"type": "string"
|
|
198652
|
+
}
|
|
198653
|
+
},
|
|
198654
|
+
{
|
|
198655
|
+
"name": "environment_name",
|
|
198656
|
+
"in": "path",
|
|
198657
|
+
"required": true,
|
|
198658
|
+
"description": "The name of the environment.",
|
|
198659
|
+
"schema": {
|
|
198660
|
+
"type": "string"
|
|
198661
|
+
}
|
|
198662
|
+
},
|
|
198663
|
+
{
|
|
198664
|
+
"name": "per_page",
|
|
198665
|
+
"description": "The number of results per page (max 100).",
|
|
198666
|
+
"in": "query",
|
|
198667
|
+
"schema": {
|
|
198668
|
+
"type": "integer",
|
|
198669
|
+
"default": 30
|
|
198670
|
+
}
|
|
198671
|
+
},
|
|
198672
|
+
{
|
|
198673
|
+
"name": "page",
|
|
198674
|
+
"description": "Page number of the results to fetch.",
|
|
198675
|
+
"in": "query",
|
|
198676
|
+
"schema": {
|
|
198677
|
+
"type": "integer",
|
|
198678
|
+
"default": 1
|
|
198679
|
+
}
|
|
198680
|
+
}
|
|
198681
|
+
],
|
|
198682
|
+
"responses": {
|
|
198683
|
+
"200": {
|
|
198684
|
+
"description": "Response",
|
|
198685
|
+
"content": {
|
|
198686
|
+
"application/json": {
|
|
198687
|
+
"schema": {
|
|
198688
|
+
"type": "object",
|
|
198689
|
+
"properties": {
|
|
198690
|
+
"total_count": {
|
|
198691
|
+
"description": "The number of deployment branch policies for the environment.",
|
|
198692
|
+
"type": "integer",
|
|
198693
|
+
"example": 2
|
|
198694
|
+
},
|
|
198695
|
+
"branch_policies": {
|
|
198696
|
+
"type": "array",
|
|
198697
|
+
"items": {
|
|
198698
|
+
"title": "Deployment branch policy",
|
|
198699
|
+
"description": "Details of a deployment branch policy.",
|
|
198700
|
+
"type": "object",
|
|
198701
|
+
"properties": {
|
|
198702
|
+
"id": {
|
|
198703
|
+
"description": "The unique identifier of the branch policy.",
|
|
198704
|
+
"type": "integer",
|
|
198705
|
+
"example": 361471
|
|
198706
|
+
},
|
|
198707
|
+
"node_id": {
|
|
198708
|
+
"type": "string",
|
|
198709
|
+
"example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
|
|
198710
|
+
},
|
|
198711
|
+
"name": {
|
|
198712
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.",
|
|
198713
|
+
"type": "string",
|
|
198714
|
+
"example": "release/*"
|
|
198715
|
+
}
|
|
198716
|
+
}
|
|
198717
|
+
}
|
|
198718
|
+
}
|
|
198719
|
+
},
|
|
198720
|
+
"required": [
|
|
198721
|
+
"total_count",
|
|
198722
|
+
"branch_policies"
|
|
198723
|
+
]
|
|
198724
|
+
},
|
|
198725
|
+
"examples": {
|
|
198726
|
+
"default": {
|
|
198727
|
+
"value": {
|
|
198728
|
+
"total_count": 2,
|
|
198729
|
+
"branch_policies": [
|
|
198730
|
+
{
|
|
198731
|
+
"id": 361471,
|
|
198732
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
|
|
198733
|
+
"name": "release/*"
|
|
198734
|
+
},
|
|
198735
|
+
{
|
|
198736
|
+
"id": 361472,
|
|
198737
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
|
|
198738
|
+
"name": "main"
|
|
198739
|
+
}
|
|
198740
|
+
]
|
|
198741
|
+
}
|
|
198742
|
+
}
|
|
198743
|
+
}
|
|
198744
|
+
}
|
|
198745
|
+
}
|
|
198746
|
+
}
|
|
198747
|
+
},
|
|
198748
|
+
"x-github": {
|
|
198749
|
+
"githubCloudOnly": false,
|
|
198750
|
+
"enabledForGitHubApps": true,
|
|
198751
|
+
"category": "deployments",
|
|
198752
|
+
"subcategory": "branch-policies"
|
|
198753
|
+
},
|
|
198754
|
+
"x-octokit": {}
|
|
198755
|
+
},
|
|
198756
|
+
"post": {
|
|
198757
|
+
"summary": "Create a deployment branch policy",
|
|
198758
|
+
"description": "Creates a deployment branch policy for an environment.\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration:write` permission for the repository to use this endpoint.",
|
|
198759
|
+
"tags": [
|
|
198760
|
+
"repos"
|
|
198761
|
+
],
|
|
198762
|
+
"operationId": "repos/create-deployment-branch-policy",
|
|
198763
|
+
"externalDocs": {
|
|
198764
|
+
"description": "API method documentation",
|
|
198765
|
+
"url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/branch-policies#create-deployment-branch-policy"
|
|
198766
|
+
},
|
|
198767
|
+
"parameters": [
|
|
198768
|
+
{
|
|
198769
|
+
"name": "owner",
|
|
198770
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
198771
|
+
"in": "path",
|
|
198772
|
+
"required": true,
|
|
198773
|
+
"schema": {
|
|
198774
|
+
"type": "string"
|
|
198775
|
+
}
|
|
198776
|
+
},
|
|
198777
|
+
{
|
|
198778
|
+
"name": "repo",
|
|
198779
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
198780
|
+
"in": "path",
|
|
198781
|
+
"required": true,
|
|
198782
|
+
"schema": {
|
|
198783
|
+
"type": "string"
|
|
198784
|
+
}
|
|
198785
|
+
},
|
|
198786
|
+
{
|
|
198787
|
+
"name": "environment_name",
|
|
198788
|
+
"in": "path",
|
|
198789
|
+
"required": true,
|
|
198790
|
+
"description": "The name of the environment.",
|
|
198791
|
+
"schema": {
|
|
198792
|
+
"type": "string"
|
|
198793
|
+
}
|
|
198794
|
+
}
|
|
198795
|
+
],
|
|
198796
|
+
"requestBody": {
|
|
198797
|
+
"required": true,
|
|
198798
|
+
"content": {
|
|
198799
|
+
"application/json": {
|
|
198800
|
+
"schema": {
|
|
198801
|
+
"title": "Deployment branch policy name pattern",
|
|
198802
|
+
"type": "object",
|
|
198803
|
+
"properties": {
|
|
198804
|
+
"name": {
|
|
198805
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).",
|
|
198806
|
+
"type": "string",
|
|
198807
|
+
"example": "release/*"
|
|
198808
|
+
}
|
|
198809
|
+
},
|
|
198810
|
+
"required": [
|
|
198811
|
+
"name"
|
|
198812
|
+
]
|
|
198813
|
+
},
|
|
198814
|
+
"examples": {
|
|
198815
|
+
"example-wildcard": {
|
|
198816
|
+
"summary": "Example of a wildcard name pattern",
|
|
198817
|
+
"value": {
|
|
198818
|
+
"name": "release/*"
|
|
198819
|
+
}
|
|
198820
|
+
},
|
|
198821
|
+
"example-single-branch": {
|
|
198822
|
+
"summary": "Example of a single branch name pattern",
|
|
198823
|
+
"value": {
|
|
198824
|
+
"name": "main"
|
|
198825
|
+
}
|
|
198826
|
+
}
|
|
198827
|
+
}
|
|
198828
|
+
}
|
|
198829
|
+
}
|
|
198830
|
+
},
|
|
198831
|
+
"responses": {
|
|
198832
|
+
"200": {
|
|
198833
|
+
"description": "Response",
|
|
198834
|
+
"content": {
|
|
198835
|
+
"application/json": {
|
|
198836
|
+
"schema": {
|
|
198837
|
+
"title": "Deployment branch policy",
|
|
198838
|
+
"description": "Details of a deployment branch policy.",
|
|
198839
|
+
"type": "object",
|
|
198840
|
+
"properties": {
|
|
198841
|
+
"id": {
|
|
198842
|
+
"description": "The unique identifier of the branch policy.",
|
|
198843
|
+
"type": "integer",
|
|
198844
|
+
"example": 361471
|
|
198845
|
+
},
|
|
198846
|
+
"node_id": {
|
|
198847
|
+
"type": "string",
|
|
198848
|
+
"example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
|
|
198849
|
+
},
|
|
198850
|
+
"name": {
|
|
198851
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.",
|
|
198852
|
+
"type": "string",
|
|
198853
|
+
"example": "release/*"
|
|
198854
|
+
}
|
|
198855
|
+
}
|
|
198856
|
+
},
|
|
198857
|
+
"examples": {
|
|
198858
|
+
"example-wildcard": {
|
|
198859
|
+
"value": {
|
|
198860
|
+
"id": 364662,
|
|
198861
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
|
|
198862
|
+
"name": "release/*"
|
|
198863
|
+
}
|
|
198864
|
+
},
|
|
198865
|
+
"example-single-branch": {
|
|
198866
|
+
"value": {
|
|
198867
|
+
"id": 364663,
|
|
198868
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
|
|
198869
|
+
"name": "main"
|
|
198870
|
+
}
|
|
198871
|
+
}
|
|
198872
|
+
}
|
|
198873
|
+
}
|
|
198874
|
+
}
|
|
198875
|
+
},
|
|
198876
|
+
"303": {
|
|
198877
|
+
"description": "Response if the same branch name pattern already exists"
|
|
198878
|
+
},
|
|
198879
|
+
"404": {
|
|
198880
|
+
"description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
|
|
198881
|
+
}
|
|
198882
|
+
},
|
|
198883
|
+
"x-github": {
|
|
198884
|
+
"githubCloudOnly": false,
|
|
198885
|
+
"enabledForGitHubApps": true,
|
|
198886
|
+
"category": "deployments",
|
|
198887
|
+
"subcategory": "branch-policies"
|
|
198888
|
+
},
|
|
198889
|
+
"x-octokit": {}
|
|
198890
|
+
}
|
|
198891
|
+
},
|
|
198892
|
+
"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
|
|
198893
|
+
"get": {
|
|
198894
|
+
"summary": "Get a deployment branch policy",
|
|
198895
|
+
"description": "Gets a deployment branch policy for an environment.\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. GitHub Apps must have the `actions:read` permission to use this endpoint.",
|
|
198896
|
+
"tags": [
|
|
198897
|
+
"repos"
|
|
198898
|
+
],
|
|
198899
|
+
"operationId": "repos/get-deployment-branch-policy",
|
|
198900
|
+
"externalDocs": {
|
|
198901
|
+
"description": "API method documentation",
|
|
198902
|
+
"url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/branch-policies#get-deployment-branch-policy"
|
|
198903
|
+
},
|
|
198904
|
+
"parameters": [
|
|
198905
|
+
{
|
|
198906
|
+
"name": "owner",
|
|
198907
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
198908
|
+
"in": "path",
|
|
198909
|
+
"required": true,
|
|
198910
|
+
"schema": {
|
|
198911
|
+
"type": "string"
|
|
198912
|
+
}
|
|
198913
|
+
},
|
|
198914
|
+
{
|
|
198915
|
+
"name": "repo",
|
|
198916
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
198917
|
+
"in": "path",
|
|
198918
|
+
"required": true,
|
|
198919
|
+
"schema": {
|
|
198920
|
+
"type": "string"
|
|
198921
|
+
}
|
|
198922
|
+
},
|
|
198923
|
+
{
|
|
198924
|
+
"name": "environment_name",
|
|
198925
|
+
"in": "path",
|
|
198926
|
+
"required": true,
|
|
198927
|
+
"description": "The name of the environment.",
|
|
198928
|
+
"schema": {
|
|
198929
|
+
"type": "string"
|
|
198930
|
+
}
|
|
198931
|
+
},
|
|
198932
|
+
{
|
|
198933
|
+
"name": "branch_policy_id",
|
|
198934
|
+
"in": "path",
|
|
198935
|
+
"required": true,
|
|
198936
|
+
"description": "The unique identifier of the branch policy.",
|
|
198937
|
+
"schema": {
|
|
198938
|
+
"type": "integer"
|
|
198939
|
+
}
|
|
198940
|
+
}
|
|
198941
|
+
],
|
|
198942
|
+
"responses": {
|
|
198943
|
+
"200": {
|
|
198944
|
+
"description": "Response",
|
|
198945
|
+
"content": {
|
|
198946
|
+
"application/json": {
|
|
198947
|
+
"schema": {
|
|
198948
|
+
"title": "Deployment branch policy",
|
|
198949
|
+
"description": "Details of a deployment branch policy.",
|
|
198950
|
+
"type": "object",
|
|
198951
|
+
"properties": {
|
|
198952
|
+
"id": {
|
|
198953
|
+
"description": "The unique identifier of the branch policy.",
|
|
198954
|
+
"type": "integer",
|
|
198955
|
+
"example": 361471
|
|
198956
|
+
},
|
|
198957
|
+
"node_id": {
|
|
198958
|
+
"type": "string",
|
|
198959
|
+
"example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
|
|
198960
|
+
},
|
|
198961
|
+
"name": {
|
|
198962
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.",
|
|
198963
|
+
"type": "string",
|
|
198964
|
+
"example": "release/*"
|
|
198965
|
+
}
|
|
198966
|
+
}
|
|
198967
|
+
},
|
|
198968
|
+
"examples": {
|
|
198969
|
+
"default": {
|
|
198970
|
+
"value": {
|
|
198971
|
+
"id": 364662,
|
|
198972
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
|
|
198973
|
+
"name": "release/*"
|
|
198974
|
+
}
|
|
198975
|
+
}
|
|
198976
|
+
}
|
|
198977
|
+
}
|
|
198978
|
+
}
|
|
198979
|
+
}
|
|
198980
|
+
},
|
|
198981
|
+
"x-github": {
|
|
198982
|
+
"githubCloudOnly": false,
|
|
198983
|
+
"enabledForGitHubApps": true,
|
|
198984
|
+
"category": "deployments",
|
|
198985
|
+
"subcategory": "branch-policies"
|
|
198986
|
+
},
|
|
198987
|
+
"x-octokit": {}
|
|
198988
|
+
},
|
|
198989
|
+
"put": {
|
|
198990
|
+
"summary": "Update a deployment branch policy",
|
|
198991
|
+
"description": "Updates a deployment branch policy for an environment.\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration:write` permission for the repository to use this endpoint.",
|
|
198992
|
+
"tags": [
|
|
198993
|
+
"repos"
|
|
198994
|
+
],
|
|
198995
|
+
"operationId": "repos/update-deployment-branch-policy",
|
|
198996
|
+
"externalDocs": {
|
|
198997
|
+
"description": "API method documentation",
|
|
198998
|
+
"url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/branch-policies#update-deployment-branch-policy"
|
|
198999
|
+
},
|
|
199000
|
+
"parameters": [
|
|
199001
|
+
{
|
|
199002
|
+
"name": "owner",
|
|
199003
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
199004
|
+
"in": "path",
|
|
199005
|
+
"required": true,
|
|
199006
|
+
"schema": {
|
|
199007
|
+
"type": "string"
|
|
199008
|
+
}
|
|
199009
|
+
},
|
|
199010
|
+
{
|
|
199011
|
+
"name": "repo",
|
|
199012
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
199013
|
+
"in": "path",
|
|
199014
|
+
"required": true,
|
|
199015
|
+
"schema": {
|
|
199016
|
+
"type": "string"
|
|
199017
|
+
}
|
|
199018
|
+
},
|
|
199019
|
+
{
|
|
199020
|
+
"name": "environment_name",
|
|
199021
|
+
"in": "path",
|
|
199022
|
+
"required": true,
|
|
199023
|
+
"description": "The name of the environment.",
|
|
199024
|
+
"schema": {
|
|
199025
|
+
"type": "string"
|
|
199026
|
+
}
|
|
199027
|
+
},
|
|
199028
|
+
{
|
|
199029
|
+
"name": "branch_policy_id",
|
|
199030
|
+
"in": "path",
|
|
199031
|
+
"required": true,
|
|
199032
|
+
"description": "The unique identifier of the branch policy.",
|
|
199033
|
+
"schema": {
|
|
199034
|
+
"type": "integer"
|
|
199035
|
+
}
|
|
199036
|
+
}
|
|
199037
|
+
],
|
|
199038
|
+
"requestBody": {
|
|
199039
|
+
"required": true,
|
|
199040
|
+
"content": {
|
|
199041
|
+
"application/json": {
|
|
199042
|
+
"schema": {
|
|
199043
|
+
"title": "Deployment branch policy name pattern",
|
|
199044
|
+
"type": "object",
|
|
199045
|
+
"properties": {
|
|
199046
|
+
"name": {
|
|
199047
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).",
|
|
199048
|
+
"type": "string",
|
|
199049
|
+
"example": "release/*"
|
|
199050
|
+
}
|
|
199051
|
+
},
|
|
199052
|
+
"required": [
|
|
199053
|
+
"name"
|
|
199054
|
+
]
|
|
199055
|
+
},
|
|
199056
|
+
"examples": {
|
|
199057
|
+
"default": {
|
|
199058
|
+
"value": {
|
|
199059
|
+
"name": "release/*"
|
|
199060
|
+
}
|
|
199061
|
+
}
|
|
199062
|
+
}
|
|
199063
|
+
}
|
|
199064
|
+
}
|
|
199065
|
+
},
|
|
199066
|
+
"responses": {
|
|
199067
|
+
"200": {
|
|
199068
|
+
"description": "Response",
|
|
199069
|
+
"content": {
|
|
199070
|
+
"application/json": {
|
|
199071
|
+
"schema": {
|
|
199072
|
+
"title": "Deployment branch policy",
|
|
199073
|
+
"description": "Details of a deployment branch policy.",
|
|
199074
|
+
"type": "object",
|
|
199075
|
+
"properties": {
|
|
199076
|
+
"id": {
|
|
199077
|
+
"description": "The unique identifier of the branch policy.",
|
|
199078
|
+
"type": "integer",
|
|
199079
|
+
"example": 361471
|
|
199080
|
+
},
|
|
199081
|
+
"node_id": {
|
|
199082
|
+
"type": "string",
|
|
199083
|
+
"example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
|
|
199084
|
+
},
|
|
199085
|
+
"name": {
|
|
199086
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.",
|
|
199087
|
+
"type": "string",
|
|
199088
|
+
"example": "release/*"
|
|
199089
|
+
}
|
|
199090
|
+
}
|
|
199091
|
+
},
|
|
199092
|
+
"examples": {
|
|
199093
|
+
"default": {
|
|
199094
|
+
"value": {
|
|
199095
|
+
"id": 364662,
|
|
199096
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
|
|
199097
|
+
"name": "release/*"
|
|
199098
|
+
}
|
|
199099
|
+
}
|
|
199100
|
+
}
|
|
199101
|
+
}
|
|
199102
|
+
}
|
|
199103
|
+
}
|
|
199104
|
+
},
|
|
199105
|
+
"x-github": {
|
|
199106
|
+
"githubCloudOnly": false,
|
|
199107
|
+
"enabledForGitHubApps": true,
|
|
199108
|
+
"category": "deployments",
|
|
199109
|
+
"subcategory": "branch-policies"
|
|
199110
|
+
},
|
|
199111
|
+
"x-octokit": {}
|
|
199112
|
+
},
|
|
199113
|
+
"delete": {
|
|
199114
|
+
"summary": "Delete a deployment branch policy",
|
|
199115
|
+
"description": "Deletes a deployment branch policy for an environment.\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration:write` permission for the repository to use this endpoint.",
|
|
199116
|
+
"tags": [
|
|
199117
|
+
"repos"
|
|
199118
|
+
],
|
|
199119
|
+
"operationId": "repos/delete-deployment-branch-policy",
|
|
199120
|
+
"externalDocs": {
|
|
199121
|
+
"description": "API method documentation",
|
|
199122
|
+
"url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/branch-policies#delete-deployment-branch-policy"
|
|
199123
|
+
},
|
|
199124
|
+
"parameters": [
|
|
199125
|
+
{
|
|
199126
|
+
"name": "owner",
|
|
199127
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
199128
|
+
"in": "path",
|
|
199129
|
+
"required": true,
|
|
199130
|
+
"schema": {
|
|
199131
|
+
"type": "string"
|
|
199132
|
+
}
|
|
199133
|
+
},
|
|
199134
|
+
{
|
|
199135
|
+
"name": "repo",
|
|
199136
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
199137
|
+
"in": "path",
|
|
199138
|
+
"required": true,
|
|
199139
|
+
"schema": {
|
|
199140
|
+
"type": "string"
|
|
199141
|
+
}
|
|
199142
|
+
},
|
|
199143
|
+
{
|
|
199144
|
+
"name": "environment_name",
|
|
199145
|
+
"in": "path",
|
|
199146
|
+
"required": true,
|
|
199147
|
+
"description": "The name of the environment.",
|
|
199148
|
+
"schema": {
|
|
199149
|
+
"type": "string"
|
|
199150
|
+
}
|
|
199151
|
+
},
|
|
199152
|
+
{
|
|
199153
|
+
"name": "branch_policy_id",
|
|
199154
|
+
"in": "path",
|
|
199155
|
+
"required": true,
|
|
199156
|
+
"description": "The unique identifier of the branch policy.",
|
|
199157
|
+
"schema": {
|
|
199158
|
+
"type": "integer"
|
|
199159
|
+
}
|
|
199160
|
+
}
|
|
199161
|
+
],
|
|
199162
|
+
"responses": {
|
|
199163
|
+
"204": {
|
|
199164
|
+
"description": "Response"
|
|
199165
|
+
}
|
|
199166
|
+
},
|
|
199167
|
+
"x-github": {
|
|
199168
|
+
"githubCloudOnly": false,
|
|
199169
|
+
"enabledForGitHubApps": true,
|
|
199170
|
+
"category": "deployments",
|
|
199171
|
+
"subcategory": "branch-policies"
|
|
199172
|
+
},
|
|
199173
|
+
"x-octokit": {}
|
|
199174
|
+
}
|
|
199175
|
+
},
|
|
198417
199176
|
"/repos/{owner}/{repo}/events": {
|
|
198418
199177
|
"get": {
|
|
198419
199178
|
"summary": "List repository events",
|
|
@@ -214839,6 +215598,14 @@
|
|
|
214839
215598
|
"write"
|
|
214840
215599
|
]
|
|
214841
215600
|
},
|
|
215601
|
+
"organization_custom_roles": {
|
|
215602
|
+
"type": "string",
|
|
215603
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
215604
|
+
"enum": [
|
|
215605
|
+
"read",
|
|
215606
|
+
"write"
|
|
215607
|
+
]
|
|
215608
|
+
},
|
|
214842
215609
|
"deployments": {
|
|
214843
215610
|
"type": "string",
|
|
214844
215611
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -313946,287 +314713,293 @@
|
|
|
313946
314713
|
"type": "object",
|
|
313947
314714
|
"properties": {
|
|
313948
314715
|
"type": {
|
|
313949
|
-
"type": "string"
|
|
313950
|
-
},
|
|
313951
|
-
"encoding": {
|
|
313952
|
-
"type": "string"
|
|
313953
|
-
},
|
|
313954
|
-
"size": {
|
|
313955
|
-
"type": "integer"
|
|
313956
|
-
},
|
|
313957
|
-
"name": {
|
|
313958
|
-
"type": "string"
|
|
313959
|
-
},
|
|
313960
|
-
"path": {
|
|
313961
|
-
"type": "string"
|
|
313962
|
-
},
|
|
313963
|
-
"content": {
|
|
313964
|
-
"type": "string"
|
|
313965
|
-
},
|
|
313966
|
-
"sha": {
|
|
313967
|
-
"type": "string"
|
|
313968
|
-
},
|
|
313969
|
-
"url": {
|
|
313970
|
-
"type": "string",
|
|
313971
|
-
"format": "uri"
|
|
313972
|
-
},
|
|
313973
|
-
"git_url": {
|
|
313974
|
-
"type": "string",
|
|
313975
|
-
"format": "uri",
|
|
313976
|
-
"nullable": true
|
|
313977
|
-
},
|
|
313978
|
-
"html_url": {
|
|
313979
314716
|
"type": "string",
|
|
313980
|
-
"
|
|
313981
|
-
|
|
313982
|
-
|
|
313983
|
-
|
|
313984
|
-
|
|
313985
|
-
"
|
|
313986
|
-
|
|
313987
|
-
|
|
313988
|
-
|
|
313989
|
-
|
|
313990
|
-
|
|
313991
|
-
|
|
313992
|
-
|
|
313993
|
-
|
|
313994
|
-
|
|
313995
|
-
|
|
313996
|
-
|
|
313997
|
-
|
|
313998
|
-
|
|
313999
|
-
|
|
314000
|
-
|
|
314001
|
-
|
|
314002
|
-
|
|
314003
|
-
|
|
314004
|
-
|
|
314005
|
-
|
|
314006
|
-
|
|
314007
|
-
|
|
314008
|
-
|
|
314009
|
-
|
|
314717
|
+
"enum": [
|
|
314718
|
+
"file"
|
|
314719
|
+
]
|
|
314720
|
+
},
|
|
314721
|
+
"encoding": {
|
|
314722
|
+
"type": "string"
|
|
314723
|
+
},
|
|
314724
|
+
"size": {
|
|
314725
|
+
"type": "integer"
|
|
314726
|
+
},
|
|
314727
|
+
"name": {
|
|
314728
|
+
"type": "string"
|
|
314729
|
+
},
|
|
314730
|
+
"path": {
|
|
314731
|
+
"type": "string"
|
|
314732
|
+
},
|
|
314733
|
+
"content": {
|
|
314734
|
+
"type": "string"
|
|
314735
|
+
},
|
|
314736
|
+
"sha": {
|
|
314737
|
+
"type": "string"
|
|
314738
|
+
},
|
|
314739
|
+
"url": {
|
|
314740
|
+
"type": "string",
|
|
314741
|
+
"format": "uri"
|
|
314742
|
+
},
|
|
314743
|
+
"git_url": {
|
|
314744
|
+
"type": "string",
|
|
314745
|
+
"format": "uri",
|
|
314746
|
+
"nullable": true
|
|
314747
|
+
},
|
|
314748
|
+
"html_url": {
|
|
314749
|
+
"type": "string",
|
|
314750
|
+
"format": "uri",
|
|
314751
|
+
"nullable": true
|
|
314752
|
+
},
|
|
314753
|
+
"download_url": {
|
|
314754
|
+
"type": "string",
|
|
314755
|
+
"format": "uri",
|
|
314756
|
+
"nullable": true
|
|
314757
|
+
},
|
|
314758
|
+
"_links": {
|
|
314759
|
+
"type": "object",
|
|
314760
|
+
"properties": {
|
|
314761
|
+
"git": {
|
|
314762
|
+
"type": "string",
|
|
314763
|
+
"format": "uri",
|
|
314764
|
+
"nullable": true
|
|
314765
|
+
},
|
|
314766
|
+
"html": {
|
|
314767
|
+
"type": "string",
|
|
314768
|
+
"format": "uri",
|
|
314769
|
+
"nullable": true
|
|
314770
|
+
},
|
|
314771
|
+
"self": {
|
|
314772
|
+
"type": "string",
|
|
314773
|
+
"format": "uri"
|
|
314774
|
+
}
|
|
314775
|
+
},
|
|
314776
|
+
"required": [
|
|
314777
|
+
"git",
|
|
314778
|
+
"html",
|
|
314779
|
+
"self"
|
|
314780
|
+
]
|
|
314781
|
+
},
|
|
314782
|
+
"target": {
|
|
314783
|
+
"type": "string",
|
|
314784
|
+
"example": "\"actual/actual.md\""
|
|
314785
|
+
},
|
|
314786
|
+
"submodule_git_url": {
|
|
314787
|
+
"type": "string",
|
|
314788
|
+
"example": "\"git://example.com/defunkt/dotjs.git\""
|
|
314789
|
+
}
|
|
314790
|
+
},
|
|
314791
|
+
"required": [
|
|
314792
|
+
"_links",
|
|
314793
|
+
"git_url",
|
|
314794
|
+
"html_url",
|
|
314795
|
+
"download_url",
|
|
314796
|
+
"name",
|
|
314797
|
+
"path",
|
|
314798
|
+
"sha",
|
|
314799
|
+
"size",
|
|
314800
|
+
"type",
|
|
314801
|
+
"url",
|
|
314802
|
+
"content",
|
|
314803
|
+
"encoding"
|
|
314804
|
+
]
|
|
314805
|
+
},
|
|
314806
|
+
"examples": {
|
|
314807
|
+
"default": {
|
|
314808
|
+
"value": {
|
|
314809
|
+
"type": "file",
|
|
314810
|
+
"encoding": "base64",
|
|
314811
|
+
"size": 5362,
|
|
314812
|
+
"name": "README.md",
|
|
314813
|
+
"path": "README.md",
|
|
314814
|
+
"content": "encoded content ...",
|
|
314815
|
+
"sha": "3d21ec53a331a6f037a91c368710b99387d012c1",
|
|
314816
|
+
"url": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
|
|
314817
|
+
"git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
|
|
314818
|
+
"html_url": "https://github.com/octokit/octokit.rb/blob/master/README.md",
|
|
314819
|
+
"download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/README.md",
|
|
314820
|
+
"_links": {
|
|
314821
|
+
"git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
|
|
314822
|
+
"self": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
|
|
314823
|
+
"html": "https://github.com/octokit/octokit.rb/blob/master/README.md"
|
|
314824
|
+
}
|
|
314825
|
+
}
|
|
314826
|
+
}
|
|
314827
|
+
}
|
|
314828
|
+
}
|
|
314829
|
+
}
|
|
314830
|
+
},
|
|
314831
|
+
"404": {
|
|
314832
|
+
"description": "Resource not found",
|
|
314833
|
+
"content": {
|
|
314834
|
+
"application/json": {
|
|
314835
|
+
"schema": {
|
|
314836
|
+
"title": "Basic Error",
|
|
314837
|
+
"description": "Basic Error",
|
|
314838
|
+
"type": "object",
|
|
314839
|
+
"properties": {
|
|
314840
|
+
"message": {
|
|
314841
|
+
"type": "string"
|
|
314842
|
+
},
|
|
314843
|
+
"documentation_url": {
|
|
314844
|
+
"type": "string"
|
|
314845
|
+
},
|
|
314846
|
+
"url": {
|
|
314847
|
+
"type": "string"
|
|
314848
|
+
},
|
|
314849
|
+
"status": {
|
|
314850
|
+
"type": "string"
|
|
314851
|
+
}
|
|
314852
|
+
}
|
|
314853
|
+
}
|
|
314854
|
+
}
|
|
314855
|
+
}
|
|
314856
|
+
},
|
|
314857
|
+
"422": {
|
|
314858
|
+
"description": "Validation failed",
|
|
314859
|
+
"content": {
|
|
314860
|
+
"application/json": {
|
|
314861
|
+
"schema": {
|
|
314862
|
+
"title": "Validation Error",
|
|
314863
|
+
"description": "Validation Error",
|
|
314864
|
+
"type": "object",
|
|
314865
|
+
"required": [
|
|
314866
|
+
"message",
|
|
314867
|
+
"documentation_url"
|
|
314868
|
+
],
|
|
314869
|
+
"properties": {
|
|
314870
|
+
"message": {
|
|
314871
|
+
"type": "string"
|
|
314872
|
+
},
|
|
314873
|
+
"documentation_url": {
|
|
314874
|
+
"type": "string"
|
|
314875
|
+
},
|
|
314876
|
+
"errors": {
|
|
314877
|
+
"type": "array",
|
|
314878
|
+
"items": {
|
|
314879
|
+
"type": "object",
|
|
314880
|
+
"required": [
|
|
314881
|
+
"code"
|
|
314882
|
+
],
|
|
314883
|
+
"properties": {
|
|
314884
|
+
"resource": {
|
|
314885
|
+
"type": "string"
|
|
314886
|
+
},
|
|
314887
|
+
"field": {
|
|
314888
|
+
"type": "string"
|
|
314889
|
+
},
|
|
314890
|
+
"message": {
|
|
314891
|
+
"type": "string"
|
|
314892
|
+
},
|
|
314893
|
+
"code": {
|
|
314894
|
+
"type": "string"
|
|
314895
|
+
},
|
|
314896
|
+
"index": {
|
|
314897
|
+
"type": "integer"
|
|
314898
|
+
},
|
|
314899
|
+
"value": {
|
|
314900
|
+
"oneOf": [
|
|
314901
|
+
{
|
|
314902
|
+
"type": "string",
|
|
314903
|
+
"nullable": true
|
|
314904
|
+
},
|
|
314905
|
+
{
|
|
314906
|
+
"type": "integer",
|
|
314907
|
+
"nullable": true
|
|
314908
|
+
},
|
|
314909
|
+
{
|
|
314910
|
+
"type": "array",
|
|
314911
|
+
"nullable": true,
|
|
314912
|
+
"items": {
|
|
314913
|
+
"type": "string"
|
|
314914
|
+
}
|
|
314915
|
+
}
|
|
314916
|
+
]
|
|
314917
|
+
}
|
|
314918
|
+
}
|
|
314919
|
+
}
|
|
314920
|
+
}
|
|
314921
|
+
}
|
|
314922
|
+
}
|
|
314923
|
+
}
|
|
314924
|
+
}
|
|
314925
|
+
}
|
|
314926
|
+
},
|
|
314927
|
+
"x-github": {
|
|
314928
|
+
"githubCloudOnly": false,
|
|
314929
|
+
"enabledForGitHubApps": true,
|
|
314930
|
+
"category": "repos",
|
|
314931
|
+
"subcategory": "contents"
|
|
314932
|
+
},
|
|
314933
|
+
"x-octokit": {}
|
|
314934
|
+
}
|
|
314935
|
+
},
|
|
314936
|
+
"/repos/{owner}/{repo}/readme/{dir}": {
|
|
314937
|
+
"get": {
|
|
314938
|
+
"summary": "Get a repository README for a directory",
|
|
314939
|
+
"description": "Gets the README from a repository directory.\n\nREADMEs support [custom media types](https://docs.github.com/enterprise-server@3.2/rest/reference/repos#custom-media-types) for retrieving the raw content or rendered HTML.",
|
|
314940
|
+
"tags": [
|
|
314941
|
+
"repos"
|
|
314942
|
+
],
|
|
314943
|
+
"operationId": "repos/get-readme-in-directory",
|
|
314944
|
+
"externalDocs": {
|
|
314945
|
+
"description": "API method documentation",
|
|
314946
|
+
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/repos#get-a-repository-directory-readme"
|
|
314947
|
+
},
|
|
314948
|
+
"parameters": [
|
|
314949
|
+
{
|
|
314950
|
+
"name": "owner",
|
|
314951
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
314952
|
+
"in": "path",
|
|
314953
|
+
"required": true,
|
|
314954
|
+
"schema": {
|
|
314955
|
+
"type": "string"
|
|
314956
|
+
}
|
|
314957
|
+
},
|
|
314958
|
+
{
|
|
314959
|
+
"name": "repo",
|
|
314960
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
314961
|
+
"in": "path",
|
|
314962
|
+
"required": true,
|
|
314963
|
+
"schema": {
|
|
314964
|
+
"type": "string"
|
|
314965
|
+
}
|
|
314966
|
+
},
|
|
314967
|
+
{
|
|
314968
|
+
"name": "dir",
|
|
314969
|
+
"description": "The alternate path to look for a README file",
|
|
314970
|
+
"in": "path",
|
|
314971
|
+
"required": true,
|
|
314972
|
+
"schema": {
|
|
314973
|
+
"type": "string"
|
|
314974
|
+
},
|
|
314975
|
+
"x-multi-segment": true
|
|
314976
|
+
},
|
|
314977
|
+
{
|
|
314978
|
+
"name": "ref",
|
|
314979
|
+
"description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
|
|
314980
|
+
"in": "query",
|
|
314981
|
+
"required": false,
|
|
314982
|
+
"schema": {
|
|
314983
|
+
"type": "string"
|
|
314984
|
+
}
|
|
314985
|
+
}
|
|
314986
|
+
],
|
|
314987
|
+
"responses": {
|
|
314988
|
+
"200": {
|
|
314989
|
+
"description": "Response",
|
|
314990
|
+
"content": {
|
|
314991
|
+
"application/json": {
|
|
314992
|
+
"schema": {
|
|
314993
|
+
"title": "Content File",
|
|
314994
|
+
"description": "Content File",
|
|
314995
|
+
"type": "object",
|
|
314996
|
+
"properties": {
|
|
314997
|
+
"type": {
|
|
314998
|
+
"type": "string",
|
|
314999
|
+
"enum": [
|
|
315000
|
+
"file"
|
|
314010
315001
|
]
|
|
314011
315002
|
},
|
|
314012
|
-
"target": {
|
|
314013
|
-
"type": "string",
|
|
314014
|
-
"example": "\"actual/actual.md\""
|
|
314015
|
-
},
|
|
314016
|
-
"submodule_git_url": {
|
|
314017
|
-
"type": "string",
|
|
314018
|
-
"example": "\"git://example.com/defunkt/dotjs.git\""
|
|
314019
|
-
}
|
|
314020
|
-
},
|
|
314021
|
-
"required": [
|
|
314022
|
-
"_links",
|
|
314023
|
-
"git_url",
|
|
314024
|
-
"html_url",
|
|
314025
|
-
"download_url",
|
|
314026
|
-
"name",
|
|
314027
|
-
"path",
|
|
314028
|
-
"sha",
|
|
314029
|
-
"size",
|
|
314030
|
-
"type",
|
|
314031
|
-
"url",
|
|
314032
|
-
"content",
|
|
314033
|
-
"encoding"
|
|
314034
|
-
]
|
|
314035
|
-
},
|
|
314036
|
-
"examples": {
|
|
314037
|
-
"default": {
|
|
314038
|
-
"value": {
|
|
314039
|
-
"type": "file",
|
|
314040
|
-
"encoding": "base64",
|
|
314041
|
-
"size": 5362,
|
|
314042
|
-
"name": "README.md",
|
|
314043
|
-
"path": "README.md",
|
|
314044
|
-
"content": "encoded content ...",
|
|
314045
|
-
"sha": "3d21ec53a331a6f037a91c368710b99387d012c1",
|
|
314046
|
-
"url": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
|
|
314047
|
-
"git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
|
|
314048
|
-
"html_url": "https://github.com/octokit/octokit.rb/blob/master/README.md",
|
|
314049
|
-
"download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/README.md",
|
|
314050
|
-
"_links": {
|
|
314051
|
-
"git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
|
|
314052
|
-
"self": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
|
|
314053
|
-
"html": "https://github.com/octokit/octokit.rb/blob/master/README.md"
|
|
314054
|
-
}
|
|
314055
|
-
}
|
|
314056
|
-
}
|
|
314057
|
-
}
|
|
314058
|
-
}
|
|
314059
|
-
}
|
|
314060
|
-
},
|
|
314061
|
-
"404": {
|
|
314062
|
-
"description": "Resource not found",
|
|
314063
|
-
"content": {
|
|
314064
|
-
"application/json": {
|
|
314065
|
-
"schema": {
|
|
314066
|
-
"title": "Basic Error",
|
|
314067
|
-
"description": "Basic Error",
|
|
314068
|
-
"type": "object",
|
|
314069
|
-
"properties": {
|
|
314070
|
-
"message": {
|
|
314071
|
-
"type": "string"
|
|
314072
|
-
},
|
|
314073
|
-
"documentation_url": {
|
|
314074
|
-
"type": "string"
|
|
314075
|
-
},
|
|
314076
|
-
"url": {
|
|
314077
|
-
"type": "string"
|
|
314078
|
-
},
|
|
314079
|
-
"status": {
|
|
314080
|
-
"type": "string"
|
|
314081
|
-
}
|
|
314082
|
-
}
|
|
314083
|
-
}
|
|
314084
|
-
}
|
|
314085
|
-
}
|
|
314086
|
-
},
|
|
314087
|
-
"422": {
|
|
314088
|
-
"description": "Validation failed",
|
|
314089
|
-
"content": {
|
|
314090
|
-
"application/json": {
|
|
314091
|
-
"schema": {
|
|
314092
|
-
"title": "Validation Error",
|
|
314093
|
-
"description": "Validation Error",
|
|
314094
|
-
"type": "object",
|
|
314095
|
-
"required": [
|
|
314096
|
-
"message",
|
|
314097
|
-
"documentation_url"
|
|
314098
|
-
],
|
|
314099
|
-
"properties": {
|
|
314100
|
-
"message": {
|
|
314101
|
-
"type": "string"
|
|
314102
|
-
},
|
|
314103
|
-
"documentation_url": {
|
|
314104
|
-
"type": "string"
|
|
314105
|
-
},
|
|
314106
|
-
"errors": {
|
|
314107
|
-
"type": "array",
|
|
314108
|
-
"items": {
|
|
314109
|
-
"type": "object",
|
|
314110
|
-
"required": [
|
|
314111
|
-
"code"
|
|
314112
|
-
],
|
|
314113
|
-
"properties": {
|
|
314114
|
-
"resource": {
|
|
314115
|
-
"type": "string"
|
|
314116
|
-
},
|
|
314117
|
-
"field": {
|
|
314118
|
-
"type": "string"
|
|
314119
|
-
},
|
|
314120
|
-
"message": {
|
|
314121
|
-
"type": "string"
|
|
314122
|
-
},
|
|
314123
|
-
"code": {
|
|
314124
|
-
"type": "string"
|
|
314125
|
-
},
|
|
314126
|
-
"index": {
|
|
314127
|
-
"type": "integer"
|
|
314128
|
-
},
|
|
314129
|
-
"value": {
|
|
314130
|
-
"oneOf": [
|
|
314131
|
-
{
|
|
314132
|
-
"type": "string",
|
|
314133
|
-
"nullable": true
|
|
314134
|
-
},
|
|
314135
|
-
{
|
|
314136
|
-
"type": "integer",
|
|
314137
|
-
"nullable": true
|
|
314138
|
-
},
|
|
314139
|
-
{
|
|
314140
|
-
"type": "array",
|
|
314141
|
-
"nullable": true,
|
|
314142
|
-
"items": {
|
|
314143
|
-
"type": "string"
|
|
314144
|
-
}
|
|
314145
|
-
}
|
|
314146
|
-
]
|
|
314147
|
-
}
|
|
314148
|
-
}
|
|
314149
|
-
}
|
|
314150
|
-
}
|
|
314151
|
-
}
|
|
314152
|
-
}
|
|
314153
|
-
}
|
|
314154
|
-
}
|
|
314155
|
-
}
|
|
314156
|
-
},
|
|
314157
|
-
"x-github": {
|
|
314158
|
-
"githubCloudOnly": false,
|
|
314159
|
-
"enabledForGitHubApps": true,
|
|
314160
|
-
"category": "repos",
|
|
314161
|
-
"subcategory": "contents"
|
|
314162
|
-
},
|
|
314163
|
-
"x-octokit": {}
|
|
314164
|
-
}
|
|
314165
|
-
},
|
|
314166
|
-
"/repos/{owner}/{repo}/readme/{dir}": {
|
|
314167
|
-
"get": {
|
|
314168
|
-
"summary": "Get a repository README for a directory",
|
|
314169
|
-
"description": "Gets the README from a repository directory.\n\nREADMEs support [custom media types](https://docs.github.com/enterprise-server@3.2/rest/reference/repos#custom-media-types) for retrieving the raw content or rendered HTML.",
|
|
314170
|
-
"tags": [
|
|
314171
|
-
"repos"
|
|
314172
|
-
],
|
|
314173
|
-
"operationId": "repos/get-readme-in-directory",
|
|
314174
|
-
"externalDocs": {
|
|
314175
|
-
"description": "API method documentation",
|
|
314176
|
-
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/repos#get-a-repository-directory-readme"
|
|
314177
|
-
},
|
|
314178
|
-
"parameters": [
|
|
314179
|
-
{
|
|
314180
|
-
"name": "owner",
|
|
314181
|
-
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
314182
|
-
"in": "path",
|
|
314183
|
-
"required": true,
|
|
314184
|
-
"schema": {
|
|
314185
|
-
"type": "string"
|
|
314186
|
-
}
|
|
314187
|
-
},
|
|
314188
|
-
{
|
|
314189
|
-
"name": "repo",
|
|
314190
|
-
"description": "The name of the repository. The name is not case sensitive.",
|
|
314191
|
-
"in": "path",
|
|
314192
|
-
"required": true,
|
|
314193
|
-
"schema": {
|
|
314194
|
-
"type": "string"
|
|
314195
|
-
}
|
|
314196
|
-
},
|
|
314197
|
-
{
|
|
314198
|
-
"name": "dir",
|
|
314199
|
-
"description": "The alternate path to look for a README file",
|
|
314200
|
-
"in": "path",
|
|
314201
|
-
"required": true,
|
|
314202
|
-
"schema": {
|
|
314203
|
-
"type": "string"
|
|
314204
|
-
},
|
|
314205
|
-
"x-multi-segment": true
|
|
314206
|
-
},
|
|
314207
|
-
{
|
|
314208
|
-
"name": "ref",
|
|
314209
|
-
"description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
|
|
314210
|
-
"in": "query",
|
|
314211
|
-
"required": false,
|
|
314212
|
-
"schema": {
|
|
314213
|
-
"type": "string"
|
|
314214
|
-
}
|
|
314215
|
-
}
|
|
314216
|
-
],
|
|
314217
|
-
"responses": {
|
|
314218
|
-
"200": {
|
|
314219
|
-
"description": "Response",
|
|
314220
|
-
"content": {
|
|
314221
|
-
"application/json": {
|
|
314222
|
-
"schema": {
|
|
314223
|
-
"title": "Content File",
|
|
314224
|
-
"description": "Content File",
|
|
314225
|
-
"type": "object",
|
|
314226
|
-
"properties": {
|
|
314227
|
-
"type": {
|
|
314228
|
-
"type": "string"
|
|
314229
|
-
},
|
|
314230
315003
|
"encoding": {
|
|
314231
315004
|
"type": "string"
|
|
314232
315005
|
},
|
|
@@ -329915,7 +330688,7 @@
|
|
|
329915
330688
|
"name": "environment_name",
|
|
329916
330689
|
"in": "path",
|
|
329917
330690
|
"required": true,
|
|
329918
|
-
"description": "The name of the environment",
|
|
330691
|
+
"description": "The name of the environment.",
|
|
329919
330692
|
"schema": {
|
|
329920
330693
|
"type": "string"
|
|
329921
330694
|
}
|
|
@@ -330050,7 +330823,7 @@
|
|
|
330050
330823
|
"name": "environment_name",
|
|
330051
330824
|
"in": "path",
|
|
330052
330825
|
"required": true,
|
|
330053
|
-
"description": "The name of the environment",
|
|
330826
|
+
"description": "The name of the environment.",
|
|
330054
330827
|
"schema": {
|
|
330055
330828
|
"type": "string"
|
|
330056
330829
|
}
|
|
@@ -330145,7 +330918,7 @@
|
|
|
330145
330918
|
"name": "environment_name",
|
|
330146
330919
|
"in": "path",
|
|
330147
330920
|
"required": true,
|
|
330148
|
-
"description": "The name of the environment",
|
|
330921
|
+
"description": "The name of the environment.",
|
|
330149
330922
|
"schema": {
|
|
330150
330923
|
"type": "string"
|
|
330151
330924
|
}
|
|
@@ -330236,7 +331009,7 @@
|
|
|
330236
331009
|
"name": "environment_name",
|
|
330237
331010
|
"in": "path",
|
|
330238
331011
|
"required": true,
|
|
330239
|
-
"description": "The name of the environment",
|
|
331012
|
+
"description": "The name of the environment.",
|
|
330240
331013
|
"schema": {
|
|
330241
331014
|
"type": "string"
|
|
330242
331015
|
}
|
|
@@ -330341,7 +331114,7 @@
|
|
|
330341
331114
|
"name": "environment_name",
|
|
330342
331115
|
"in": "path",
|
|
330343
331116
|
"required": true,
|
|
330344
|
-
"description": "The name of the environment",
|
|
331117
|
+
"description": "The name of the environment.",
|
|
330345
331118
|
"schema": {
|
|
330346
331119
|
"type": "string"
|
|
330347
331120
|
}
|
|
@@ -357772,6 +358545,14 @@
|
|
|
357772
358545
|
"write"
|
|
357773
358546
|
]
|
|
357774
358547
|
},
|
|
358548
|
+
"organization_custom_roles": {
|
|
358549
|
+
"type": "string",
|
|
358550
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
358551
|
+
"enum": [
|
|
358552
|
+
"read",
|
|
358553
|
+
"write"
|
|
358554
|
+
]
|
|
358555
|
+
},
|
|
357775
358556
|
"deployments": {
|
|
357776
358557
|
"type": "string",
|
|
357777
358558
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -388814,6 +389595,14 @@
|
|
|
388814
389595
|
"write"
|
|
388815
389596
|
]
|
|
388816
389597
|
},
|
|
389598
|
+
"organization_custom_roles": {
|
|
389599
|
+
"type": "string",
|
|
389600
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
389601
|
+
"enum": [
|
|
389602
|
+
"read",
|
|
389603
|
+
"write"
|
|
389604
|
+
]
|
|
389605
|
+
},
|
|
388817
389606
|
"deployments": {
|
|
388818
389607
|
"type": "string",
|
|
388819
389608
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -402585,6 +403374,12 @@
|
|
|
402585
403374
|
"text/plain": {
|
|
402586
403375
|
"schema": {
|
|
402587
403376
|
"type": "string"
|
|
403377
|
+
},
|
|
403378
|
+
"examples": {
|
|
403379
|
+
"default": {
|
|
403380
|
+
"summary": "Example response",
|
|
403381
|
+
"value": "Responsive is better than fast"
|
|
403382
|
+
}
|
|
402588
403383
|
}
|
|
402589
403384
|
}
|
|
402590
403385
|
}
|