@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": {
|
|
@@ -4087,6 +4087,14 @@
|
|
|
4087
4087
|
"write"
|
|
4088
4088
|
]
|
|
4089
4089
|
},
|
|
4090
|
+
"organization_custom_roles": {
|
|
4091
|
+
"type": "string",
|
|
4092
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
4093
|
+
"enum": [
|
|
4094
|
+
"read",
|
|
4095
|
+
"write"
|
|
4096
|
+
]
|
|
4097
|
+
},
|
|
4090
4098
|
"deployments": {
|
|
4091
4099
|
"type": "string",
|
|
4092
4100
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -5169,6 +5177,14 @@
|
|
|
5169
5177
|
"write"
|
|
5170
5178
|
]
|
|
5171
5179
|
},
|
|
5180
|
+
"organization_custom_roles": {
|
|
5181
|
+
"type": "string",
|
|
5182
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
5183
|
+
"enum": [
|
|
5184
|
+
"read",
|
|
5185
|
+
"write"
|
|
5186
|
+
]
|
|
5187
|
+
},
|
|
5172
5188
|
"deployments": {
|
|
5173
5189
|
"type": "string",
|
|
5174
5190
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -5833,6 +5849,14 @@
|
|
|
5833
5849
|
"write"
|
|
5834
5850
|
]
|
|
5835
5851
|
},
|
|
5852
|
+
"organization_custom_roles": {
|
|
5853
|
+
"type": "string",
|
|
5854
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
5855
|
+
"enum": [
|
|
5856
|
+
"read",
|
|
5857
|
+
"write"
|
|
5858
|
+
]
|
|
5859
|
+
},
|
|
5836
5860
|
"deployments": {
|
|
5837
5861
|
"type": "string",
|
|
5838
5862
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -8402,6 +8426,14 @@
|
|
|
8402
8426
|
"write"
|
|
8403
8427
|
]
|
|
8404
8428
|
},
|
|
8429
|
+
"organization_custom_roles": {
|
|
8430
|
+
"type": "string",
|
|
8431
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
8432
|
+
"enum": [
|
|
8433
|
+
"read",
|
|
8434
|
+
"write"
|
|
8435
|
+
]
|
|
8436
|
+
},
|
|
8405
8437
|
"deployments": {
|
|
8406
8438
|
"type": "string",
|
|
8407
8439
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -9191,6 +9223,14 @@
|
|
|
9191
9223
|
"write"
|
|
9192
9224
|
]
|
|
9193
9225
|
},
|
|
9226
|
+
"organization_custom_roles": {
|
|
9227
|
+
"type": "string",
|
|
9228
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
9229
|
+
"enum": [
|
|
9230
|
+
"read",
|
|
9231
|
+
"write"
|
|
9232
|
+
]
|
|
9233
|
+
},
|
|
9194
9234
|
"deployments": {
|
|
9195
9235
|
"type": "string",
|
|
9196
9236
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -9844,6 +9884,14 @@
|
|
|
9844
9884
|
"write"
|
|
9845
9885
|
]
|
|
9846
9886
|
},
|
|
9887
|
+
"organization_custom_roles": {
|
|
9888
|
+
"type": "string",
|
|
9889
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
9890
|
+
"enum": [
|
|
9891
|
+
"read",
|
|
9892
|
+
"write"
|
|
9893
|
+
]
|
|
9894
|
+
},
|
|
9847
9895
|
"deployments": {
|
|
9848
9896
|
"type": "string",
|
|
9849
9897
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -10129,6 +10177,14 @@
|
|
|
10129
10177
|
"write"
|
|
10130
10178
|
]
|
|
10131
10179
|
},
|
|
10180
|
+
"organization_custom_roles": {
|
|
10181
|
+
"type": "string",
|
|
10182
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
10183
|
+
"enum": [
|
|
10184
|
+
"read",
|
|
10185
|
+
"write"
|
|
10186
|
+
]
|
|
10187
|
+
},
|
|
10132
10188
|
"deployments": {
|
|
10133
10189
|
"type": "string",
|
|
10134
10190
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -13098,6 +13154,14 @@
|
|
|
13098
13154
|
"write"
|
|
13099
13155
|
]
|
|
13100
13156
|
},
|
|
13157
|
+
"organization_custom_roles": {
|
|
13158
|
+
"type": "string",
|
|
13159
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
13160
|
+
"enum": [
|
|
13161
|
+
"read",
|
|
13162
|
+
"write"
|
|
13163
|
+
]
|
|
13164
|
+
},
|
|
13101
13165
|
"deployments": {
|
|
13102
13166
|
"type": "string",
|
|
13103
13167
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -13941,6 +14005,14 @@
|
|
|
13941
14005
|
"write"
|
|
13942
14006
|
]
|
|
13943
14007
|
},
|
|
14008
|
+
"organization_custom_roles": {
|
|
14009
|
+
"type": "string",
|
|
14010
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
14011
|
+
"enum": [
|
|
14012
|
+
"read",
|
|
14013
|
+
"write"
|
|
14014
|
+
]
|
|
14015
|
+
},
|
|
13944
14016
|
"deployments": {
|
|
13945
14017
|
"type": "string",
|
|
13946
14018
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -14708,6 +14780,14 @@
|
|
|
14708
14780
|
"write"
|
|
14709
14781
|
]
|
|
14710
14782
|
},
|
|
14783
|
+
"organization_custom_roles": {
|
|
14784
|
+
"type": "string",
|
|
14785
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
14786
|
+
"enum": [
|
|
14787
|
+
"read",
|
|
14788
|
+
"write"
|
|
14789
|
+
]
|
|
14790
|
+
},
|
|
14711
14791
|
"deployments": {
|
|
14712
14792
|
"type": "string",
|
|
14713
14793
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -15183,6 +15263,14 @@
|
|
|
15183
15263
|
"write"
|
|
15184
15264
|
]
|
|
15185
15265
|
},
|
|
15266
|
+
"organization_custom_roles": {
|
|
15267
|
+
"type": "string",
|
|
15268
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
15269
|
+
"enum": [
|
|
15270
|
+
"read",
|
|
15271
|
+
"write"
|
|
15272
|
+
]
|
|
15273
|
+
},
|
|
15186
15274
|
"deployments": {
|
|
15187
15275
|
"type": "string",
|
|
15188
15276
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -16480,6 +16568,14 @@
|
|
|
16480
16568
|
"write"
|
|
16481
16569
|
]
|
|
16482
16570
|
},
|
|
16571
|
+
"organization_custom_roles": {
|
|
16572
|
+
"type": "string",
|
|
16573
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
16574
|
+
"enum": [
|
|
16575
|
+
"read",
|
|
16576
|
+
"write"
|
|
16577
|
+
]
|
|
16578
|
+
},
|
|
16483
16579
|
"deployments": {
|
|
16484
16580
|
"type": "string",
|
|
16485
16581
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -17333,6 +17429,14 @@
|
|
|
17333
17429
|
"write"
|
|
17334
17430
|
]
|
|
17335
17431
|
},
|
|
17432
|
+
"organization_custom_roles": {
|
|
17433
|
+
"type": "string",
|
|
17434
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
17435
|
+
"enum": [
|
|
17436
|
+
"read",
|
|
17437
|
+
"write"
|
|
17438
|
+
]
|
|
17439
|
+
},
|
|
17336
17440
|
"deployments": {
|
|
17337
17441
|
"type": "string",
|
|
17338
17442
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -18255,6 +18359,14 @@
|
|
|
18255
18359
|
"write"
|
|
18256
18360
|
]
|
|
18257
18361
|
},
|
|
18362
|
+
"organization_custom_roles": {
|
|
18363
|
+
"type": "string",
|
|
18364
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
18365
|
+
"enum": [
|
|
18366
|
+
"read",
|
|
18367
|
+
"write"
|
|
18368
|
+
]
|
|
18369
|
+
},
|
|
18258
18370
|
"deployments": {
|
|
18259
18371
|
"type": "string",
|
|
18260
18372
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -18927,6 +19039,14 @@
|
|
|
18927
19039
|
"write"
|
|
18928
19040
|
]
|
|
18929
19041
|
},
|
|
19042
|
+
"organization_custom_roles": {
|
|
19043
|
+
"type": "string",
|
|
19044
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
19045
|
+
"enum": [
|
|
19046
|
+
"read",
|
|
19047
|
+
"write"
|
|
19048
|
+
]
|
|
19049
|
+
},
|
|
18930
19050
|
"deployments": {
|
|
18931
19051
|
"type": "string",
|
|
18932
19052
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -19827,6 +19947,14 @@
|
|
|
19827
19947
|
"write"
|
|
19828
19948
|
]
|
|
19829
19949
|
},
|
|
19950
|
+
"organization_custom_roles": {
|
|
19951
|
+
"type": "string",
|
|
19952
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
19953
|
+
"enum": [
|
|
19954
|
+
"read",
|
|
19955
|
+
"write"
|
|
19956
|
+
]
|
|
19957
|
+
},
|
|
19830
19958
|
"deployments": {
|
|
19831
19959
|
"type": "string",
|
|
19832
19960
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -20499,6 +20627,14 @@
|
|
|
20499
20627
|
"write"
|
|
20500
20628
|
]
|
|
20501
20629
|
},
|
|
20630
|
+
"organization_custom_roles": {
|
|
20631
|
+
"type": "string",
|
|
20632
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
20633
|
+
"enum": [
|
|
20634
|
+
"read",
|
|
20635
|
+
"write"
|
|
20636
|
+
]
|
|
20637
|
+
},
|
|
20502
20638
|
"deployments": {
|
|
20503
20639
|
"type": "string",
|
|
20504
20640
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -21277,6 +21413,14 @@
|
|
|
21277
21413
|
"write"
|
|
21278
21414
|
]
|
|
21279
21415
|
},
|
|
21416
|
+
"organization_custom_roles": {
|
|
21417
|
+
"type": "string",
|
|
21418
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
21419
|
+
"enum": [
|
|
21420
|
+
"read",
|
|
21421
|
+
"write"
|
|
21422
|
+
]
|
|
21423
|
+
},
|
|
21280
21424
|
"deployments": {
|
|
21281
21425
|
"type": "string",
|
|
21282
21426
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -22082,6 +22226,14 @@
|
|
|
22082
22226
|
"write"
|
|
22083
22227
|
]
|
|
22084
22228
|
},
|
|
22229
|
+
"organization_custom_roles": {
|
|
22230
|
+
"type": "string",
|
|
22231
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
22232
|
+
"enum": [
|
|
22233
|
+
"read",
|
|
22234
|
+
"write"
|
|
22235
|
+
]
|
|
22236
|
+
},
|
|
22085
22237
|
"deployments": {
|
|
22086
22238
|
"type": "string",
|
|
22087
22239
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -80770,6 +80922,14 @@
|
|
|
80770
80922
|
"write"
|
|
80771
80923
|
]
|
|
80772
80924
|
},
|
|
80925
|
+
"organization_custom_roles": {
|
|
80926
|
+
"type": "string",
|
|
80927
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
80928
|
+
"enum": [
|
|
80929
|
+
"read",
|
|
80930
|
+
"write"
|
|
80931
|
+
]
|
|
80932
|
+
},
|
|
80773
80933
|
"deployments": {
|
|
80774
80934
|
"type": "string",
|
|
80775
80935
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -81573,6 +81733,14 @@
|
|
|
81573
81733
|
"write"
|
|
81574
81734
|
]
|
|
81575
81735
|
},
|
|
81736
|
+
"organization_custom_roles": {
|
|
81737
|
+
"type": "string",
|
|
81738
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
81739
|
+
"enum": [
|
|
81740
|
+
"read",
|
|
81741
|
+
"write"
|
|
81742
|
+
]
|
|
81743
|
+
},
|
|
81576
81744
|
"deployments": {
|
|
81577
81745
|
"type": "string",
|
|
81578
81746
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -110151,13 +110319,6 @@
|
|
|
110151
110319
|
"permission": {
|
|
110152
110320
|
"type": "string",
|
|
110153
110321
|
"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.",
|
|
110154
|
-
"enum": [
|
|
110155
|
-
"pull",
|
|
110156
|
-
"push",
|
|
110157
|
-
"admin",
|
|
110158
|
-
"maintain",
|
|
110159
|
-
"triage"
|
|
110160
|
-
],
|
|
110161
110322
|
"default": "push"
|
|
110162
110323
|
}
|
|
110163
110324
|
}
|
|
@@ -185617,13 +185778,6 @@
|
|
|
185617
185778
|
"permission": {
|
|
185618
185779
|
"type": "string",
|
|
185619
185780
|
"description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
|
|
185620
|
-
"enum": [
|
|
185621
|
-
"pull",
|
|
185622
|
-
"push",
|
|
185623
|
-
"admin",
|
|
185624
|
-
"maintain",
|
|
185625
|
-
"triage"
|
|
185626
|
-
],
|
|
185627
185781
|
"default": "push"
|
|
185628
185782
|
}
|
|
185629
185783
|
}
|
|
@@ -205650,7 +205804,13 @@
|
|
|
205650
205804
|
"type": "object",
|
|
205651
205805
|
"properties": {
|
|
205652
205806
|
"type": {
|
|
205653
|
-
"type": "string"
|
|
205807
|
+
"type": "string",
|
|
205808
|
+
"enum": [
|
|
205809
|
+
"dir",
|
|
205810
|
+
"file",
|
|
205811
|
+
"submodule",
|
|
205812
|
+
"symlink"
|
|
205813
|
+
]
|
|
205654
205814
|
},
|
|
205655
205815
|
"size": {
|
|
205656
205816
|
"type": "integer"
|
|
@@ -205731,7 +205891,10 @@
|
|
|
205731
205891
|
"type": "object",
|
|
205732
205892
|
"properties": {
|
|
205733
205893
|
"type": {
|
|
205734
|
-
"type": "string"
|
|
205894
|
+
"type": "string",
|
|
205895
|
+
"enum": [
|
|
205896
|
+
"file"
|
|
205897
|
+
]
|
|
205735
205898
|
},
|
|
205736
205899
|
"encoding": {
|
|
205737
205900
|
"type": "string"
|
|
@@ -205824,7 +205987,10 @@
|
|
|
205824
205987
|
"type": "object",
|
|
205825
205988
|
"properties": {
|
|
205826
205989
|
"type": {
|
|
205827
|
-
"type": "string"
|
|
205990
|
+
"type": "string",
|
|
205991
|
+
"enum": [
|
|
205992
|
+
"symlink"
|
|
205993
|
+
]
|
|
205828
205994
|
},
|
|
205829
205995
|
"target": {
|
|
205830
205996
|
"type": "string"
|
|
@@ -205900,12 +206066,15 @@
|
|
|
205900
206066
|
]
|
|
205901
206067
|
},
|
|
205902
206068
|
{
|
|
205903
|
-
"title": "
|
|
205904
|
-
"description": "An object describing a
|
|
206069
|
+
"title": "Submodule Content",
|
|
206070
|
+
"description": "An object describing a submodule",
|
|
205905
206071
|
"type": "object",
|
|
205906
206072
|
"properties": {
|
|
205907
206073
|
"type": {
|
|
205908
|
-
"type": "string"
|
|
206074
|
+
"type": "string",
|
|
206075
|
+
"enum": [
|
|
206076
|
+
"submodule"
|
|
206077
|
+
]
|
|
205909
206078
|
},
|
|
205910
206079
|
"submodule_git_url": {
|
|
205911
206080
|
"type": "string",
|
|
@@ -212212,15 +212381,15 @@
|
|
|
212212
212381
|
},
|
|
212213
212382
|
"/repos/{owner}/{repo}/environments": {
|
|
212214
212383
|
"get": {
|
|
212215
|
-
"summary": "
|
|
212216
|
-
"description": "
|
|
212384
|
+
"summary": "List environments",
|
|
212385
|
+
"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.",
|
|
212217
212386
|
"tags": [
|
|
212218
212387
|
"repos"
|
|
212219
212388
|
],
|
|
212220
212389
|
"operationId": "repos/get-all-environments",
|
|
212221
212390
|
"externalDocs": {
|
|
212222
212391
|
"description": "API method documentation",
|
|
212223
|
-
"url": "https://docs.github.com/enterprise-server@3.4/rest/
|
|
212392
|
+
"url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/environments#list-environments"
|
|
212224
212393
|
},
|
|
212225
212394
|
"parameters": [
|
|
212226
212395
|
{
|
|
@@ -212819,7 +212988,7 @@
|
|
|
212819
212988
|
"x-github": {
|
|
212820
212989
|
"githubCloudOnly": false,
|
|
212821
212990
|
"enabledForGitHubApps": true,
|
|
212822
|
-
"category": "
|
|
212991
|
+
"category": "deployments",
|
|
212823
212992
|
"subcategory": "environments"
|
|
212824
212993
|
},
|
|
212825
212994
|
"x-octokit": {}
|
|
@@ -212828,7 +212997,7 @@
|
|
|
212828
212997
|
"/repos/{owner}/{repo}/environments/{environment_name}": {
|
|
212829
212998
|
"get": {
|
|
212830
212999
|
"summary": "Get an environment",
|
|
212831
|
-
"description": "
|
|
213000
|
+
"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.",
|
|
212832
213001
|
"tags": [
|
|
212833
213002
|
"repos"
|
|
212834
213003
|
],
|
|
@@ -212860,7 +213029,7 @@
|
|
|
212860
213029
|
"name": "environment_name",
|
|
212861
213030
|
"in": "path",
|
|
212862
213031
|
"required": true,
|
|
212863
|
-
"description": "The name of the environment",
|
|
213032
|
+
"description": "The name of the environment.",
|
|
212864
213033
|
"schema": {
|
|
212865
213034
|
"type": "string"
|
|
212866
213035
|
}
|
|
@@ -213414,7 +213583,7 @@
|
|
|
213414
213583
|
},
|
|
213415
213584
|
"put": {
|
|
213416
213585
|
"summary": "Create or update an environment",
|
|
213417
|
-
"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:**
|
|
213586
|
+
"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.",
|
|
213418
213587
|
"tags": [
|
|
213419
213588
|
"repos"
|
|
213420
213589
|
],
|
|
@@ -213446,7 +213615,7 @@
|
|
|
213446
213615
|
"name": "environment_name",
|
|
213447
213616
|
"in": "path",
|
|
213448
213617
|
"required": true,
|
|
213449
|
-
"description": "The name of the environment",
|
|
213618
|
+
"description": "The name of the environment.",
|
|
213450
213619
|
"schema": {
|
|
213451
213620
|
"type": "string"
|
|
213452
213621
|
}
|
|
@@ -213510,6 +213679,27 @@
|
|
|
213510
213679
|
}
|
|
213511
213680
|
},
|
|
213512
213681
|
"additionalProperties": false
|
|
213682
|
+
},
|
|
213683
|
+
"examples": {
|
|
213684
|
+
"default": {
|
|
213685
|
+
"value": {
|
|
213686
|
+
"wait_timer": 30,
|
|
213687
|
+
"reviewers": [
|
|
213688
|
+
{
|
|
213689
|
+
"type": "User",
|
|
213690
|
+
"id": 1
|
|
213691
|
+
},
|
|
213692
|
+
{
|
|
213693
|
+
"type": "Team",
|
|
213694
|
+
"id": 1
|
|
213695
|
+
}
|
|
213696
|
+
],
|
|
213697
|
+
"deployment_branch_policy": {
|
|
213698
|
+
"protected_branches": false,
|
|
213699
|
+
"custom_branch_policies": true
|
|
213700
|
+
}
|
|
213701
|
+
}
|
|
213702
|
+
}
|
|
213513
213703
|
}
|
|
213514
213704
|
}
|
|
213515
213705
|
}
|
|
@@ -214120,7 +214310,7 @@
|
|
|
214120
214310
|
"name": "environment_name",
|
|
214121
214311
|
"in": "path",
|
|
214122
214312
|
"required": true,
|
|
214123
|
-
"description": "The name of the environment",
|
|
214313
|
+
"description": "The name of the environment.",
|
|
214124
214314
|
"schema": {
|
|
214125
214315
|
"type": "string"
|
|
214126
214316
|
}
|
|
@@ -214140,6 +214330,559 @@
|
|
|
214140
214330
|
"x-octokit": {}
|
|
214141
214331
|
}
|
|
214142
214332
|
},
|
|
214333
|
+
"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
|
|
214334
|
+
"get": {
|
|
214335
|
+
"summary": "List deployment branch policies",
|
|
214336
|
+
"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.",
|
|
214337
|
+
"tags": [
|
|
214338
|
+
"repos"
|
|
214339
|
+
],
|
|
214340
|
+
"operationId": "repos/list-deployment-branch-policies",
|
|
214341
|
+
"externalDocs": {
|
|
214342
|
+
"description": "API method documentation",
|
|
214343
|
+
"url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/branch-policies#list-deployment-branch-policies"
|
|
214344
|
+
},
|
|
214345
|
+
"parameters": [
|
|
214346
|
+
{
|
|
214347
|
+
"name": "owner",
|
|
214348
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
214349
|
+
"in": "path",
|
|
214350
|
+
"required": true,
|
|
214351
|
+
"schema": {
|
|
214352
|
+
"type": "string"
|
|
214353
|
+
}
|
|
214354
|
+
},
|
|
214355
|
+
{
|
|
214356
|
+
"name": "repo",
|
|
214357
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
214358
|
+
"in": "path",
|
|
214359
|
+
"required": true,
|
|
214360
|
+
"schema": {
|
|
214361
|
+
"type": "string"
|
|
214362
|
+
}
|
|
214363
|
+
},
|
|
214364
|
+
{
|
|
214365
|
+
"name": "environment_name",
|
|
214366
|
+
"in": "path",
|
|
214367
|
+
"required": true,
|
|
214368
|
+
"description": "The name of the environment.",
|
|
214369
|
+
"schema": {
|
|
214370
|
+
"type": "string"
|
|
214371
|
+
}
|
|
214372
|
+
},
|
|
214373
|
+
{
|
|
214374
|
+
"name": "per_page",
|
|
214375
|
+
"description": "The number of results per page (max 100).",
|
|
214376
|
+
"in": "query",
|
|
214377
|
+
"schema": {
|
|
214378
|
+
"type": "integer",
|
|
214379
|
+
"default": 30
|
|
214380
|
+
}
|
|
214381
|
+
},
|
|
214382
|
+
{
|
|
214383
|
+
"name": "page",
|
|
214384
|
+
"description": "Page number of the results to fetch.",
|
|
214385
|
+
"in": "query",
|
|
214386
|
+
"schema": {
|
|
214387
|
+
"type": "integer",
|
|
214388
|
+
"default": 1
|
|
214389
|
+
}
|
|
214390
|
+
}
|
|
214391
|
+
],
|
|
214392
|
+
"responses": {
|
|
214393
|
+
"200": {
|
|
214394
|
+
"description": "Response",
|
|
214395
|
+
"content": {
|
|
214396
|
+
"application/json": {
|
|
214397
|
+
"schema": {
|
|
214398
|
+
"type": "object",
|
|
214399
|
+
"properties": {
|
|
214400
|
+
"total_count": {
|
|
214401
|
+
"description": "The number of deployment branch policies for the environment.",
|
|
214402
|
+
"type": "integer",
|
|
214403
|
+
"example": 2
|
|
214404
|
+
},
|
|
214405
|
+
"branch_policies": {
|
|
214406
|
+
"type": "array",
|
|
214407
|
+
"items": {
|
|
214408
|
+
"title": "Deployment branch policy",
|
|
214409
|
+
"description": "Details of a deployment branch policy.",
|
|
214410
|
+
"type": "object",
|
|
214411
|
+
"properties": {
|
|
214412
|
+
"id": {
|
|
214413
|
+
"description": "The unique identifier of the branch policy.",
|
|
214414
|
+
"type": "integer",
|
|
214415
|
+
"example": 361471
|
|
214416
|
+
},
|
|
214417
|
+
"node_id": {
|
|
214418
|
+
"type": "string",
|
|
214419
|
+
"example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
|
|
214420
|
+
},
|
|
214421
|
+
"name": {
|
|
214422
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.",
|
|
214423
|
+
"type": "string",
|
|
214424
|
+
"example": "release/*"
|
|
214425
|
+
}
|
|
214426
|
+
}
|
|
214427
|
+
}
|
|
214428
|
+
}
|
|
214429
|
+
},
|
|
214430
|
+
"required": [
|
|
214431
|
+
"total_count",
|
|
214432
|
+
"branch_policies"
|
|
214433
|
+
]
|
|
214434
|
+
},
|
|
214435
|
+
"examples": {
|
|
214436
|
+
"default": {
|
|
214437
|
+
"value": {
|
|
214438
|
+
"total_count": 2,
|
|
214439
|
+
"branch_policies": [
|
|
214440
|
+
{
|
|
214441
|
+
"id": 361471,
|
|
214442
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
|
|
214443
|
+
"name": "release/*"
|
|
214444
|
+
},
|
|
214445
|
+
{
|
|
214446
|
+
"id": 361472,
|
|
214447
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
|
|
214448
|
+
"name": "main"
|
|
214449
|
+
}
|
|
214450
|
+
]
|
|
214451
|
+
}
|
|
214452
|
+
}
|
|
214453
|
+
}
|
|
214454
|
+
}
|
|
214455
|
+
}
|
|
214456
|
+
}
|
|
214457
|
+
},
|
|
214458
|
+
"x-github": {
|
|
214459
|
+
"githubCloudOnly": false,
|
|
214460
|
+
"enabledForGitHubApps": true,
|
|
214461
|
+
"category": "deployments",
|
|
214462
|
+
"subcategory": "branch-policies"
|
|
214463
|
+
},
|
|
214464
|
+
"x-octokit": {}
|
|
214465
|
+
},
|
|
214466
|
+
"post": {
|
|
214467
|
+
"summary": "Create a deployment branch policy",
|
|
214468
|
+
"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.",
|
|
214469
|
+
"tags": [
|
|
214470
|
+
"repos"
|
|
214471
|
+
],
|
|
214472
|
+
"operationId": "repos/create-deployment-branch-policy",
|
|
214473
|
+
"externalDocs": {
|
|
214474
|
+
"description": "API method documentation",
|
|
214475
|
+
"url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/branch-policies#create-deployment-branch-policy"
|
|
214476
|
+
},
|
|
214477
|
+
"parameters": [
|
|
214478
|
+
{
|
|
214479
|
+
"name": "owner",
|
|
214480
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
214481
|
+
"in": "path",
|
|
214482
|
+
"required": true,
|
|
214483
|
+
"schema": {
|
|
214484
|
+
"type": "string"
|
|
214485
|
+
}
|
|
214486
|
+
},
|
|
214487
|
+
{
|
|
214488
|
+
"name": "repo",
|
|
214489
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
214490
|
+
"in": "path",
|
|
214491
|
+
"required": true,
|
|
214492
|
+
"schema": {
|
|
214493
|
+
"type": "string"
|
|
214494
|
+
}
|
|
214495
|
+
},
|
|
214496
|
+
{
|
|
214497
|
+
"name": "environment_name",
|
|
214498
|
+
"in": "path",
|
|
214499
|
+
"required": true,
|
|
214500
|
+
"description": "The name of the environment.",
|
|
214501
|
+
"schema": {
|
|
214502
|
+
"type": "string"
|
|
214503
|
+
}
|
|
214504
|
+
}
|
|
214505
|
+
],
|
|
214506
|
+
"requestBody": {
|
|
214507
|
+
"required": true,
|
|
214508
|
+
"content": {
|
|
214509
|
+
"application/json": {
|
|
214510
|
+
"schema": {
|
|
214511
|
+
"title": "Deployment branch policy name pattern",
|
|
214512
|
+
"type": "object",
|
|
214513
|
+
"properties": {
|
|
214514
|
+
"name": {
|
|
214515
|
+
"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).",
|
|
214516
|
+
"type": "string",
|
|
214517
|
+
"example": "release/*"
|
|
214518
|
+
}
|
|
214519
|
+
},
|
|
214520
|
+
"required": [
|
|
214521
|
+
"name"
|
|
214522
|
+
]
|
|
214523
|
+
},
|
|
214524
|
+
"examples": {
|
|
214525
|
+
"example-wildcard": {
|
|
214526
|
+
"summary": "Example of a wildcard name pattern",
|
|
214527
|
+
"value": {
|
|
214528
|
+
"name": "release/*"
|
|
214529
|
+
}
|
|
214530
|
+
},
|
|
214531
|
+
"example-single-branch": {
|
|
214532
|
+
"summary": "Example of a single branch name pattern",
|
|
214533
|
+
"value": {
|
|
214534
|
+
"name": "main"
|
|
214535
|
+
}
|
|
214536
|
+
}
|
|
214537
|
+
}
|
|
214538
|
+
}
|
|
214539
|
+
}
|
|
214540
|
+
},
|
|
214541
|
+
"responses": {
|
|
214542
|
+
"200": {
|
|
214543
|
+
"description": "Response",
|
|
214544
|
+
"content": {
|
|
214545
|
+
"application/json": {
|
|
214546
|
+
"schema": {
|
|
214547
|
+
"title": "Deployment branch policy",
|
|
214548
|
+
"description": "Details of a deployment branch policy.",
|
|
214549
|
+
"type": "object",
|
|
214550
|
+
"properties": {
|
|
214551
|
+
"id": {
|
|
214552
|
+
"description": "The unique identifier of the branch policy.",
|
|
214553
|
+
"type": "integer",
|
|
214554
|
+
"example": 361471
|
|
214555
|
+
},
|
|
214556
|
+
"node_id": {
|
|
214557
|
+
"type": "string",
|
|
214558
|
+
"example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
|
|
214559
|
+
},
|
|
214560
|
+
"name": {
|
|
214561
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.",
|
|
214562
|
+
"type": "string",
|
|
214563
|
+
"example": "release/*"
|
|
214564
|
+
}
|
|
214565
|
+
}
|
|
214566
|
+
},
|
|
214567
|
+
"examples": {
|
|
214568
|
+
"example-wildcard": {
|
|
214569
|
+
"value": {
|
|
214570
|
+
"id": 364662,
|
|
214571
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
|
|
214572
|
+
"name": "release/*"
|
|
214573
|
+
}
|
|
214574
|
+
},
|
|
214575
|
+
"example-single-branch": {
|
|
214576
|
+
"value": {
|
|
214577
|
+
"id": 364663,
|
|
214578
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
|
|
214579
|
+
"name": "main"
|
|
214580
|
+
}
|
|
214581
|
+
}
|
|
214582
|
+
}
|
|
214583
|
+
}
|
|
214584
|
+
}
|
|
214585
|
+
},
|
|
214586
|
+
"303": {
|
|
214587
|
+
"description": "Response if the same branch name pattern already exists"
|
|
214588
|
+
},
|
|
214589
|
+
"404": {
|
|
214590
|
+
"description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
|
|
214591
|
+
}
|
|
214592
|
+
},
|
|
214593
|
+
"x-github": {
|
|
214594
|
+
"githubCloudOnly": false,
|
|
214595
|
+
"enabledForGitHubApps": true,
|
|
214596
|
+
"category": "deployments",
|
|
214597
|
+
"subcategory": "branch-policies"
|
|
214598
|
+
},
|
|
214599
|
+
"x-octokit": {}
|
|
214600
|
+
}
|
|
214601
|
+
},
|
|
214602
|
+
"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
|
|
214603
|
+
"get": {
|
|
214604
|
+
"summary": "Get a deployment branch policy",
|
|
214605
|
+
"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.",
|
|
214606
|
+
"tags": [
|
|
214607
|
+
"repos"
|
|
214608
|
+
],
|
|
214609
|
+
"operationId": "repos/get-deployment-branch-policy",
|
|
214610
|
+
"externalDocs": {
|
|
214611
|
+
"description": "API method documentation",
|
|
214612
|
+
"url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/branch-policies#get-deployment-branch-policy"
|
|
214613
|
+
},
|
|
214614
|
+
"parameters": [
|
|
214615
|
+
{
|
|
214616
|
+
"name": "owner",
|
|
214617
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
214618
|
+
"in": "path",
|
|
214619
|
+
"required": true,
|
|
214620
|
+
"schema": {
|
|
214621
|
+
"type": "string"
|
|
214622
|
+
}
|
|
214623
|
+
},
|
|
214624
|
+
{
|
|
214625
|
+
"name": "repo",
|
|
214626
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
214627
|
+
"in": "path",
|
|
214628
|
+
"required": true,
|
|
214629
|
+
"schema": {
|
|
214630
|
+
"type": "string"
|
|
214631
|
+
}
|
|
214632
|
+
},
|
|
214633
|
+
{
|
|
214634
|
+
"name": "environment_name",
|
|
214635
|
+
"in": "path",
|
|
214636
|
+
"required": true,
|
|
214637
|
+
"description": "The name of the environment.",
|
|
214638
|
+
"schema": {
|
|
214639
|
+
"type": "string"
|
|
214640
|
+
}
|
|
214641
|
+
},
|
|
214642
|
+
{
|
|
214643
|
+
"name": "branch_policy_id",
|
|
214644
|
+
"in": "path",
|
|
214645
|
+
"required": true,
|
|
214646
|
+
"description": "The unique identifier of the branch policy.",
|
|
214647
|
+
"schema": {
|
|
214648
|
+
"type": "integer"
|
|
214649
|
+
}
|
|
214650
|
+
}
|
|
214651
|
+
],
|
|
214652
|
+
"responses": {
|
|
214653
|
+
"200": {
|
|
214654
|
+
"description": "Response",
|
|
214655
|
+
"content": {
|
|
214656
|
+
"application/json": {
|
|
214657
|
+
"schema": {
|
|
214658
|
+
"title": "Deployment branch policy",
|
|
214659
|
+
"description": "Details of a deployment branch policy.",
|
|
214660
|
+
"type": "object",
|
|
214661
|
+
"properties": {
|
|
214662
|
+
"id": {
|
|
214663
|
+
"description": "The unique identifier of the branch policy.",
|
|
214664
|
+
"type": "integer",
|
|
214665
|
+
"example": 361471
|
|
214666
|
+
},
|
|
214667
|
+
"node_id": {
|
|
214668
|
+
"type": "string",
|
|
214669
|
+
"example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
|
|
214670
|
+
},
|
|
214671
|
+
"name": {
|
|
214672
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.",
|
|
214673
|
+
"type": "string",
|
|
214674
|
+
"example": "release/*"
|
|
214675
|
+
}
|
|
214676
|
+
}
|
|
214677
|
+
},
|
|
214678
|
+
"examples": {
|
|
214679
|
+
"default": {
|
|
214680
|
+
"value": {
|
|
214681
|
+
"id": 364662,
|
|
214682
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
|
|
214683
|
+
"name": "release/*"
|
|
214684
|
+
}
|
|
214685
|
+
}
|
|
214686
|
+
}
|
|
214687
|
+
}
|
|
214688
|
+
}
|
|
214689
|
+
}
|
|
214690
|
+
},
|
|
214691
|
+
"x-github": {
|
|
214692
|
+
"githubCloudOnly": false,
|
|
214693
|
+
"enabledForGitHubApps": true,
|
|
214694
|
+
"category": "deployments",
|
|
214695
|
+
"subcategory": "branch-policies"
|
|
214696
|
+
},
|
|
214697
|
+
"x-octokit": {}
|
|
214698
|
+
},
|
|
214699
|
+
"put": {
|
|
214700
|
+
"summary": "Update a deployment branch policy",
|
|
214701
|
+
"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.",
|
|
214702
|
+
"tags": [
|
|
214703
|
+
"repos"
|
|
214704
|
+
],
|
|
214705
|
+
"operationId": "repos/update-deployment-branch-policy",
|
|
214706
|
+
"externalDocs": {
|
|
214707
|
+
"description": "API method documentation",
|
|
214708
|
+
"url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/branch-policies#update-deployment-branch-policy"
|
|
214709
|
+
},
|
|
214710
|
+
"parameters": [
|
|
214711
|
+
{
|
|
214712
|
+
"name": "owner",
|
|
214713
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
214714
|
+
"in": "path",
|
|
214715
|
+
"required": true,
|
|
214716
|
+
"schema": {
|
|
214717
|
+
"type": "string"
|
|
214718
|
+
}
|
|
214719
|
+
},
|
|
214720
|
+
{
|
|
214721
|
+
"name": "repo",
|
|
214722
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
214723
|
+
"in": "path",
|
|
214724
|
+
"required": true,
|
|
214725
|
+
"schema": {
|
|
214726
|
+
"type": "string"
|
|
214727
|
+
}
|
|
214728
|
+
},
|
|
214729
|
+
{
|
|
214730
|
+
"name": "environment_name",
|
|
214731
|
+
"in": "path",
|
|
214732
|
+
"required": true,
|
|
214733
|
+
"description": "The name of the environment.",
|
|
214734
|
+
"schema": {
|
|
214735
|
+
"type": "string"
|
|
214736
|
+
}
|
|
214737
|
+
},
|
|
214738
|
+
{
|
|
214739
|
+
"name": "branch_policy_id",
|
|
214740
|
+
"in": "path",
|
|
214741
|
+
"required": true,
|
|
214742
|
+
"description": "The unique identifier of the branch policy.",
|
|
214743
|
+
"schema": {
|
|
214744
|
+
"type": "integer"
|
|
214745
|
+
}
|
|
214746
|
+
}
|
|
214747
|
+
],
|
|
214748
|
+
"requestBody": {
|
|
214749
|
+
"required": true,
|
|
214750
|
+
"content": {
|
|
214751
|
+
"application/json": {
|
|
214752
|
+
"schema": {
|
|
214753
|
+
"title": "Deployment branch policy name pattern",
|
|
214754
|
+
"type": "object",
|
|
214755
|
+
"properties": {
|
|
214756
|
+
"name": {
|
|
214757
|
+
"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).",
|
|
214758
|
+
"type": "string",
|
|
214759
|
+
"example": "release/*"
|
|
214760
|
+
}
|
|
214761
|
+
},
|
|
214762
|
+
"required": [
|
|
214763
|
+
"name"
|
|
214764
|
+
]
|
|
214765
|
+
},
|
|
214766
|
+
"examples": {
|
|
214767
|
+
"default": {
|
|
214768
|
+
"value": {
|
|
214769
|
+
"name": "release/*"
|
|
214770
|
+
}
|
|
214771
|
+
}
|
|
214772
|
+
}
|
|
214773
|
+
}
|
|
214774
|
+
}
|
|
214775
|
+
},
|
|
214776
|
+
"responses": {
|
|
214777
|
+
"200": {
|
|
214778
|
+
"description": "Response",
|
|
214779
|
+
"content": {
|
|
214780
|
+
"application/json": {
|
|
214781
|
+
"schema": {
|
|
214782
|
+
"title": "Deployment branch policy",
|
|
214783
|
+
"description": "Details of a deployment branch policy.",
|
|
214784
|
+
"type": "object",
|
|
214785
|
+
"properties": {
|
|
214786
|
+
"id": {
|
|
214787
|
+
"description": "The unique identifier of the branch policy.",
|
|
214788
|
+
"type": "integer",
|
|
214789
|
+
"example": 361471
|
|
214790
|
+
},
|
|
214791
|
+
"node_id": {
|
|
214792
|
+
"type": "string",
|
|
214793
|
+
"example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
|
|
214794
|
+
},
|
|
214795
|
+
"name": {
|
|
214796
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.",
|
|
214797
|
+
"type": "string",
|
|
214798
|
+
"example": "release/*"
|
|
214799
|
+
}
|
|
214800
|
+
}
|
|
214801
|
+
},
|
|
214802
|
+
"examples": {
|
|
214803
|
+
"default": {
|
|
214804
|
+
"value": {
|
|
214805
|
+
"id": 364662,
|
|
214806
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
|
|
214807
|
+
"name": "release/*"
|
|
214808
|
+
}
|
|
214809
|
+
}
|
|
214810
|
+
}
|
|
214811
|
+
}
|
|
214812
|
+
}
|
|
214813
|
+
}
|
|
214814
|
+
},
|
|
214815
|
+
"x-github": {
|
|
214816
|
+
"githubCloudOnly": false,
|
|
214817
|
+
"enabledForGitHubApps": true,
|
|
214818
|
+
"category": "deployments",
|
|
214819
|
+
"subcategory": "branch-policies"
|
|
214820
|
+
},
|
|
214821
|
+
"x-octokit": {}
|
|
214822
|
+
},
|
|
214823
|
+
"delete": {
|
|
214824
|
+
"summary": "Delete a deployment branch policy",
|
|
214825
|
+
"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.",
|
|
214826
|
+
"tags": [
|
|
214827
|
+
"repos"
|
|
214828
|
+
],
|
|
214829
|
+
"operationId": "repos/delete-deployment-branch-policy",
|
|
214830
|
+
"externalDocs": {
|
|
214831
|
+
"description": "API method documentation",
|
|
214832
|
+
"url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/branch-policies#delete-deployment-branch-policy"
|
|
214833
|
+
},
|
|
214834
|
+
"parameters": [
|
|
214835
|
+
{
|
|
214836
|
+
"name": "owner",
|
|
214837
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
214838
|
+
"in": "path",
|
|
214839
|
+
"required": true,
|
|
214840
|
+
"schema": {
|
|
214841
|
+
"type": "string"
|
|
214842
|
+
}
|
|
214843
|
+
},
|
|
214844
|
+
{
|
|
214845
|
+
"name": "repo",
|
|
214846
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
214847
|
+
"in": "path",
|
|
214848
|
+
"required": true,
|
|
214849
|
+
"schema": {
|
|
214850
|
+
"type": "string"
|
|
214851
|
+
}
|
|
214852
|
+
},
|
|
214853
|
+
{
|
|
214854
|
+
"name": "environment_name",
|
|
214855
|
+
"in": "path",
|
|
214856
|
+
"required": true,
|
|
214857
|
+
"description": "The name of the environment.",
|
|
214858
|
+
"schema": {
|
|
214859
|
+
"type": "string"
|
|
214860
|
+
}
|
|
214861
|
+
},
|
|
214862
|
+
{
|
|
214863
|
+
"name": "branch_policy_id",
|
|
214864
|
+
"in": "path",
|
|
214865
|
+
"required": true,
|
|
214866
|
+
"description": "The unique identifier of the branch policy.",
|
|
214867
|
+
"schema": {
|
|
214868
|
+
"type": "integer"
|
|
214869
|
+
}
|
|
214870
|
+
}
|
|
214871
|
+
],
|
|
214872
|
+
"responses": {
|
|
214873
|
+
"204": {
|
|
214874
|
+
"description": "Response"
|
|
214875
|
+
}
|
|
214876
|
+
},
|
|
214877
|
+
"x-github": {
|
|
214878
|
+
"githubCloudOnly": false,
|
|
214879
|
+
"enabledForGitHubApps": true,
|
|
214880
|
+
"category": "deployments",
|
|
214881
|
+
"subcategory": "branch-policies"
|
|
214882
|
+
},
|
|
214883
|
+
"x-octokit": {}
|
|
214884
|
+
}
|
|
214885
|
+
},
|
|
214143
214886
|
"/repos/{owner}/{repo}/events": {
|
|
214144
214887
|
"get": {
|
|
214145
214888
|
"summary": "List repository events",
|
|
@@ -230610,6 +231353,14 @@
|
|
|
230610
231353
|
"write"
|
|
230611
231354
|
]
|
|
230612
231355
|
},
|
|
231356
|
+
"organization_custom_roles": {
|
|
231357
|
+
"type": "string",
|
|
231358
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
231359
|
+
"enum": [
|
|
231360
|
+
"read",
|
|
231361
|
+
"write"
|
|
231362
|
+
]
|
|
231363
|
+
},
|
|
230613
231364
|
"deployments": {
|
|
230614
231365
|
"type": "string",
|
|
230615
231366
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -329818,287 +330569,293 @@
|
|
|
329818
330569
|
"type": "object",
|
|
329819
330570
|
"properties": {
|
|
329820
330571
|
"type": {
|
|
329821
|
-
"type": "string"
|
|
329822
|
-
},
|
|
329823
|
-
"encoding": {
|
|
329824
|
-
"type": "string"
|
|
329825
|
-
},
|
|
329826
|
-
"size": {
|
|
329827
|
-
"type": "integer"
|
|
329828
|
-
},
|
|
329829
|
-
"name": {
|
|
329830
|
-
"type": "string"
|
|
329831
|
-
},
|
|
329832
|
-
"path": {
|
|
329833
|
-
"type": "string"
|
|
329834
|
-
},
|
|
329835
|
-
"content": {
|
|
329836
|
-
"type": "string"
|
|
329837
|
-
},
|
|
329838
|
-
"sha": {
|
|
329839
|
-
"type": "string"
|
|
329840
|
-
},
|
|
329841
|
-
"url": {
|
|
329842
|
-
"type": "string",
|
|
329843
|
-
"format": "uri"
|
|
329844
|
-
},
|
|
329845
|
-
"git_url": {
|
|
329846
|
-
"type": "string",
|
|
329847
|
-
"format": "uri",
|
|
329848
|
-
"nullable": true
|
|
329849
|
-
},
|
|
329850
|
-
"html_url": {
|
|
329851
330572
|
"type": "string",
|
|
329852
|
-
"
|
|
329853
|
-
|
|
329854
|
-
|
|
329855
|
-
|
|
329856
|
-
|
|
329857
|
-
"
|
|
329858
|
-
|
|
329859
|
-
|
|
329860
|
-
|
|
329861
|
-
|
|
329862
|
-
|
|
329863
|
-
|
|
329864
|
-
|
|
329865
|
-
|
|
329866
|
-
|
|
329867
|
-
|
|
329868
|
-
|
|
329869
|
-
|
|
329870
|
-
|
|
329871
|
-
|
|
329872
|
-
|
|
329873
|
-
|
|
329874
|
-
|
|
329875
|
-
|
|
329876
|
-
|
|
329877
|
-
|
|
329878
|
-
|
|
329879
|
-
|
|
329880
|
-
|
|
329881
|
-
|
|
330573
|
+
"enum": [
|
|
330574
|
+
"file"
|
|
330575
|
+
]
|
|
330576
|
+
},
|
|
330577
|
+
"encoding": {
|
|
330578
|
+
"type": "string"
|
|
330579
|
+
},
|
|
330580
|
+
"size": {
|
|
330581
|
+
"type": "integer"
|
|
330582
|
+
},
|
|
330583
|
+
"name": {
|
|
330584
|
+
"type": "string"
|
|
330585
|
+
},
|
|
330586
|
+
"path": {
|
|
330587
|
+
"type": "string"
|
|
330588
|
+
},
|
|
330589
|
+
"content": {
|
|
330590
|
+
"type": "string"
|
|
330591
|
+
},
|
|
330592
|
+
"sha": {
|
|
330593
|
+
"type": "string"
|
|
330594
|
+
},
|
|
330595
|
+
"url": {
|
|
330596
|
+
"type": "string",
|
|
330597
|
+
"format": "uri"
|
|
330598
|
+
},
|
|
330599
|
+
"git_url": {
|
|
330600
|
+
"type": "string",
|
|
330601
|
+
"format": "uri",
|
|
330602
|
+
"nullable": true
|
|
330603
|
+
},
|
|
330604
|
+
"html_url": {
|
|
330605
|
+
"type": "string",
|
|
330606
|
+
"format": "uri",
|
|
330607
|
+
"nullable": true
|
|
330608
|
+
},
|
|
330609
|
+
"download_url": {
|
|
330610
|
+
"type": "string",
|
|
330611
|
+
"format": "uri",
|
|
330612
|
+
"nullable": true
|
|
330613
|
+
},
|
|
330614
|
+
"_links": {
|
|
330615
|
+
"type": "object",
|
|
330616
|
+
"properties": {
|
|
330617
|
+
"git": {
|
|
330618
|
+
"type": "string",
|
|
330619
|
+
"format": "uri",
|
|
330620
|
+
"nullable": true
|
|
330621
|
+
},
|
|
330622
|
+
"html": {
|
|
330623
|
+
"type": "string",
|
|
330624
|
+
"format": "uri",
|
|
330625
|
+
"nullable": true
|
|
330626
|
+
},
|
|
330627
|
+
"self": {
|
|
330628
|
+
"type": "string",
|
|
330629
|
+
"format": "uri"
|
|
330630
|
+
}
|
|
330631
|
+
},
|
|
330632
|
+
"required": [
|
|
330633
|
+
"git",
|
|
330634
|
+
"html",
|
|
330635
|
+
"self"
|
|
330636
|
+
]
|
|
330637
|
+
},
|
|
330638
|
+
"target": {
|
|
330639
|
+
"type": "string",
|
|
330640
|
+
"example": "\"actual/actual.md\""
|
|
330641
|
+
},
|
|
330642
|
+
"submodule_git_url": {
|
|
330643
|
+
"type": "string",
|
|
330644
|
+
"example": "\"git://example.com/defunkt/dotjs.git\""
|
|
330645
|
+
}
|
|
330646
|
+
},
|
|
330647
|
+
"required": [
|
|
330648
|
+
"_links",
|
|
330649
|
+
"git_url",
|
|
330650
|
+
"html_url",
|
|
330651
|
+
"download_url",
|
|
330652
|
+
"name",
|
|
330653
|
+
"path",
|
|
330654
|
+
"sha",
|
|
330655
|
+
"size",
|
|
330656
|
+
"type",
|
|
330657
|
+
"url",
|
|
330658
|
+
"content",
|
|
330659
|
+
"encoding"
|
|
330660
|
+
]
|
|
330661
|
+
},
|
|
330662
|
+
"examples": {
|
|
330663
|
+
"default": {
|
|
330664
|
+
"value": {
|
|
330665
|
+
"type": "file",
|
|
330666
|
+
"encoding": "base64",
|
|
330667
|
+
"size": 5362,
|
|
330668
|
+
"name": "README.md",
|
|
330669
|
+
"path": "README.md",
|
|
330670
|
+
"content": "encoded content ...",
|
|
330671
|
+
"sha": "3d21ec53a331a6f037a91c368710b99387d012c1",
|
|
330672
|
+
"url": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
|
|
330673
|
+
"git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
|
|
330674
|
+
"html_url": "https://github.com/octokit/octokit.rb/blob/master/README.md",
|
|
330675
|
+
"download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/README.md",
|
|
330676
|
+
"_links": {
|
|
330677
|
+
"git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
|
|
330678
|
+
"self": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
|
|
330679
|
+
"html": "https://github.com/octokit/octokit.rb/blob/master/README.md"
|
|
330680
|
+
}
|
|
330681
|
+
}
|
|
330682
|
+
}
|
|
330683
|
+
}
|
|
330684
|
+
}
|
|
330685
|
+
}
|
|
330686
|
+
},
|
|
330687
|
+
"404": {
|
|
330688
|
+
"description": "Resource not found",
|
|
330689
|
+
"content": {
|
|
330690
|
+
"application/json": {
|
|
330691
|
+
"schema": {
|
|
330692
|
+
"title": "Basic Error",
|
|
330693
|
+
"description": "Basic Error",
|
|
330694
|
+
"type": "object",
|
|
330695
|
+
"properties": {
|
|
330696
|
+
"message": {
|
|
330697
|
+
"type": "string"
|
|
330698
|
+
},
|
|
330699
|
+
"documentation_url": {
|
|
330700
|
+
"type": "string"
|
|
330701
|
+
},
|
|
330702
|
+
"url": {
|
|
330703
|
+
"type": "string"
|
|
330704
|
+
},
|
|
330705
|
+
"status": {
|
|
330706
|
+
"type": "string"
|
|
330707
|
+
}
|
|
330708
|
+
}
|
|
330709
|
+
}
|
|
330710
|
+
}
|
|
330711
|
+
}
|
|
330712
|
+
},
|
|
330713
|
+
"422": {
|
|
330714
|
+
"description": "Validation failed",
|
|
330715
|
+
"content": {
|
|
330716
|
+
"application/json": {
|
|
330717
|
+
"schema": {
|
|
330718
|
+
"title": "Validation Error",
|
|
330719
|
+
"description": "Validation Error",
|
|
330720
|
+
"type": "object",
|
|
330721
|
+
"required": [
|
|
330722
|
+
"message",
|
|
330723
|
+
"documentation_url"
|
|
330724
|
+
],
|
|
330725
|
+
"properties": {
|
|
330726
|
+
"message": {
|
|
330727
|
+
"type": "string"
|
|
330728
|
+
},
|
|
330729
|
+
"documentation_url": {
|
|
330730
|
+
"type": "string"
|
|
330731
|
+
},
|
|
330732
|
+
"errors": {
|
|
330733
|
+
"type": "array",
|
|
330734
|
+
"items": {
|
|
330735
|
+
"type": "object",
|
|
330736
|
+
"required": [
|
|
330737
|
+
"code"
|
|
330738
|
+
],
|
|
330739
|
+
"properties": {
|
|
330740
|
+
"resource": {
|
|
330741
|
+
"type": "string"
|
|
330742
|
+
},
|
|
330743
|
+
"field": {
|
|
330744
|
+
"type": "string"
|
|
330745
|
+
},
|
|
330746
|
+
"message": {
|
|
330747
|
+
"type": "string"
|
|
330748
|
+
},
|
|
330749
|
+
"code": {
|
|
330750
|
+
"type": "string"
|
|
330751
|
+
},
|
|
330752
|
+
"index": {
|
|
330753
|
+
"type": "integer"
|
|
330754
|
+
},
|
|
330755
|
+
"value": {
|
|
330756
|
+
"oneOf": [
|
|
330757
|
+
{
|
|
330758
|
+
"type": "string",
|
|
330759
|
+
"nullable": true
|
|
330760
|
+
},
|
|
330761
|
+
{
|
|
330762
|
+
"type": "integer",
|
|
330763
|
+
"nullable": true
|
|
330764
|
+
},
|
|
330765
|
+
{
|
|
330766
|
+
"type": "array",
|
|
330767
|
+
"nullable": true,
|
|
330768
|
+
"items": {
|
|
330769
|
+
"type": "string"
|
|
330770
|
+
}
|
|
330771
|
+
}
|
|
330772
|
+
]
|
|
330773
|
+
}
|
|
330774
|
+
}
|
|
330775
|
+
}
|
|
330776
|
+
}
|
|
330777
|
+
}
|
|
330778
|
+
}
|
|
330779
|
+
}
|
|
330780
|
+
}
|
|
330781
|
+
}
|
|
330782
|
+
},
|
|
330783
|
+
"x-github": {
|
|
330784
|
+
"githubCloudOnly": false,
|
|
330785
|
+
"enabledForGitHubApps": true,
|
|
330786
|
+
"category": "repos",
|
|
330787
|
+
"subcategory": "contents"
|
|
330788
|
+
},
|
|
330789
|
+
"x-octokit": {}
|
|
330790
|
+
}
|
|
330791
|
+
},
|
|
330792
|
+
"/repos/{owner}/{repo}/readme/{dir}": {
|
|
330793
|
+
"get": {
|
|
330794
|
+
"summary": "Get a repository README for a directory",
|
|
330795
|
+
"description": "Gets the README from a repository directory.\n\nREADMEs support [custom media types](https://docs.github.com/enterprise-server@3.4/rest/reference/repos#custom-media-types) for retrieving the raw content or rendered HTML.",
|
|
330796
|
+
"tags": [
|
|
330797
|
+
"repos"
|
|
330798
|
+
],
|
|
330799
|
+
"operationId": "repos/get-readme-in-directory",
|
|
330800
|
+
"externalDocs": {
|
|
330801
|
+
"description": "API method documentation",
|
|
330802
|
+
"url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#get-a-repository-directory-readme"
|
|
330803
|
+
},
|
|
330804
|
+
"parameters": [
|
|
330805
|
+
{
|
|
330806
|
+
"name": "owner",
|
|
330807
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
330808
|
+
"in": "path",
|
|
330809
|
+
"required": true,
|
|
330810
|
+
"schema": {
|
|
330811
|
+
"type": "string"
|
|
330812
|
+
}
|
|
330813
|
+
},
|
|
330814
|
+
{
|
|
330815
|
+
"name": "repo",
|
|
330816
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
330817
|
+
"in": "path",
|
|
330818
|
+
"required": true,
|
|
330819
|
+
"schema": {
|
|
330820
|
+
"type": "string"
|
|
330821
|
+
}
|
|
330822
|
+
},
|
|
330823
|
+
{
|
|
330824
|
+
"name": "dir",
|
|
330825
|
+
"description": "The alternate path to look for a README file",
|
|
330826
|
+
"in": "path",
|
|
330827
|
+
"required": true,
|
|
330828
|
+
"schema": {
|
|
330829
|
+
"type": "string"
|
|
330830
|
+
},
|
|
330831
|
+
"x-multi-segment": true
|
|
330832
|
+
},
|
|
330833
|
+
{
|
|
330834
|
+
"name": "ref",
|
|
330835
|
+
"description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
|
|
330836
|
+
"in": "query",
|
|
330837
|
+
"required": false,
|
|
330838
|
+
"schema": {
|
|
330839
|
+
"type": "string"
|
|
330840
|
+
}
|
|
330841
|
+
}
|
|
330842
|
+
],
|
|
330843
|
+
"responses": {
|
|
330844
|
+
"200": {
|
|
330845
|
+
"description": "Response",
|
|
330846
|
+
"content": {
|
|
330847
|
+
"application/json": {
|
|
330848
|
+
"schema": {
|
|
330849
|
+
"title": "Content File",
|
|
330850
|
+
"description": "Content File",
|
|
330851
|
+
"type": "object",
|
|
330852
|
+
"properties": {
|
|
330853
|
+
"type": {
|
|
330854
|
+
"type": "string",
|
|
330855
|
+
"enum": [
|
|
330856
|
+
"file"
|
|
329882
330857
|
]
|
|
329883
330858
|
},
|
|
329884
|
-
"target": {
|
|
329885
|
-
"type": "string",
|
|
329886
|
-
"example": "\"actual/actual.md\""
|
|
329887
|
-
},
|
|
329888
|
-
"submodule_git_url": {
|
|
329889
|
-
"type": "string",
|
|
329890
|
-
"example": "\"git://example.com/defunkt/dotjs.git\""
|
|
329891
|
-
}
|
|
329892
|
-
},
|
|
329893
|
-
"required": [
|
|
329894
|
-
"_links",
|
|
329895
|
-
"git_url",
|
|
329896
|
-
"html_url",
|
|
329897
|
-
"download_url",
|
|
329898
|
-
"name",
|
|
329899
|
-
"path",
|
|
329900
|
-
"sha",
|
|
329901
|
-
"size",
|
|
329902
|
-
"type",
|
|
329903
|
-
"url",
|
|
329904
|
-
"content",
|
|
329905
|
-
"encoding"
|
|
329906
|
-
]
|
|
329907
|
-
},
|
|
329908
|
-
"examples": {
|
|
329909
|
-
"default": {
|
|
329910
|
-
"value": {
|
|
329911
|
-
"type": "file",
|
|
329912
|
-
"encoding": "base64",
|
|
329913
|
-
"size": 5362,
|
|
329914
|
-
"name": "README.md",
|
|
329915
|
-
"path": "README.md",
|
|
329916
|
-
"content": "encoded content ...",
|
|
329917
|
-
"sha": "3d21ec53a331a6f037a91c368710b99387d012c1",
|
|
329918
|
-
"url": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
|
|
329919
|
-
"git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
|
|
329920
|
-
"html_url": "https://github.com/octokit/octokit.rb/blob/master/README.md",
|
|
329921
|
-
"download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/README.md",
|
|
329922
|
-
"_links": {
|
|
329923
|
-
"git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
|
|
329924
|
-
"self": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
|
|
329925
|
-
"html": "https://github.com/octokit/octokit.rb/blob/master/README.md"
|
|
329926
|
-
}
|
|
329927
|
-
}
|
|
329928
|
-
}
|
|
329929
|
-
}
|
|
329930
|
-
}
|
|
329931
|
-
}
|
|
329932
|
-
},
|
|
329933
|
-
"404": {
|
|
329934
|
-
"description": "Resource not found",
|
|
329935
|
-
"content": {
|
|
329936
|
-
"application/json": {
|
|
329937
|
-
"schema": {
|
|
329938
|
-
"title": "Basic Error",
|
|
329939
|
-
"description": "Basic Error",
|
|
329940
|
-
"type": "object",
|
|
329941
|
-
"properties": {
|
|
329942
|
-
"message": {
|
|
329943
|
-
"type": "string"
|
|
329944
|
-
},
|
|
329945
|
-
"documentation_url": {
|
|
329946
|
-
"type": "string"
|
|
329947
|
-
},
|
|
329948
|
-
"url": {
|
|
329949
|
-
"type": "string"
|
|
329950
|
-
},
|
|
329951
|
-
"status": {
|
|
329952
|
-
"type": "string"
|
|
329953
|
-
}
|
|
329954
|
-
}
|
|
329955
|
-
}
|
|
329956
|
-
}
|
|
329957
|
-
}
|
|
329958
|
-
},
|
|
329959
|
-
"422": {
|
|
329960
|
-
"description": "Validation failed",
|
|
329961
|
-
"content": {
|
|
329962
|
-
"application/json": {
|
|
329963
|
-
"schema": {
|
|
329964
|
-
"title": "Validation Error",
|
|
329965
|
-
"description": "Validation Error",
|
|
329966
|
-
"type": "object",
|
|
329967
|
-
"required": [
|
|
329968
|
-
"message",
|
|
329969
|
-
"documentation_url"
|
|
329970
|
-
],
|
|
329971
|
-
"properties": {
|
|
329972
|
-
"message": {
|
|
329973
|
-
"type": "string"
|
|
329974
|
-
},
|
|
329975
|
-
"documentation_url": {
|
|
329976
|
-
"type": "string"
|
|
329977
|
-
},
|
|
329978
|
-
"errors": {
|
|
329979
|
-
"type": "array",
|
|
329980
|
-
"items": {
|
|
329981
|
-
"type": "object",
|
|
329982
|
-
"required": [
|
|
329983
|
-
"code"
|
|
329984
|
-
],
|
|
329985
|
-
"properties": {
|
|
329986
|
-
"resource": {
|
|
329987
|
-
"type": "string"
|
|
329988
|
-
},
|
|
329989
|
-
"field": {
|
|
329990
|
-
"type": "string"
|
|
329991
|
-
},
|
|
329992
|
-
"message": {
|
|
329993
|
-
"type": "string"
|
|
329994
|
-
},
|
|
329995
|
-
"code": {
|
|
329996
|
-
"type": "string"
|
|
329997
|
-
},
|
|
329998
|
-
"index": {
|
|
329999
|
-
"type": "integer"
|
|
330000
|
-
},
|
|
330001
|
-
"value": {
|
|
330002
|
-
"oneOf": [
|
|
330003
|
-
{
|
|
330004
|
-
"type": "string",
|
|
330005
|
-
"nullable": true
|
|
330006
|
-
},
|
|
330007
|
-
{
|
|
330008
|
-
"type": "integer",
|
|
330009
|
-
"nullable": true
|
|
330010
|
-
},
|
|
330011
|
-
{
|
|
330012
|
-
"type": "array",
|
|
330013
|
-
"nullable": true,
|
|
330014
|
-
"items": {
|
|
330015
|
-
"type": "string"
|
|
330016
|
-
}
|
|
330017
|
-
}
|
|
330018
|
-
]
|
|
330019
|
-
}
|
|
330020
|
-
}
|
|
330021
|
-
}
|
|
330022
|
-
}
|
|
330023
|
-
}
|
|
330024
|
-
}
|
|
330025
|
-
}
|
|
330026
|
-
}
|
|
330027
|
-
}
|
|
330028
|
-
},
|
|
330029
|
-
"x-github": {
|
|
330030
|
-
"githubCloudOnly": false,
|
|
330031
|
-
"enabledForGitHubApps": true,
|
|
330032
|
-
"category": "repos",
|
|
330033
|
-
"subcategory": "contents"
|
|
330034
|
-
},
|
|
330035
|
-
"x-octokit": {}
|
|
330036
|
-
}
|
|
330037
|
-
},
|
|
330038
|
-
"/repos/{owner}/{repo}/readme/{dir}": {
|
|
330039
|
-
"get": {
|
|
330040
|
-
"summary": "Get a repository README for a directory",
|
|
330041
|
-
"description": "Gets the README from a repository directory.\n\nREADMEs support [custom media types](https://docs.github.com/enterprise-server@3.4/rest/reference/repos#custom-media-types) for retrieving the raw content or rendered HTML.",
|
|
330042
|
-
"tags": [
|
|
330043
|
-
"repos"
|
|
330044
|
-
],
|
|
330045
|
-
"operationId": "repos/get-readme-in-directory",
|
|
330046
|
-
"externalDocs": {
|
|
330047
|
-
"description": "API method documentation",
|
|
330048
|
-
"url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#get-a-repository-directory-readme"
|
|
330049
|
-
},
|
|
330050
|
-
"parameters": [
|
|
330051
|
-
{
|
|
330052
|
-
"name": "owner",
|
|
330053
|
-
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
330054
|
-
"in": "path",
|
|
330055
|
-
"required": true,
|
|
330056
|
-
"schema": {
|
|
330057
|
-
"type": "string"
|
|
330058
|
-
}
|
|
330059
|
-
},
|
|
330060
|
-
{
|
|
330061
|
-
"name": "repo",
|
|
330062
|
-
"description": "The name of the repository. The name is not case sensitive.",
|
|
330063
|
-
"in": "path",
|
|
330064
|
-
"required": true,
|
|
330065
|
-
"schema": {
|
|
330066
|
-
"type": "string"
|
|
330067
|
-
}
|
|
330068
|
-
},
|
|
330069
|
-
{
|
|
330070
|
-
"name": "dir",
|
|
330071
|
-
"description": "The alternate path to look for a README file",
|
|
330072
|
-
"in": "path",
|
|
330073
|
-
"required": true,
|
|
330074
|
-
"schema": {
|
|
330075
|
-
"type": "string"
|
|
330076
|
-
},
|
|
330077
|
-
"x-multi-segment": true
|
|
330078
|
-
},
|
|
330079
|
-
{
|
|
330080
|
-
"name": "ref",
|
|
330081
|
-
"description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
|
|
330082
|
-
"in": "query",
|
|
330083
|
-
"required": false,
|
|
330084
|
-
"schema": {
|
|
330085
|
-
"type": "string"
|
|
330086
|
-
}
|
|
330087
|
-
}
|
|
330088
|
-
],
|
|
330089
|
-
"responses": {
|
|
330090
|
-
"200": {
|
|
330091
|
-
"description": "Response",
|
|
330092
|
-
"content": {
|
|
330093
|
-
"application/json": {
|
|
330094
|
-
"schema": {
|
|
330095
|
-
"title": "Content File",
|
|
330096
|
-
"description": "Content File",
|
|
330097
|
-
"type": "object",
|
|
330098
|
-
"properties": {
|
|
330099
|
-
"type": {
|
|
330100
|
-
"type": "string"
|
|
330101
|
-
},
|
|
330102
330859
|
"encoding": {
|
|
330103
330860
|
"type": "string"
|
|
330104
330861
|
},
|
|
@@ -346306,7 +347063,7 @@
|
|
|
346306
347063
|
"name": "environment_name",
|
|
346307
347064
|
"in": "path",
|
|
346308
347065
|
"required": true,
|
|
346309
|
-
"description": "The name of the environment",
|
|
347066
|
+
"description": "The name of the environment.",
|
|
346310
347067
|
"schema": {
|
|
346311
347068
|
"type": "string"
|
|
346312
347069
|
}
|
|
@@ -346441,7 +347198,7 @@
|
|
|
346441
347198
|
"name": "environment_name",
|
|
346442
347199
|
"in": "path",
|
|
346443
347200
|
"required": true,
|
|
346444
|
-
"description": "The name of the environment",
|
|
347201
|
+
"description": "The name of the environment.",
|
|
346445
347202
|
"schema": {
|
|
346446
347203
|
"type": "string"
|
|
346447
347204
|
}
|
|
@@ -346536,7 +347293,7 @@
|
|
|
346536
347293
|
"name": "environment_name",
|
|
346537
347294
|
"in": "path",
|
|
346538
347295
|
"required": true,
|
|
346539
|
-
"description": "The name of the environment",
|
|
347296
|
+
"description": "The name of the environment.",
|
|
346540
347297
|
"schema": {
|
|
346541
347298
|
"type": "string"
|
|
346542
347299
|
}
|
|
@@ -346627,7 +347384,7 @@
|
|
|
346627
347384
|
"name": "environment_name",
|
|
346628
347385
|
"in": "path",
|
|
346629
347386
|
"required": true,
|
|
346630
|
-
"description": "The name of the environment",
|
|
347387
|
+
"description": "The name of the environment.",
|
|
346631
347388
|
"schema": {
|
|
346632
347389
|
"type": "string"
|
|
346633
347390
|
}
|
|
@@ -346732,7 +347489,7 @@
|
|
|
346732
347489
|
"name": "environment_name",
|
|
346733
347490
|
"in": "path",
|
|
346734
347491
|
"required": true,
|
|
346735
|
-
"description": "The name of the environment",
|
|
347492
|
+
"description": "The name of the environment.",
|
|
346736
347493
|
"schema": {
|
|
346737
347494
|
"type": "string"
|
|
346738
347495
|
}
|
|
@@ -374091,6 +374848,14 @@
|
|
|
374091
374848
|
"write"
|
|
374092
374849
|
]
|
|
374093
374850
|
},
|
|
374851
|
+
"organization_custom_roles": {
|
|
374852
|
+
"type": "string",
|
|
374853
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
374854
|
+
"enum": [
|
|
374855
|
+
"read",
|
|
374856
|
+
"write"
|
|
374857
|
+
]
|
|
374858
|
+
},
|
|
374094
374859
|
"deployments": {
|
|
374095
374860
|
"type": "string",
|
|
374096
374861
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -410449,6 +411214,14 @@
|
|
|
410449
411214
|
"write"
|
|
410450
411215
|
]
|
|
410451
411216
|
},
|
|
411217
|
+
"organization_custom_roles": {
|
|
411218
|
+
"type": "string",
|
|
411219
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
411220
|
+
"enum": [
|
|
411221
|
+
"read",
|
|
411222
|
+
"write"
|
|
411223
|
+
]
|
|
411224
|
+
},
|
|
410452
411225
|
"deployments": {
|
|
410453
411226
|
"type": "string",
|
|
410454
411227
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -424245,6 +425018,12 @@
|
|
|
424245
425018
|
"text/plain": {
|
|
424246
425019
|
"schema": {
|
|
424247
425020
|
"type": "string"
|
|
425021
|
+
},
|
|
425022
|
+
"examples": {
|
|
425023
|
+
"default": {
|
|
425024
|
+
"summary": "Example response",
|
|
425025
|
+
"value": "Responsive is better than fast"
|
|
425026
|
+
}
|
|
424248
425027
|
}
|
|
424249
425028
|
}
|
|
424250
425029
|
}
|