@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.
Files changed (35) hide show
  1. package/generated/api.github.com.deref.json +1523 -250
  2. package/generated/api.github.com.json +803 -61
  3. package/generated/ghes-3.2-diff-to-api.github.com.deref.json +1 -1
  4. package/generated/ghes-3.2-diff-to-api.github.com.json +1 -1
  5. package/generated/ghes-3.2-diff-to-ghes-3.3.deref.json +17 -8
  6. package/generated/ghes-3.2-diff-to-ghes-3.3.json +9 -8
  7. package/generated/ghes-3.2.deref.json +1108 -313
  8. package/generated/ghes-3.2.json +451 -31
  9. package/generated/ghes-3.3-anicca-diff-to-ghes-3.4.deref.json +16 -0
  10. package/generated/ghes-3.3-diff-to-ghes-3.4.deref.json +209 -1
  11. package/generated/ghes-3.3-diff-to-ghes-3.4.json +9 -1
  12. package/generated/ghes-3.3.deref.json +1108 -313
  13. package/generated/ghes-3.3.json +451 -31
  14. package/generated/ghes-3.4-diff-to-ghes-3.5.deref.json +1 -8
  15. package/generated/ghes-3.4-diff-to-ghes-3.5.json +1 -8
  16. package/generated/ghes-3.4.deref.json +1092 -313
  17. package/generated/ghes-3.4.json +451 -31
  18. package/generated/ghes-3.5-diff-to-api.github.com.deref.json +1 -1
  19. package/generated/ghes-3.5-diff-to-api.github.com.json +1 -1
  20. package/generated/ghes-3.5-diff-to-ghes-3.6.deref.json +17 -8
  21. package/generated/ghes-3.5-diff-to-ghes-3.6.json +9 -8
  22. package/generated/ghes-3.5.deref.json +1094 -315
  23. package/generated/ghes-3.5.json +453 -33
  24. package/generated/ghes-3.6-anicca-diff-to-api.github.com.deref.json +94 -56
  25. package/generated/ghes-3.6-diff-to-api.github.com.deref.json +89 -164
  26. package/generated/ghes-3.6-diff-to-api.github.com.json +9 -130
  27. package/generated/ghes-3.6.deref.json +1299 -488
  28. package/generated/ghes-3.6.json +499 -47
  29. package/generated/github.ae-anicca-diff-to-api.github.com.deref.json +38 -0
  30. package/generated/github.ae-diff-to-api.github.com.deref.json +49 -8
  31. package/generated/github.ae-diff-to-api.github.com.json +9 -8
  32. package/generated/github.ae.deref.json +783 -32
  33. package/generated/github.ae.json +495 -31
  34. package/index.js +2 -0
  35. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "openapi": "3.0.3",
3
3
  "info": {
4
- "version": "7.0.0",
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.",
@@ -5183,6 +5191,14 @@
5183
5191
  "write"
5184
5192
  ]
5185
5193
  },
5194
+ "organization_custom_roles": {
5195
+ "type": "string",
5196
+ "description": "The level of permission to grant the access token for custom roles management.",
5197
+ "enum": [
5198
+ "read",
5199
+ "write"
5200
+ ]
5201
+ },
5186
5202
  "deployments": {
5187
5203
  "type": "string",
5188
5204
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -5855,6 +5871,14 @@
5855
5871
  "write"
5856
5872
  ]
5857
5873
  },
5874
+ "organization_custom_roles": {
5875
+ "type": "string",
5876
+ "description": "The level of permission to grant the access token for custom roles management.",
5877
+ "enum": [
5878
+ "read",
5879
+ "write"
5880
+ ]
5881
+ },
5858
5882
  "deployments": {
5859
5883
  "type": "string",
5860
5884
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -8438,6 +8462,14 @@
8438
8462
  "write"
8439
8463
  ]
8440
8464
  },
8465
+ "organization_custom_roles": {
8466
+ "type": "string",
8467
+ "description": "The level of permission to grant the access token for custom roles management.",
8468
+ "enum": [
8469
+ "read",
8470
+ "write"
8471
+ ]
8472
+ },
8441
8473
  "deployments": {
8442
8474
  "type": "string",
8443
8475
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -9241,6 +9273,14 @@
9241
9273
  "write"
9242
9274
  ]
9243
9275
  },
9276
+ "organization_custom_roles": {
9277
+ "type": "string",
9278
+ "description": "The level of permission to grant the access token for custom roles management.",
9279
+ "enum": [
9280
+ "read",
9281
+ "write"
9282
+ ]
9283
+ },
9244
9284
  "deployments": {
9245
9285
  "type": "string",
9246
9286
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -9908,6 +9948,14 @@
9908
9948
  "write"
9909
9949
  ]
9910
9950
  },
9951
+ "organization_custom_roles": {
9952
+ "type": "string",
9953
+ "description": "The level of permission to grant the access token for custom roles management.",
9954
+ "enum": [
9955
+ "read",
9956
+ "write"
9957
+ ]
9958
+ },
9911
9959
  "deployments": {
9912
9960
  "type": "string",
9913
9961
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -10201,6 +10249,14 @@
10201
10249
  "write"
10202
10250
  ]
10203
10251
  },
10252
+ "organization_custom_roles": {
10253
+ "type": "string",
10254
+ "description": "The level of permission to grant the access token for custom roles management.",
10255
+ "enum": [
10256
+ "read",
10257
+ "write"
10258
+ ]
10259
+ },
10204
10260
  "deployments": {
10205
10261
  "type": "string",
10206
10262
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -13243,6 +13299,14 @@
13243
13299
  "write"
13244
13300
  ]
13245
13301
  },
13302
+ "organization_custom_roles": {
13303
+ "type": "string",
13304
+ "description": "The level of permission to grant the access token for custom roles management.",
13305
+ "enum": [
13306
+ "read",
13307
+ "write"
13308
+ ]
13309
+ },
13246
13310
  "deployments": {
13247
13311
  "type": "string",
13248
13312
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -14100,6 +14164,14 @@
14100
14164
  "write"
14101
14165
  ]
14102
14166
  },
14167
+ "organization_custom_roles": {
14168
+ "type": "string",
14169
+ "description": "The level of permission to grant the access token for custom roles management.",
14170
+ "enum": [
14171
+ "read",
14172
+ "write"
14173
+ ]
14174
+ },
14103
14175
  "deployments": {
14104
14176
  "type": "string",
14105
14177
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -14881,6 +14953,14 @@
14881
14953
  "write"
14882
14954
  ]
14883
14955
  },
14956
+ "organization_custom_roles": {
14957
+ "type": "string",
14958
+ "description": "The level of permission to grant the access token for custom roles management.",
14959
+ "enum": [
14960
+ "read",
14961
+ "write"
14962
+ ]
14963
+ },
14884
14964
  "deployments": {
14885
14965
  "type": "string",
14886
14966
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -15364,6 +15444,14 @@
15364
15444
  "write"
15365
15445
  ]
15366
15446
  },
15447
+ "organization_custom_roles": {
15448
+ "type": "string",
15449
+ "description": "The level of permission to grant the access token for custom roles management.",
15450
+ "enum": [
15451
+ "read",
15452
+ "write"
15453
+ ]
15454
+ },
15367
15455
  "deployments": {
15368
15456
  "type": "string",
15369
15457
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -16286,6 +16374,14 @@
16286
16374
  "write"
16287
16375
  ]
16288
16376
  },
16377
+ "organization_custom_roles": {
16378
+ "type": "string",
16379
+ "description": "The level of permission to grant the access token for custom roles management.",
16380
+ "enum": [
16381
+ "read",
16382
+ "write"
16383
+ ]
16384
+ },
16289
16385
  "deployments": {
16290
16386
  "type": "string",
16291
16387
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -17060,6 +17156,14 @@
17060
17156
  "write"
17061
17157
  ]
17062
17158
  },
17159
+ "organization_custom_roles": {
17160
+ "type": "string",
17161
+ "description": "The level of permission to grant the access token for custom roles management.",
17162
+ "enum": [
17163
+ "read",
17164
+ "write"
17165
+ ]
17166
+ },
17063
17167
  "deployments": {
17064
17168
  "type": "string",
17065
17169
  "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.",
@@ -19122,6 +19234,14 @@
19122
19234
  "write"
19123
19235
  ]
19124
19236
  },
19237
+ "organization_custom_roles": {
19238
+ "type": "string",
19239
+ "description": "The level of permission to grant the access token for custom roles management.",
19240
+ "enum": [
19241
+ "read",
19242
+ "write"
19243
+ ]
19244
+ },
19125
19245
  "deployments": {
19126
19246
  "type": "string",
19127
19247
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -20058,6 +20178,14 @@
20058
20178
  "write"
20059
20179
  ]
20060
20180
  },
20181
+ "organization_custom_roles": {
20182
+ "type": "string",
20183
+ "description": "The level of permission to grant the access token for custom roles management.",
20184
+ "enum": [
20185
+ "read",
20186
+ "write"
20187
+ ]
20188
+ },
20061
20189
  "deployments": {
20062
20190
  "type": "string",
20063
20191
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -20738,6 +20866,14 @@
20738
20866
  "write"
20739
20867
  ]
20740
20868
  },
20869
+ "organization_custom_roles": {
20870
+ "type": "string",
20871
+ "description": "The level of permission to grant the access token for custom roles management.",
20872
+ "enum": [
20873
+ "read",
20874
+ "write"
20875
+ ]
20876
+ },
20741
20877
  "deployments": {
20742
20878
  "type": "string",
20743
20879
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -21652,6 +21788,14 @@
21652
21788
  "write"
21653
21789
  ]
21654
21790
  },
21791
+ "organization_custom_roles": {
21792
+ "type": "string",
21793
+ "description": "The level of permission to grant the access token for custom roles management.",
21794
+ "enum": [
21795
+ "read",
21796
+ "write"
21797
+ ]
21798
+ },
21655
21799
  "deployments": {
21656
21800
  "type": "string",
21657
21801
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -22332,6 +22476,14 @@
22332
22476
  "write"
22333
22477
  ]
22334
22478
  },
22479
+ "organization_custom_roles": {
22480
+ "type": "string",
22481
+ "description": "The level of permission to grant the access token for custom roles management.",
22482
+ "enum": [
22483
+ "read",
22484
+ "write"
22485
+ ]
22486
+ },
22335
22487
  "deployments": {
22336
22488
  "type": "string",
22337
22489
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -23124,6 +23276,14 @@
23124
23276
  "write"
23125
23277
  ]
23126
23278
  },
23279
+ "organization_custom_roles": {
23280
+ "type": "string",
23281
+ "description": "The level of permission to grant the access token for custom roles management.",
23282
+ "enum": [
23283
+ "read",
23284
+ "write"
23285
+ ]
23286
+ },
23127
23287
  "deployments": {
23128
23288
  "type": "string",
23129
23289
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -23943,6 +24103,14 @@
23943
24103
  "write"
23944
24104
  ]
23945
24105
  },
24106
+ "organization_custom_roles": {
24107
+ "type": "string",
24108
+ "description": "The level of permission to grant the access token for custom roles management.",
24109
+ "enum": [
24110
+ "read",
24111
+ "write"
24112
+ ]
24113
+ },
23946
24114
  "deployments": {
23947
24115
  "type": "string",
23948
24116
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -77012,6 +77180,14 @@
77012
77180
  "write"
77013
77181
  ]
77014
77182
  },
77183
+ "organization_custom_roles": {
77184
+ "type": "string",
77185
+ "description": "The level of permission to grant the access token for custom roles management.",
77186
+ "enum": [
77187
+ "read",
77188
+ "write"
77189
+ ]
77190
+ },
77015
77191
  "deployments": {
77016
77192
  "type": "string",
77017
77193
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -77829,6 +78005,14 @@
77829
78005
  "write"
77830
78006
  ]
77831
78007
  },
78008
+ "organization_custom_roles": {
78009
+ "type": "string",
78010
+ "description": "The level of permission to grant the access token for custom roles management.",
78011
+ "enum": [
78012
+ "read",
78013
+ "write"
78014
+ ]
78015
+ },
77832
78016
  "deployments": {
77833
78017
  "type": "string",
77834
78018
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -101395,13 +101579,6 @@
101395
101579
  "permission": {
101396
101580
  "type": "string",
101397
101581
  "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.",
101398
- "enum": [
101399
- "pull",
101400
- "push",
101401
- "admin",
101402
- "maintain",
101403
- "triage"
101404
- ],
101405
101582
  "default": "push"
101406
101583
  }
101407
101584
  }
@@ -171820,13 +171997,6 @@
171820
171997
  "permission": {
171821
171998
  "type": "string",
171822
171999
  "description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
171823
- "enum": [
171824
- "pull",
171825
- "push",
171826
- "admin",
171827
- "maintain",
171828
- "triage"
171829
- ],
171830
172000
  "default": "push"
171831
172001
  }
171832
172002
  }
@@ -192143,7 +192313,13 @@
192143
192313
  "type": "object",
192144
192314
  "properties": {
192145
192315
  "type": {
192146
- "type": "string"
192316
+ "type": "string",
192317
+ "enum": [
192318
+ "dir",
192319
+ "file",
192320
+ "submodule",
192321
+ "symlink"
192322
+ ]
192147
192323
  },
192148
192324
  "size": {
192149
192325
  "type": "integer"
@@ -192224,7 +192400,10 @@
192224
192400
  "type": "object",
192225
192401
  "properties": {
192226
192402
  "type": {
192227
- "type": "string"
192403
+ "type": "string",
192404
+ "enum": [
192405
+ "file"
192406
+ ]
192228
192407
  },
192229
192408
  "encoding": {
192230
192409
  "type": "string"
@@ -192317,7 +192496,10 @@
192317
192496
  "type": "object",
192318
192497
  "properties": {
192319
192498
  "type": {
192320
- "type": "string"
192499
+ "type": "string",
192500
+ "enum": [
192501
+ "symlink"
192502
+ ]
192321
192503
  },
192322
192504
  "target": {
192323
192505
  "type": "string"
@@ -192393,12 +192575,15 @@
192393
192575
  ]
192394
192576
  },
192395
192577
  {
192396
- "title": "Symlink Content",
192397
- "description": "An object describing a symlink",
192578
+ "title": "Submodule Content",
192579
+ "description": "An object describing a submodule",
192398
192580
  "type": "object",
192399
192581
  "properties": {
192400
192582
  "type": {
192401
- "type": "string"
192583
+ "type": "string",
192584
+ "enum": [
192585
+ "submodule"
192586
+ ]
192402
192587
  },
192403
192588
  "submodule_git_url": {
192404
192589
  "type": "string",
@@ -198244,15 +198429,15 @@
198244
198429
  },
198245
198430
  "/repos/{owner}/{repo}/environments": {
198246
198431
  "get": {
198247
- "summary": "Get all environments",
198248
- "description": "Get all 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.",
198432
+ "summary": "List environments",
198433
+ "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.",
198249
198434
  "tags": [
198250
198435
  "repos"
198251
198436
  ],
198252
198437
  "operationId": "repos/get-all-environments",
198253
198438
  "externalDocs": {
198254
198439
  "description": "API method documentation",
198255
- "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#get-all-environments"
198440
+ "url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/environments#list-environments"
198256
198441
  },
198257
198442
  "parameters": [
198258
198443
  {
@@ -198851,7 +199036,7 @@
198851
199036
  "x-github": {
198852
199037
  "githubCloudOnly": false,
198853
199038
  "enabledForGitHubApps": true,
198854
- "category": "repos",
199039
+ "category": "deployments",
198855
199040
  "subcategory": "environments"
198856
199041
  },
198857
199042
  "x-octokit": {}
@@ -198860,7 +199045,7 @@
198860
199045
  "/repos/{owner}/{repo}/environments/{environment_name}": {
198861
199046
  "get": {
198862
199047
  "summary": "Get an environment",
198863
- "description": "Anyone 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.",
199048
+ "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.",
198864
199049
  "tags": [
198865
199050
  "repos"
198866
199051
  ],
@@ -198892,7 +199077,7 @@
198892
199077
  "name": "environment_name",
198893
199078
  "in": "path",
198894
199079
  "required": true,
198895
- "description": "The name of the environment",
199080
+ "description": "The name of the environment.",
198896
199081
  "schema": {
198897
199082
  "type": "string"
198898
199083
  }
@@ -199446,7 +199631,7 @@
199446
199631
  },
199447
199632
  "put": {
199448
199633
  "summary": "Create or update an environment",
199449
- "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:** Although you can use this operation to specify that only branches that match specified name patterns can deploy to this environment, you must use the UI to set the name patterns. For more information, see \"[Environments](/actions/reference/environments#deployment-branches).\"\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.",
199634
+ "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.",
199450
199635
  "tags": [
199451
199636
  "repos"
199452
199637
  ],
@@ -199478,7 +199663,7 @@
199478
199663
  "name": "environment_name",
199479
199664
  "in": "path",
199480
199665
  "required": true,
199481
- "description": "The name of the environment",
199666
+ "description": "The name of the environment.",
199482
199667
  "schema": {
199483
199668
  "type": "string"
199484
199669
  }
@@ -199542,6 +199727,27 @@
199542
199727
  }
199543
199728
  },
199544
199729
  "additionalProperties": false
199730
+ },
199731
+ "examples": {
199732
+ "default": {
199733
+ "value": {
199734
+ "wait_timer": 30,
199735
+ "reviewers": [
199736
+ {
199737
+ "type": "User",
199738
+ "id": 1
199739
+ },
199740
+ {
199741
+ "type": "Team",
199742
+ "id": 1
199743
+ }
199744
+ ],
199745
+ "deployment_branch_policy": {
199746
+ "protected_branches": false,
199747
+ "custom_branch_policies": true
199748
+ }
199749
+ }
199750
+ }
199545
199751
  }
199546
199752
  }
199547
199753
  }
@@ -200152,7 +200358,7 @@
200152
200358
  "name": "environment_name",
200153
200359
  "in": "path",
200154
200360
  "required": true,
200155
- "description": "The name of the environment",
200361
+ "description": "The name of the environment.",
200156
200362
  "schema": {
200157
200363
  "type": "string"
200158
200364
  }
@@ -200172,6 +200378,559 @@
200172
200378
  "x-octokit": {}
200173
200379
  }
200174
200380
  },
200381
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
200382
+ "get": {
200383
+ "summary": "List deployment branch policies",
200384
+ "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.",
200385
+ "tags": [
200386
+ "repos"
200387
+ ],
200388
+ "operationId": "repos/list-deployment-branch-policies",
200389
+ "externalDocs": {
200390
+ "description": "API method documentation",
200391
+ "url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/branch-policies#list-deployment-branch-policies"
200392
+ },
200393
+ "parameters": [
200394
+ {
200395
+ "name": "owner",
200396
+ "description": "The account owner of the repository. The name is not case sensitive.",
200397
+ "in": "path",
200398
+ "required": true,
200399
+ "schema": {
200400
+ "type": "string"
200401
+ }
200402
+ },
200403
+ {
200404
+ "name": "repo",
200405
+ "description": "The name of the repository. The name is not case sensitive.",
200406
+ "in": "path",
200407
+ "required": true,
200408
+ "schema": {
200409
+ "type": "string"
200410
+ }
200411
+ },
200412
+ {
200413
+ "name": "environment_name",
200414
+ "in": "path",
200415
+ "required": true,
200416
+ "description": "The name of the environment.",
200417
+ "schema": {
200418
+ "type": "string"
200419
+ }
200420
+ },
200421
+ {
200422
+ "name": "per_page",
200423
+ "description": "The number of results per page (max 100).",
200424
+ "in": "query",
200425
+ "schema": {
200426
+ "type": "integer",
200427
+ "default": 30
200428
+ }
200429
+ },
200430
+ {
200431
+ "name": "page",
200432
+ "description": "Page number of the results to fetch.",
200433
+ "in": "query",
200434
+ "schema": {
200435
+ "type": "integer",
200436
+ "default": 1
200437
+ }
200438
+ }
200439
+ ],
200440
+ "responses": {
200441
+ "200": {
200442
+ "description": "Response",
200443
+ "content": {
200444
+ "application/json": {
200445
+ "schema": {
200446
+ "type": "object",
200447
+ "properties": {
200448
+ "total_count": {
200449
+ "description": "The number of deployment branch policies for the environment.",
200450
+ "type": "integer",
200451
+ "example": 2
200452
+ },
200453
+ "branch_policies": {
200454
+ "type": "array",
200455
+ "items": {
200456
+ "title": "Deployment branch policy",
200457
+ "description": "Details of a deployment branch policy.",
200458
+ "type": "object",
200459
+ "properties": {
200460
+ "id": {
200461
+ "description": "The unique identifier of the branch policy.",
200462
+ "type": "integer",
200463
+ "example": 361471
200464
+ },
200465
+ "node_id": {
200466
+ "type": "string",
200467
+ "example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
200468
+ },
200469
+ "name": {
200470
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
200471
+ "type": "string",
200472
+ "example": "release/*"
200473
+ }
200474
+ }
200475
+ }
200476
+ }
200477
+ },
200478
+ "required": [
200479
+ "total_count",
200480
+ "branch_policies"
200481
+ ]
200482
+ },
200483
+ "examples": {
200484
+ "default": {
200485
+ "value": {
200486
+ "total_count": 2,
200487
+ "branch_policies": [
200488
+ {
200489
+ "id": 361471,
200490
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
200491
+ "name": "release/*"
200492
+ },
200493
+ {
200494
+ "id": 361472,
200495
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
200496
+ "name": "main"
200497
+ }
200498
+ ]
200499
+ }
200500
+ }
200501
+ }
200502
+ }
200503
+ }
200504
+ }
200505
+ },
200506
+ "x-github": {
200507
+ "githubCloudOnly": false,
200508
+ "enabledForGitHubApps": true,
200509
+ "category": "deployments",
200510
+ "subcategory": "branch-policies"
200511
+ },
200512
+ "x-octokit": {}
200513
+ },
200514
+ "post": {
200515
+ "summary": "Create a deployment branch policy",
200516
+ "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.",
200517
+ "tags": [
200518
+ "repos"
200519
+ ],
200520
+ "operationId": "repos/create-deployment-branch-policy",
200521
+ "externalDocs": {
200522
+ "description": "API method documentation",
200523
+ "url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/branch-policies#create-deployment-branch-policy"
200524
+ },
200525
+ "parameters": [
200526
+ {
200527
+ "name": "owner",
200528
+ "description": "The account owner of the repository. The name is not case sensitive.",
200529
+ "in": "path",
200530
+ "required": true,
200531
+ "schema": {
200532
+ "type": "string"
200533
+ }
200534
+ },
200535
+ {
200536
+ "name": "repo",
200537
+ "description": "The name of the repository. The name is not case sensitive.",
200538
+ "in": "path",
200539
+ "required": true,
200540
+ "schema": {
200541
+ "type": "string"
200542
+ }
200543
+ },
200544
+ {
200545
+ "name": "environment_name",
200546
+ "in": "path",
200547
+ "required": true,
200548
+ "description": "The name of the environment.",
200549
+ "schema": {
200550
+ "type": "string"
200551
+ }
200552
+ }
200553
+ ],
200554
+ "requestBody": {
200555
+ "required": true,
200556
+ "content": {
200557
+ "application/json": {
200558
+ "schema": {
200559
+ "title": "Deployment branch policy name pattern",
200560
+ "type": "object",
200561
+ "properties": {
200562
+ "name": {
200563
+ "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).",
200564
+ "type": "string",
200565
+ "example": "release/*"
200566
+ }
200567
+ },
200568
+ "required": [
200569
+ "name"
200570
+ ]
200571
+ },
200572
+ "examples": {
200573
+ "example-wildcard": {
200574
+ "summary": "Example of a wildcard name pattern",
200575
+ "value": {
200576
+ "name": "release/*"
200577
+ }
200578
+ },
200579
+ "example-single-branch": {
200580
+ "summary": "Example of a single branch name pattern",
200581
+ "value": {
200582
+ "name": "main"
200583
+ }
200584
+ }
200585
+ }
200586
+ }
200587
+ }
200588
+ },
200589
+ "responses": {
200590
+ "200": {
200591
+ "description": "Response",
200592
+ "content": {
200593
+ "application/json": {
200594
+ "schema": {
200595
+ "title": "Deployment branch policy",
200596
+ "description": "Details of a deployment branch policy.",
200597
+ "type": "object",
200598
+ "properties": {
200599
+ "id": {
200600
+ "description": "The unique identifier of the branch policy.",
200601
+ "type": "integer",
200602
+ "example": 361471
200603
+ },
200604
+ "node_id": {
200605
+ "type": "string",
200606
+ "example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
200607
+ },
200608
+ "name": {
200609
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
200610
+ "type": "string",
200611
+ "example": "release/*"
200612
+ }
200613
+ }
200614
+ },
200615
+ "examples": {
200616
+ "example-wildcard": {
200617
+ "value": {
200618
+ "id": 364662,
200619
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
200620
+ "name": "release/*"
200621
+ }
200622
+ },
200623
+ "example-single-branch": {
200624
+ "value": {
200625
+ "id": 364663,
200626
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
200627
+ "name": "main"
200628
+ }
200629
+ }
200630
+ }
200631
+ }
200632
+ }
200633
+ },
200634
+ "303": {
200635
+ "description": "Response if the same branch name pattern already exists"
200636
+ },
200637
+ "404": {
200638
+ "description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
200639
+ }
200640
+ },
200641
+ "x-github": {
200642
+ "githubCloudOnly": false,
200643
+ "enabledForGitHubApps": true,
200644
+ "category": "deployments",
200645
+ "subcategory": "branch-policies"
200646
+ },
200647
+ "x-octokit": {}
200648
+ }
200649
+ },
200650
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
200651
+ "get": {
200652
+ "summary": "Get a deployment branch policy",
200653
+ "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.",
200654
+ "tags": [
200655
+ "repos"
200656
+ ],
200657
+ "operationId": "repos/get-deployment-branch-policy",
200658
+ "externalDocs": {
200659
+ "description": "API method documentation",
200660
+ "url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/branch-policies#get-deployment-branch-policy"
200661
+ },
200662
+ "parameters": [
200663
+ {
200664
+ "name": "owner",
200665
+ "description": "The account owner of the repository. The name is not case sensitive.",
200666
+ "in": "path",
200667
+ "required": true,
200668
+ "schema": {
200669
+ "type": "string"
200670
+ }
200671
+ },
200672
+ {
200673
+ "name": "repo",
200674
+ "description": "The name of the repository. The name is not case sensitive.",
200675
+ "in": "path",
200676
+ "required": true,
200677
+ "schema": {
200678
+ "type": "string"
200679
+ }
200680
+ },
200681
+ {
200682
+ "name": "environment_name",
200683
+ "in": "path",
200684
+ "required": true,
200685
+ "description": "The name of the environment.",
200686
+ "schema": {
200687
+ "type": "string"
200688
+ }
200689
+ },
200690
+ {
200691
+ "name": "branch_policy_id",
200692
+ "in": "path",
200693
+ "required": true,
200694
+ "description": "The unique identifier of the branch policy.",
200695
+ "schema": {
200696
+ "type": "integer"
200697
+ }
200698
+ }
200699
+ ],
200700
+ "responses": {
200701
+ "200": {
200702
+ "description": "Response",
200703
+ "content": {
200704
+ "application/json": {
200705
+ "schema": {
200706
+ "title": "Deployment branch policy",
200707
+ "description": "Details of a deployment branch policy.",
200708
+ "type": "object",
200709
+ "properties": {
200710
+ "id": {
200711
+ "description": "The unique identifier of the branch policy.",
200712
+ "type": "integer",
200713
+ "example": 361471
200714
+ },
200715
+ "node_id": {
200716
+ "type": "string",
200717
+ "example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
200718
+ },
200719
+ "name": {
200720
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
200721
+ "type": "string",
200722
+ "example": "release/*"
200723
+ }
200724
+ }
200725
+ },
200726
+ "examples": {
200727
+ "default": {
200728
+ "value": {
200729
+ "id": 364662,
200730
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
200731
+ "name": "release/*"
200732
+ }
200733
+ }
200734
+ }
200735
+ }
200736
+ }
200737
+ }
200738
+ },
200739
+ "x-github": {
200740
+ "githubCloudOnly": false,
200741
+ "enabledForGitHubApps": true,
200742
+ "category": "deployments",
200743
+ "subcategory": "branch-policies"
200744
+ },
200745
+ "x-octokit": {}
200746
+ },
200747
+ "put": {
200748
+ "summary": "Update a deployment branch policy",
200749
+ "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.",
200750
+ "tags": [
200751
+ "repos"
200752
+ ],
200753
+ "operationId": "repos/update-deployment-branch-policy",
200754
+ "externalDocs": {
200755
+ "description": "API method documentation",
200756
+ "url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/branch-policies#update-deployment-branch-policy"
200757
+ },
200758
+ "parameters": [
200759
+ {
200760
+ "name": "owner",
200761
+ "description": "The account owner of the repository. The name is not case sensitive.",
200762
+ "in": "path",
200763
+ "required": true,
200764
+ "schema": {
200765
+ "type": "string"
200766
+ }
200767
+ },
200768
+ {
200769
+ "name": "repo",
200770
+ "description": "The name of the repository. The name is not case sensitive.",
200771
+ "in": "path",
200772
+ "required": true,
200773
+ "schema": {
200774
+ "type": "string"
200775
+ }
200776
+ },
200777
+ {
200778
+ "name": "environment_name",
200779
+ "in": "path",
200780
+ "required": true,
200781
+ "description": "The name of the environment.",
200782
+ "schema": {
200783
+ "type": "string"
200784
+ }
200785
+ },
200786
+ {
200787
+ "name": "branch_policy_id",
200788
+ "in": "path",
200789
+ "required": true,
200790
+ "description": "The unique identifier of the branch policy.",
200791
+ "schema": {
200792
+ "type": "integer"
200793
+ }
200794
+ }
200795
+ ],
200796
+ "requestBody": {
200797
+ "required": true,
200798
+ "content": {
200799
+ "application/json": {
200800
+ "schema": {
200801
+ "title": "Deployment branch policy name pattern",
200802
+ "type": "object",
200803
+ "properties": {
200804
+ "name": {
200805
+ "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).",
200806
+ "type": "string",
200807
+ "example": "release/*"
200808
+ }
200809
+ },
200810
+ "required": [
200811
+ "name"
200812
+ ]
200813
+ },
200814
+ "examples": {
200815
+ "default": {
200816
+ "value": {
200817
+ "name": "release/*"
200818
+ }
200819
+ }
200820
+ }
200821
+ }
200822
+ }
200823
+ },
200824
+ "responses": {
200825
+ "200": {
200826
+ "description": "Response",
200827
+ "content": {
200828
+ "application/json": {
200829
+ "schema": {
200830
+ "title": "Deployment branch policy",
200831
+ "description": "Details of a deployment branch policy.",
200832
+ "type": "object",
200833
+ "properties": {
200834
+ "id": {
200835
+ "description": "The unique identifier of the branch policy.",
200836
+ "type": "integer",
200837
+ "example": 361471
200838
+ },
200839
+ "node_id": {
200840
+ "type": "string",
200841
+ "example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
200842
+ },
200843
+ "name": {
200844
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
200845
+ "type": "string",
200846
+ "example": "release/*"
200847
+ }
200848
+ }
200849
+ },
200850
+ "examples": {
200851
+ "default": {
200852
+ "value": {
200853
+ "id": 364662,
200854
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
200855
+ "name": "release/*"
200856
+ }
200857
+ }
200858
+ }
200859
+ }
200860
+ }
200861
+ }
200862
+ },
200863
+ "x-github": {
200864
+ "githubCloudOnly": false,
200865
+ "enabledForGitHubApps": true,
200866
+ "category": "deployments",
200867
+ "subcategory": "branch-policies"
200868
+ },
200869
+ "x-octokit": {}
200870
+ },
200871
+ "delete": {
200872
+ "summary": "Delete a deployment branch policy",
200873
+ "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.",
200874
+ "tags": [
200875
+ "repos"
200876
+ ],
200877
+ "operationId": "repos/delete-deployment-branch-policy",
200878
+ "externalDocs": {
200879
+ "description": "API method documentation",
200880
+ "url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/branch-policies#delete-deployment-branch-policy"
200881
+ },
200882
+ "parameters": [
200883
+ {
200884
+ "name": "owner",
200885
+ "description": "The account owner of the repository. The name is not case sensitive.",
200886
+ "in": "path",
200887
+ "required": true,
200888
+ "schema": {
200889
+ "type": "string"
200890
+ }
200891
+ },
200892
+ {
200893
+ "name": "repo",
200894
+ "description": "The name of the repository. The name is not case sensitive.",
200895
+ "in": "path",
200896
+ "required": true,
200897
+ "schema": {
200898
+ "type": "string"
200899
+ }
200900
+ },
200901
+ {
200902
+ "name": "environment_name",
200903
+ "in": "path",
200904
+ "required": true,
200905
+ "description": "The name of the environment.",
200906
+ "schema": {
200907
+ "type": "string"
200908
+ }
200909
+ },
200910
+ {
200911
+ "name": "branch_policy_id",
200912
+ "in": "path",
200913
+ "required": true,
200914
+ "description": "The unique identifier of the branch policy.",
200915
+ "schema": {
200916
+ "type": "integer"
200917
+ }
200918
+ }
200919
+ ],
200920
+ "responses": {
200921
+ "204": {
200922
+ "description": "Response"
200923
+ }
200924
+ },
200925
+ "x-github": {
200926
+ "githubCloudOnly": false,
200927
+ "enabledForGitHubApps": true,
200928
+ "category": "deployments",
200929
+ "subcategory": "branch-policies"
200930
+ },
200931
+ "x-octokit": {}
200932
+ }
200933
+ },
200175
200934
  "/repos/{owner}/{repo}/events": {
200176
200935
  "get": {
200177
200936
  "summary": "List repository events",
@@ -216636,6 +217395,14 @@
216636
217395
  "write"
216637
217396
  ]
216638
217397
  },
217398
+ "organization_custom_roles": {
217399
+ "type": "string",
217400
+ "description": "The level of permission to grant the access token for custom roles management.",
217401
+ "enum": [
217402
+ "read",
217403
+ "write"
217404
+ ]
217405
+ },
216639
217406
  "deployments": {
216640
217407
  "type": "string",
216641
217408
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -315840,287 +316607,293 @@
315840
316607
  "type": "object",
315841
316608
  "properties": {
315842
316609
  "type": {
315843
- "type": "string"
315844
- },
315845
- "encoding": {
315846
- "type": "string"
315847
- },
315848
- "size": {
315849
- "type": "integer"
315850
- },
315851
- "name": {
315852
- "type": "string"
315853
- },
315854
- "path": {
315855
- "type": "string"
315856
- },
315857
- "content": {
315858
- "type": "string"
315859
- },
315860
- "sha": {
315861
- "type": "string"
315862
- },
315863
- "url": {
315864
- "type": "string",
315865
- "format": "uri"
315866
- },
315867
- "git_url": {
315868
- "type": "string",
315869
- "format": "uri",
315870
- "nullable": true
315871
- },
315872
- "html_url": {
315873
316610
  "type": "string",
315874
- "format": "uri",
315875
- "nullable": true
315876
- },
315877
- "download_url": {
315878
- "type": "string",
315879
- "format": "uri",
315880
- "nullable": true
315881
- },
315882
- "_links": {
315883
- "type": "object",
315884
- "properties": {
315885
- "git": {
315886
- "type": "string",
315887
- "format": "uri",
315888
- "nullable": true
315889
- },
315890
- "html": {
315891
- "type": "string",
315892
- "format": "uri",
315893
- "nullable": true
315894
- },
315895
- "self": {
315896
- "type": "string",
315897
- "format": "uri"
315898
- }
315899
- },
315900
- "required": [
315901
- "git",
315902
- "html",
315903
- "self"
316611
+ "enum": [
316612
+ "file"
316613
+ ]
316614
+ },
316615
+ "encoding": {
316616
+ "type": "string"
316617
+ },
316618
+ "size": {
316619
+ "type": "integer"
316620
+ },
316621
+ "name": {
316622
+ "type": "string"
316623
+ },
316624
+ "path": {
316625
+ "type": "string"
316626
+ },
316627
+ "content": {
316628
+ "type": "string"
316629
+ },
316630
+ "sha": {
316631
+ "type": "string"
316632
+ },
316633
+ "url": {
316634
+ "type": "string",
316635
+ "format": "uri"
316636
+ },
316637
+ "git_url": {
316638
+ "type": "string",
316639
+ "format": "uri",
316640
+ "nullable": true
316641
+ },
316642
+ "html_url": {
316643
+ "type": "string",
316644
+ "format": "uri",
316645
+ "nullable": true
316646
+ },
316647
+ "download_url": {
316648
+ "type": "string",
316649
+ "format": "uri",
316650
+ "nullable": true
316651
+ },
316652
+ "_links": {
316653
+ "type": "object",
316654
+ "properties": {
316655
+ "git": {
316656
+ "type": "string",
316657
+ "format": "uri",
316658
+ "nullable": true
316659
+ },
316660
+ "html": {
316661
+ "type": "string",
316662
+ "format": "uri",
316663
+ "nullable": true
316664
+ },
316665
+ "self": {
316666
+ "type": "string",
316667
+ "format": "uri"
316668
+ }
316669
+ },
316670
+ "required": [
316671
+ "git",
316672
+ "html",
316673
+ "self"
316674
+ ]
316675
+ },
316676
+ "target": {
316677
+ "type": "string",
316678
+ "example": "\"actual/actual.md\""
316679
+ },
316680
+ "submodule_git_url": {
316681
+ "type": "string",
316682
+ "example": "\"git://example.com/defunkt/dotjs.git\""
316683
+ }
316684
+ },
316685
+ "required": [
316686
+ "_links",
316687
+ "git_url",
316688
+ "html_url",
316689
+ "download_url",
316690
+ "name",
316691
+ "path",
316692
+ "sha",
316693
+ "size",
316694
+ "type",
316695
+ "url",
316696
+ "content",
316697
+ "encoding"
316698
+ ]
316699
+ },
316700
+ "examples": {
316701
+ "default": {
316702
+ "value": {
316703
+ "type": "file",
316704
+ "encoding": "base64",
316705
+ "size": 5362,
316706
+ "name": "README.md",
316707
+ "path": "README.md",
316708
+ "content": "encoded content ...",
316709
+ "sha": "3d21ec53a331a6f037a91c368710b99387d012c1",
316710
+ "url": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
316711
+ "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
316712
+ "html_url": "https://github.com/octokit/octokit.rb/blob/master/README.md",
316713
+ "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/README.md",
316714
+ "_links": {
316715
+ "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
316716
+ "self": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
316717
+ "html": "https://github.com/octokit/octokit.rb/blob/master/README.md"
316718
+ }
316719
+ }
316720
+ }
316721
+ }
316722
+ }
316723
+ }
316724
+ },
316725
+ "404": {
316726
+ "description": "Resource not found",
316727
+ "content": {
316728
+ "application/json": {
316729
+ "schema": {
316730
+ "title": "Basic Error",
316731
+ "description": "Basic Error",
316732
+ "type": "object",
316733
+ "properties": {
316734
+ "message": {
316735
+ "type": "string"
316736
+ },
316737
+ "documentation_url": {
316738
+ "type": "string"
316739
+ },
316740
+ "url": {
316741
+ "type": "string"
316742
+ },
316743
+ "status": {
316744
+ "type": "string"
316745
+ }
316746
+ }
316747
+ }
316748
+ }
316749
+ }
316750
+ },
316751
+ "422": {
316752
+ "description": "Validation failed",
316753
+ "content": {
316754
+ "application/json": {
316755
+ "schema": {
316756
+ "title": "Validation Error",
316757
+ "description": "Validation Error",
316758
+ "type": "object",
316759
+ "required": [
316760
+ "message",
316761
+ "documentation_url"
316762
+ ],
316763
+ "properties": {
316764
+ "message": {
316765
+ "type": "string"
316766
+ },
316767
+ "documentation_url": {
316768
+ "type": "string"
316769
+ },
316770
+ "errors": {
316771
+ "type": "array",
316772
+ "items": {
316773
+ "type": "object",
316774
+ "required": [
316775
+ "code"
316776
+ ],
316777
+ "properties": {
316778
+ "resource": {
316779
+ "type": "string"
316780
+ },
316781
+ "field": {
316782
+ "type": "string"
316783
+ },
316784
+ "message": {
316785
+ "type": "string"
316786
+ },
316787
+ "code": {
316788
+ "type": "string"
316789
+ },
316790
+ "index": {
316791
+ "type": "integer"
316792
+ },
316793
+ "value": {
316794
+ "oneOf": [
316795
+ {
316796
+ "type": "string",
316797
+ "nullable": true
316798
+ },
316799
+ {
316800
+ "type": "integer",
316801
+ "nullable": true
316802
+ },
316803
+ {
316804
+ "type": "array",
316805
+ "nullable": true,
316806
+ "items": {
316807
+ "type": "string"
316808
+ }
316809
+ }
316810
+ ]
316811
+ }
316812
+ }
316813
+ }
316814
+ }
316815
+ }
316816
+ }
316817
+ }
316818
+ }
316819
+ }
316820
+ },
316821
+ "x-github": {
316822
+ "githubCloudOnly": false,
316823
+ "enabledForGitHubApps": true,
316824
+ "category": "repos",
316825
+ "subcategory": "contents"
316826
+ },
316827
+ "x-octokit": {}
316828
+ }
316829
+ },
316830
+ "/repos/{owner}/{repo}/readme/{dir}": {
316831
+ "get": {
316832
+ "summary": "Get a repository README for a directory",
316833
+ "description": "Gets the README from a repository directory.\n\nREADMEs support [custom media types](https://docs.github.com/enterprise-server@3.3/rest/reference/repos#custom-media-types) for retrieving the raw content or rendered HTML.",
316834
+ "tags": [
316835
+ "repos"
316836
+ ],
316837
+ "operationId": "repos/get-readme-in-directory",
316838
+ "externalDocs": {
316839
+ "description": "API method documentation",
316840
+ "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#get-a-repository-directory-readme"
316841
+ },
316842
+ "parameters": [
316843
+ {
316844
+ "name": "owner",
316845
+ "description": "The account owner of the repository. The name is not case sensitive.",
316846
+ "in": "path",
316847
+ "required": true,
316848
+ "schema": {
316849
+ "type": "string"
316850
+ }
316851
+ },
316852
+ {
316853
+ "name": "repo",
316854
+ "description": "The name of the repository. The name is not case sensitive.",
316855
+ "in": "path",
316856
+ "required": true,
316857
+ "schema": {
316858
+ "type": "string"
316859
+ }
316860
+ },
316861
+ {
316862
+ "name": "dir",
316863
+ "description": "The alternate path to look for a README file",
316864
+ "in": "path",
316865
+ "required": true,
316866
+ "schema": {
316867
+ "type": "string"
316868
+ },
316869
+ "x-multi-segment": true
316870
+ },
316871
+ {
316872
+ "name": "ref",
316873
+ "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
316874
+ "in": "query",
316875
+ "required": false,
316876
+ "schema": {
316877
+ "type": "string"
316878
+ }
316879
+ }
316880
+ ],
316881
+ "responses": {
316882
+ "200": {
316883
+ "description": "Response",
316884
+ "content": {
316885
+ "application/json": {
316886
+ "schema": {
316887
+ "title": "Content File",
316888
+ "description": "Content File",
316889
+ "type": "object",
316890
+ "properties": {
316891
+ "type": {
316892
+ "type": "string",
316893
+ "enum": [
316894
+ "file"
315904
316895
  ]
315905
316896
  },
315906
- "target": {
315907
- "type": "string",
315908
- "example": "\"actual/actual.md\""
315909
- },
315910
- "submodule_git_url": {
315911
- "type": "string",
315912
- "example": "\"git://example.com/defunkt/dotjs.git\""
315913
- }
315914
- },
315915
- "required": [
315916
- "_links",
315917
- "git_url",
315918
- "html_url",
315919
- "download_url",
315920
- "name",
315921
- "path",
315922
- "sha",
315923
- "size",
315924
- "type",
315925
- "url",
315926
- "content",
315927
- "encoding"
315928
- ]
315929
- },
315930
- "examples": {
315931
- "default": {
315932
- "value": {
315933
- "type": "file",
315934
- "encoding": "base64",
315935
- "size": 5362,
315936
- "name": "README.md",
315937
- "path": "README.md",
315938
- "content": "encoded content ...",
315939
- "sha": "3d21ec53a331a6f037a91c368710b99387d012c1",
315940
- "url": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
315941
- "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
315942
- "html_url": "https://github.com/octokit/octokit.rb/blob/master/README.md",
315943
- "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/README.md",
315944
- "_links": {
315945
- "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
315946
- "self": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
315947
- "html": "https://github.com/octokit/octokit.rb/blob/master/README.md"
315948
- }
315949
- }
315950
- }
315951
- }
315952
- }
315953
- }
315954
- },
315955
- "404": {
315956
- "description": "Resource not found",
315957
- "content": {
315958
- "application/json": {
315959
- "schema": {
315960
- "title": "Basic Error",
315961
- "description": "Basic Error",
315962
- "type": "object",
315963
- "properties": {
315964
- "message": {
315965
- "type": "string"
315966
- },
315967
- "documentation_url": {
315968
- "type": "string"
315969
- },
315970
- "url": {
315971
- "type": "string"
315972
- },
315973
- "status": {
315974
- "type": "string"
315975
- }
315976
- }
315977
- }
315978
- }
315979
- }
315980
- },
315981
- "422": {
315982
- "description": "Validation failed",
315983
- "content": {
315984
- "application/json": {
315985
- "schema": {
315986
- "title": "Validation Error",
315987
- "description": "Validation Error",
315988
- "type": "object",
315989
- "required": [
315990
- "message",
315991
- "documentation_url"
315992
- ],
315993
- "properties": {
315994
- "message": {
315995
- "type": "string"
315996
- },
315997
- "documentation_url": {
315998
- "type": "string"
315999
- },
316000
- "errors": {
316001
- "type": "array",
316002
- "items": {
316003
- "type": "object",
316004
- "required": [
316005
- "code"
316006
- ],
316007
- "properties": {
316008
- "resource": {
316009
- "type": "string"
316010
- },
316011
- "field": {
316012
- "type": "string"
316013
- },
316014
- "message": {
316015
- "type": "string"
316016
- },
316017
- "code": {
316018
- "type": "string"
316019
- },
316020
- "index": {
316021
- "type": "integer"
316022
- },
316023
- "value": {
316024
- "oneOf": [
316025
- {
316026
- "type": "string",
316027
- "nullable": true
316028
- },
316029
- {
316030
- "type": "integer",
316031
- "nullable": true
316032
- },
316033
- {
316034
- "type": "array",
316035
- "nullable": true,
316036
- "items": {
316037
- "type": "string"
316038
- }
316039
- }
316040
- ]
316041
- }
316042
- }
316043
- }
316044
- }
316045
- }
316046
- }
316047
- }
316048
- }
316049
- }
316050
- },
316051
- "x-github": {
316052
- "githubCloudOnly": false,
316053
- "enabledForGitHubApps": true,
316054
- "category": "repos",
316055
- "subcategory": "contents"
316056
- },
316057
- "x-octokit": {}
316058
- }
316059
- },
316060
- "/repos/{owner}/{repo}/readme/{dir}": {
316061
- "get": {
316062
- "summary": "Get a repository README for a directory",
316063
- "description": "Gets the README from a repository directory.\n\nREADMEs support [custom media types](https://docs.github.com/enterprise-server@3.3/rest/reference/repos#custom-media-types) for retrieving the raw content or rendered HTML.",
316064
- "tags": [
316065
- "repos"
316066
- ],
316067
- "operationId": "repos/get-readme-in-directory",
316068
- "externalDocs": {
316069
- "description": "API method documentation",
316070
- "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#get-a-repository-directory-readme"
316071
- },
316072
- "parameters": [
316073
- {
316074
- "name": "owner",
316075
- "description": "The account owner of the repository. The name is not case sensitive.",
316076
- "in": "path",
316077
- "required": true,
316078
- "schema": {
316079
- "type": "string"
316080
- }
316081
- },
316082
- {
316083
- "name": "repo",
316084
- "description": "The name of the repository. The name is not case sensitive.",
316085
- "in": "path",
316086
- "required": true,
316087
- "schema": {
316088
- "type": "string"
316089
- }
316090
- },
316091
- {
316092
- "name": "dir",
316093
- "description": "The alternate path to look for a README file",
316094
- "in": "path",
316095
- "required": true,
316096
- "schema": {
316097
- "type": "string"
316098
- },
316099
- "x-multi-segment": true
316100
- },
316101
- {
316102
- "name": "ref",
316103
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
316104
- "in": "query",
316105
- "required": false,
316106
- "schema": {
316107
- "type": "string"
316108
- }
316109
- }
316110
- ],
316111
- "responses": {
316112
- "200": {
316113
- "description": "Response",
316114
- "content": {
316115
- "application/json": {
316116
- "schema": {
316117
- "title": "Content File",
316118
- "description": "Content File",
316119
- "type": "object",
316120
- "properties": {
316121
- "type": {
316122
- "type": "string"
316123
- },
316124
316897
  "encoding": {
316125
316898
  "type": "string"
316126
316899
  },
@@ -332098,7 +332871,7 @@
332098
332871
  "name": "environment_name",
332099
332872
  "in": "path",
332100
332873
  "required": true,
332101
- "description": "The name of the environment",
332874
+ "description": "The name of the environment.",
332102
332875
  "schema": {
332103
332876
  "type": "string"
332104
332877
  }
@@ -332233,7 +333006,7 @@
332233
333006
  "name": "environment_name",
332234
333007
  "in": "path",
332235
333008
  "required": true,
332236
- "description": "The name of the environment",
333009
+ "description": "The name of the environment.",
332237
333010
  "schema": {
332238
333011
  "type": "string"
332239
333012
  }
@@ -332328,7 +333101,7 @@
332328
333101
  "name": "environment_name",
332329
333102
  "in": "path",
332330
333103
  "required": true,
332331
- "description": "The name of the environment",
333104
+ "description": "The name of the environment.",
332332
333105
  "schema": {
332333
333106
  "type": "string"
332334
333107
  }
@@ -332419,7 +333192,7 @@
332419
333192
  "name": "environment_name",
332420
333193
  "in": "path",
332421
333194
  "required": true,
332422
- "description": "The name of the environment",
333195
+ "description": "The name of the environment.",
332423
333196
  "schema": {
332424
333197
  "type": "string"
332425
333198
  }
@@ -332524,7 +333297,7 @@
332524
333297
  "name": "environment_name",
332525
333298
  "in": "path",
332526
333299
  "required": true,
332527
- "description": "The name of the environment",
333300
+ "description": "The name of the environment.",
332528
333301
  "schema": {
332529
333302
  "type": "string"
332530
333303
  }
@@ -359856,6 +360629,14 @@
359856
360629
  "write"
359857
360630
  ]
359858
360631
  },
360632
+ "organization_custom_roles": {
360633
+ "type": "string",
360634
+ "description": "The level of permission to grant the access token for custom roles management.",
360635
+ "enum": [
360636
+ "read",
360637
+ "write"
360638
+ ]
360639
+ },
359859
360640
  "deployments": {
359860
360641
  "type": "string",
359861
360642
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -390913,6 +391694,14 @@
390913
391694
  "write"
390914
391695
  ]
390915
391696
  },
391697
+ "organization_custom_roles": {
391698
+ "type": "string",
391699
+ "description": "The level of permission to grant the access token for custom roles management.",
391700
+ "enum": [
391701
+ "read",
391702
+ "write"
391703
+ ]
391704
+ },
390916
391705
  "deployments": {
390917
391706
  "type": "string",
390918
391707
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -404711,6 +405500,12 @@
404711
405500
  "text/plain": {
404712
405501
  "schema": {
404713
405502
  "type": "string"
405503
+ },
405504
+ "examples": {
405505
+ "default": {
405506
+ "summary": "Example response",
405507
+ "value": "Responsive is better than fast"
405508
+ }
404714
405509
  }
404715
405510
  }
404716
405511
  }