@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": {
@@ -13766,13 +13766,6 @@
13766
13766
  "permission": {
13767
13767
  "type": "string",
13768
13768
  "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.",
13769
- "enum": [
13770
- "pull",
13771
- "push",
13772
- "admin",
13773
- "maintain",
13774
- "triage"
13775
- ],
13776
13769
  "default": "push"
13777
13770
  }
13778
13771
  }
@@ -23261,13 +23254,6 @@
23261
23254
  "permission": {
23262
23255
  "type": "string",
23263
23256
  "description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
23264
- "enum": [
23265
- "pull",
23266
- "push",
23267
- "admin",
23268
- "maintain",
23269
- "triage"
23270
- ],
23271
23257
  "default": "push"
23272
23258
  }
23273
23259
  }
@@ -25966,15 +25952,15 @@
25966
25952
  },
25967
25953
  "/repos/{owner}/{repo}/environments": {
25968
25954
  "get": {
25969
- "summary": "Get all environments",
25970
- "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.",
25955
+ "summary": "List environments",
25956
+ "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.",
25971
25957
  "tags": [
25972
25958
  "repos"
25973
25959
  ],
25974
25960
  "operationId": "repos/get-all-environments",
25975
25961
  "externalDocs": {
25976
25962
  "description": "API method documentation",
25977
- "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#get-all-environments"
25963
+ "url": "https://docs.github.com/github-ae@latest/rest/deployments/environments#list-environments"
25978
25964
  },
25979
25965
  "parameters": [
25980
25966
  {
@@ -26023,7 +26009,7 @@
26023
26009
  "x-github": {
26024
26010
  "githubCloudOnly": false,
26025
26011
  "enabledForGitHubApps": true,
26026
- "category": "repos",
26012
+ "category": "deployments",
26027
26013
  "subcategory": "environments"
26028
26014
  },
26029
26015
  "x-octokit": {}
@@ -26032,7 +26018,7 @@
26032
26018
  "/repos/{owner}/{repo}/environments/{environment_name}": {
26033
26019
  "get": {
26034
26020
  "summary": "Get an environment",
26035
- "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.",
26021
+ "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.",
26036
26022
  "tags": [
26037
26023
  "repos"
26038
26024
  ],
@@ -26079,7 +26065,7 @@
26079
26065
  },
26080
26066
  "put": {
26081
26067
  "summary": "Create or update an environment",
26082
- "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.",
26068
+ "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.",
26083
26069
  "tags": [
26084
26070
  "repos"
26085
26071
  ],
@@ -26129,10 +26115,31 @@
26129
26115
  }
26130
26116
  },
26131
26117
  "deployment_branch_policy": {
26132
- "$ref": "#/components/schemas/deployment-branch-policy"
26118
+ "$ref": "#/components/schemas/deployment-branch-policy-settings"
26133
26119
  }
26134
26120
  },
26135
26121
  "additionalProperties": false
26122
+ },
26123
+ "examples": {
26124
+ "default": {
26125
+ "value": {
26126
+ "wait_timer": 30,
26127
+ "reviewers": [
26128
+ {
26129
+ "type": "User",
26130
+ "id": 1
26131
+ },
26132
+ {
26133
+ "type": "Team",
26134
+ "id": 1
26135
+ }
26136
+ ],
26137
+ "deployment_branch_policy": {
26138
+ "protected_branches": false,
26139
+ "custom_branch_policies": true
26140
+ }
26141
+ }
26142
+ }
26136
26143
  }
26137
26144
  }
26138
26145
  }
@@ -26208,6 +26215,315 @@
26208
26215
  "x-octokit": {}
26209
26216
  }
26210
26217
  },
26218
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
26219
+ "get": {
26220
+ "summary": "List deployment branch policies",
26221
+ "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.",
26222
+ "tags": [
26223
+ "repos"
26224
+ ],
26225
+ "operationId": "repos/list-deployment-branch-policies",
26226
+ "externalDocs": {
26227
+ "description": "API method documentation",
26228
+ "url": "https://docs.github.com/github-ae@latest/rest/deployments/branch-policies#list-deployment-branch-policies"
26229
+ },
26230
+ "parameters": [
26231
+ {
26232
+ "$ref": "#/components/parameters/owner"
26233
+ },
26234
+ {
26235
+ "$ref": "#/components/parameters/repo"
26236
+ },
26237
+ {
26238
+ "$ref": "#/components/parameters/environment-name"
26239
+ },
26240
+ {
26241
+ "$ref": "#/components/parameters/per-page"
26242
+ },
26243
+ {
26244
+ "$ref": "#/components/parameters/page"
26245
+ }
26246
+ ],
26247
+ "responses": {
26248
+ "200": {
26249
+ "description": "Response",
26250
+ "content": {
26251
+ "application/json": {
26252
+ "schema": {
26253
+ "type": "object",
26254
+ "properties": {
26255
+ "total_count": {
26256
+ "description": "The number of deployment branch policies for the environment.",
26257
+ "type": "integer",
26258
+ "example": 2
26259
+ },
26260
+ "branch_policies": {
26261
+ "type": "array",
26262
+ "items": {
26263
+ "$ref": "#/components/schemas/deployment-branch-policy"
26264
+ }
26265
+ }
26266
+ },
26267
+ "required": [
26268
+ "total_count",
26269
+ "branch_policies"
26270
+ ]
26271
+ },
26272
+ "examples": {
26273
+ "default": {
26274
+ "$ref": "#/components/examples/deployment-branch-policies-list"
26275
+ }
26276
+ }
26277
+ }
26278
+ }
26279
+ }
26280
+ },
26281
+ "x-github": {
26282
+ "githubCloudOnly": false,
26283
+ "enabledForGitHubApps": true,
26284
+ "category": "deployments",
26285
+ "subcategory": "branch-policies"
26286
+ },
26287
+ "x-octokit": {}
26288
+ },
26289
+ "post": {
26290
+ "summary": "Create a deployment branch policy",
26291
+ "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.",
26292
+ "tags": [
26293
+ "repos"
26294
+ ],
26295
+ "operationId": "repos/create-deployment-branch-policy",
26296
+ "externalDocs": {
26297
+ "description": "API method documentation",
26298
+ "url": "https://docs.github.com/github-ae@latest/rest/deployments/branch-policies#create-deployment-branch-policy"
26299
+ },
26300
+ "parameters": [
26301
+ {
26302
+ "$ref": "#/components/parameters/owner"
26303
+ },
26304
+ {
26305
+ "$ref": "#/components/parameters/repo"
26306
+ },
26307
+ {
26308
+ "$ref": "#/components/parameters/environment-name"
26309
+ }
26310
+ ],
26311
+ "requestBody": {
26312
+ "required": true,
26313
+ "content": {
26314
+ "application/json": {
26315
+ "schema": {
26316
+ "$ref": "#/components/schemas/deployment-branch-policy-name-pattern"
26317
+ },
26318
+ "examples": {
26319
+ "example-wildcard": {
26320
+ "summary": "Example of a wildcard name pattern",
26321
+ "value": {
26322
+ "name": "release/*"
26323
+ }
26324
+ },
26325
+ "example-single-branch": {
26326
+ "summary": "Example of a single branch name pattern",
26327
+ "value": {
26328
+ "name": "main"
26329
+ }
26330
+ }
26331
+ }
26332
+ }
26333
+ }
26334
+ },
26335
+ "responses": {
26336
+ "200": {
26337
+ "description": "Response",
26338
+ "content": {
26339
+ "application/json": {
26340
+ "schema": {
26341
+ "$ref": "#/components/schemas/deployment-branch-policy"
26342
+ },
26343
+ "examples": {
26344
+ "example-wildcard": {
26345
+ "$ref": "#/components/examples/deployment-branch-policy-wildcard"
26346
+ },
26347
+ "example-single-branch": {
26348
+ "$ref": "#/components/examples/deployment-branch-policy-single-branch"
26349
+ }
26350
+ }
26351
+ }
26352
+ }
26353
+ },
26354
+ "303": {
26355
+ "description": "Response if the same branch name pattern already exists"
26356
+ },
26357
+ "404": {
26358
+ "description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
26359
+ }
26360
+ },
26361
+ "x-github": {
26362
+ "githubCloudOnly": false,
26363
+ "enabledForGitHubApps": true,
26364
+ "category": "deployments",
26365
+ "subcategory": "branch-policies"
26366
+ },
26367
+ "x-octokit": {}
26368
+ }
26369
+ },
26370
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
26371
+ "get": {
26372
+ "summary": "Get a deployment branch policy",
26373
+ "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.",
26374
+ "tags": [
26375
+ "repos"
26376
+ ],
26377
+ "operationId": "repos/get-deployment-branch-policy",
26378
+ "externalDocs": {
26379
+ "description": "API method documentation",
26380
+ "url": "https://docs.github.com/github-ae@latest/rest/deployments/branch-policies#get-deployment-branch-policy"
26381
+ },
26382
+ "parameters": [
26383
+ {
26384
+ "$ref": "#/components/parameters/owner"
26385
+ },
26386
+ {
26387
+ "$ref": "#/components/parameters/repo"
26388
+ },
26389
+ {
26390
+ "$ref": "#/components/parameters/environment-name"
26391
+ },
26392
+ {
26393
+ "$ref": "#/components/parameters/branch-policy-id"
26394
+ }
26395
+ ],
26396
+ "responses": {
26397
+ "200": {
26398
+ "description": "Response",
26399
+ "content": {
26400
+ "application/json": {
26401
+ "schema": {
26402
+ "$ref": "#/components/schemas/deployment-branch-policy"
26403
+ },
26404
+ "examples": {
26405
+ "default": {
26406
+ "$ref": "#/components/examples/deployment-branch-policy-wildcard"
26407
+ }
26408
+ }
26409
+ }
26410
+ }
26411
+ }
26412
+ },
26413
+ "x-github": {
26414
+ "githubCloudOnly": false,
26415
+ "enabledForGitHubApps": true,
26416
+ "category": "deployments",
26417
+ "subcategory": "branch-policies"
26418
+ },
26419
+ "x-octokit": {}
26420
+ },
26421
+ "put": {
26422
+ "summary": "Update a deployment branch policy",
26423
+ "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.",
26424
+ "tags": [
26425
+ "repos"
26426
+ ],
26427
+ "operationId": "repos/update-deployment-branch-policy",
26428
+ "externalDocs": {
26429
+ "description": "API method documentation",
26430
+ "url": "https://docs.github.com/github-ae@latest/rest/deployments/branch-policies#update-deployment-branch-policy"
26431
+ },
26432
+ "parameters": [
26433
+ {
26434
+ "$ref": "#/components/parameters/owner"
26435
+ },
26436
+ {
26437
+ "$ref": "#/components/parameters/repo"
26438
+ },
26439
+ {
26440
+ "$ref": "#/components/parameters/environment-name"
26441
+ },
26442
+ {
26443
+ "$ref": "#/components/parameters/branch-policy-id"
26444
+ }
26445
+ ],
26446
+ "requestBody": {
26447
+ "required": true,
26448
+ "content": {
26449
+ "application/json": {
26450
+ "schema": {
26451
+ "$ref": "#/components/schemas/deployment-branch-policy-name-pattern"
26452
+ },
26453
+ "examples": {
26454
+ "default": {
26455
+ "value": {
26456
+ "name": "release/*"
26457
+ }
26458
+ }
26459
+ }
26460
+ }
26461
+ }
26462
+ },
26463
+ "responses": {
26464
+ "200": {
26465
+ "description": "Response",
26466
+ "content": {
26467
+ "application/json": {
26468
+ "schema": {
26469
+ "$ref": "#/components/schemas/deployment-branch-policy"
26470
+ },
26471
+ "examples": {
26472
+ "default": {
26473
+ "$ref": "#/components/examples/deployment-branch-policy-wildcard"
26474
+ }
26475
+ }
26476
+ }
26477
+ }
26478
+ }
26479
+ },
26480
+ "x-github": {
26481
+ "githubCloudOnly": false,
26482
+ "enabledForGitHubApps": true,
26483
+ "category": "deployments",
26484
+ "subcategory": "branch-policies"
26485
+ },
26486
+ "x-octokit": {}
26487
+ },
26488
+ "delete": {
26489
+ "summary": "Delete a deployment branch policy",
26490
+ "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.",
26491
+ "tags": [
26492
+ "repos"
26493
+ ],
26494
+ "operationId": "repos/delete-deployment-branch-policy",
26495
+ "externalDocs": {
26496
+ "description": "API method documentation",
26497
+ "url": "https://docs.github.com/github-ae@latest/rest/deployments/branch-policies#delete-deployment-branch-policy"
26498
+ },
26499
+ "parameters": [
26500
+ {
26501
+ "$ref": "#/components/parameters/owner"
26502
+ },
26503
+ {
26504
+ "$ref": "#/components/parameters/repo"
26505
+ },
26506
+ {
26507
+ "$ref": "#/components/parameters/environment-name"
26508
+ },
26509
+ {
26510
+ "$ref": "#/components/parameters/branch-policy-id"
26511
+ }
26512
+ ],
26513
+ "responses": {
26514
+ "204": {
26515
+ "description": "Response"
26516
+ }
26517
+ },
26518
+ "x-github": {
26519
+ "githubCloudOnly": false,
26520
+ "enabledForGitHubApps": true,
26521
+ "category": "deployments",
26522
+ "subcategory": "branch-policies"
26523
+ },
26524
+ "x-octokit": {}
26525
+ }
26526
+ },
26211
26527
  "/repos/{owner}/{repo}/events": {
26212
26528
  "get": {
26213
26529
  "summary": "List repository events",
@@ -45486,6 +45802,12 @@
45486
45802
  "text/plain": {
45487
45803
  "schema": {
45488
45804
  "type": "string"
45805
+ },
45806
+ "examples": {
45807
+ "default": {
45808
+ "summary": "Example response",
45809
+ "value": "Responsive is better than fast"
45810
+ }
45489
45811
  }
45490
45812
  }
45491
45813
  }
@@ -45915,6 +46237,50 @@
45915
46237
  }
45916
46238
  }
45917
46239
  },
46240
+ "/enterprises/{enterprise}/consumed-licenses": {
46241
+ "get": {
46242
+ "summary": "List enterprise consumed licenses",
46243
+ "description": "This endpoint is currently not supported by GitHub AE. It only exists in api.github.com right now.",
46244
+ "tags": [
46245
+ "enterprise-admin"
46246
+ ],
46247
+ "operationId": "enterprise-admin/get-consumed-licenses",
46248
+ "externalDocs": {
46249
+ "description": "API method documentation",
46250
+ "url": "https://docs.github.com/rest/reference/enterprise-admin#list-enterprise-consumed-licenses"
46251
+ },
46252
+ "x-octokit": {
46253
+ "api.github.com": "removed"
46254
+ },
46255
+ "responses": {
46256
+ "501": {
46257
+ "description": "Not Implemented"
46258
+ }
46259
+ }
46260
+ }
46261
+ },
46262
+ "/enterprises/{enterprise}/license-sync-status": {
46263
+ "get": {
46264
+ "summary": "Get a license sync status",
46265
+ "description": "This endpoint is currently not supported by GitHub AE. It only exists in api.github.com right now.",
46266
+ "tags": [
46267
+ "enterprise-admin"
46268
+ ],
46269
+ "operationId": "enterprise-admin/get-license-sync-status",
46270
+ "externalDocs": {
46271
+ "description": "API method documentation",
46272
+ "url": "https://docs.github.com/rest/reference/enterprise-admin#get-a-license-sync-status"
46273
+ },
46274
+ "x-octokit": {
46275
+ "api.github.com": "removed"
46276
+ },
46277
+ "responses": {
46278
+ "501": {
46279
+ "description": "Not Implemented"
46280
+ }
46281
+ }
46282
+ }
46283
+ },
45918
46284
  "/enterprises/{enterprise}/secret-scanning/alerts": {
45919
46285
  "get": {
45920
46286
  "summary": "List secret scanning alerts for an enterprise",
@@ -51595,6 +51961,14 @@
51595
51961
  "write"
51596
51962
  ]
51597
51963
  },
51964
+ "organization_custom_roles": {
51965
+ "type": "string",
51966
+ "description": "The level of permission to grant the access token for custom roles management.",
51967
+ "enum": [
51968
+ "read",
51969
+ "write"
51970
+ ]
51971
+ },
51598
51972
  "deployments": {
51599
51973
  "type": "string",
51600
51974
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -64832,7 +65206,13 @@
64832
65206
  "type": "object",
64833
65207
  "properties": {
64834
65208
  "type": {
64835
- "type": "string"
65209
+ "type": "string",
65210
+ "enum": [
65211
+ "dir",
65212
+ "file",
65213
+ "submodule",
65214
+ "symlink"
65215
+ ]
64836
65216
  },
64837
65217
  "size": {
64838
65218
  "type": "integer"
@@ -64913,7 +65293,10 @@
64913
65293
  "type": "object",
64914
65294
  "properties": {
64915
65295
  "type": {
64916
- "type": "string"
65296
+ "type": "string",
65297
+ "enum": [
65298
+ "file"
65299
+ ]
64917
65300
  },
64918
65301
  "encoding": {
64919
65302
  "type": "string"
@@ -65006,7 +65389,10 @@
65006
65389
  "type": "object",
65007
65390
  "properties": {
65008
65391
  "type": {
65009
- "type": "string"
65392
+ "type": "string",
65393
+ "enum": [
65394
+ "symlink"
65395
+ ]
65010
65396
  },
65011
65397
  "target": {
65012
65398
  "type": "string"
@@ -65082,12 +65468,15 @@
65082
65468
  ]
65083
65469
  },
65084
65470
  "content-submodule": {
65085
- "title": "Symlink Content",
65086
- "description": "An object describing a symlink",
65471
+ "title": "Submodule Content",
65472
+ "description": "An object describing a submodule",
65087
65473
  "type": "object",
65088
65474
  "properties": {
65089
65475
  "type": {
65090
- "type": "string"
65476
+ "type": "string",
65477
+ "enum": [
65478
+ "submodule"
65479
+ ]
65091
65480
  },
65092
65481
  "submodule_git_url": {
65093
65482
  "type": "string",
@@ -65632,7 +66021,7 @@
65632
66021
  ],
65633
66022
  "example": "User"
65634
66023
  },
65635
- "deployment-branch-policy": {
66024
+ "deployment-branch-policy-settings": {
65636
66025
  "type": "object",
65637
66026
  "description": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.",
65638
66027
  "properties": {
@@ -65789,7 +66178,7 @@
65789
66178
  }
65790
66179
  },
65791
66180
  "deployment_branch_policy": {
65792
- "$ref": "#/components/schemas/deployment-branch-policy"
66181
+ "$ref": "#/components/schemas/deployment-branch-policy-settings"
65793
66182
  }
65794
66183
  },
65795
66184
  "required": [
@@ -65802,6 +66191,41 @@
65802
66191
  "updated_at"
65803
66192
  ]
65804
66193
  },
66194
+ "deployment-branch-policy": {
66195
+ "title": "Deployment branch policy",
66196
+ "description": "Details of a deployment branch policy.",
66197
+ "type": "object",
66198
+ "properties": {
66199
+ "id": {
66200
+ "description": "The unique identifier of the branch policy.",
66201
+ "type": "integer",
66202
+ "example": 361471
66203
+ },
66204
+ "node_id": {
66205
+ "type": "string",
66206
+ "example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
66207
+ },
66208
+ "name": {
66209
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
66210
+ "type": "string",
66211
+ "example": "release/*"
66212
+ }
66213
+ }
66214
+ },
66215
+ "deployment-branch-policy-name-pattern": {
66216
+ "title": "Deployment branch policy name pattern",
66217
+ "type": "object",
66218
+ "properties": {
66219
+ "name": {
66220
+ "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).",
66221
+ "type": "string",
66222
+ "example": "release/*"
66223
+ }
66224
+ },
66225
+ "required": [
66226
+ "name"
66227
+ ]
66228
+ },
65805
66229
  "actor": {
65806
66230
  "title": "Actor",
65807
66231
  "description": "Actor",
@@ -86338,6 +86762,37 @@
86338
86762
  }
86339
86763
  }
86340
86764
  },
86765
+ "deployment-branch-policies-list": {
86766
+ "value": {
86767
+ "total_count": 2,
86768
+ "branch_policies": [
86769
+ {
86770
+ "id": 361471,
86771
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
86772
+ "name": "release/*"
86773
+ },
86774
+ {
86775
+ "id": 361472,
86776
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
86777
+ "name": "main"
86778
+ }
86779
+ ]
86780
+ }
86781
+ },
86782
+ "deployment-branch-policy-wildcard": {
86783
+ "value": {
86784
+ "id": 364662,
86785
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
86786
+ "name": "release/*"
86787
+ }
86788
+ },
86789
+ "deployment-branch-policy-single-branch": {
86790
+ "value": {
86791
+ "id": 364663,
86792
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
86793
+ "name": "main"
86794
+ }
86795
+ },
86341
86796
  "repo-events-items": {
86342
86797
  "value": [
86343
86798
  {
@@ -94622,11 +95077,20 @@
94622
95077
  "name": "environment_name",
94623
95078
  "in": "path",
94624
95079
  "required": true,
94625
- "description": "The name of the environment",
95080
+ "description": "The name of the environment.",
94626
95081
  "schema": {
94627
95082
  "type": "string"
94628
95083
  }
94629
95084
  },
95085
+ "branch-policy-id": {
95086
+ "name": "branch_policy_id",
95087
+ "in": "path",
95088
+ "required": true,
95089
+ "description": "The unique identifier of the branch policy.",
95090
+ "schema": {
95091
+ "type": "integer"
95092
+ }
95093
+ },
94630
95094
  "invitation-id": {
94631
95095
  "name": "invitation_id",
94632
95096
  "description": "The unique identifier of the invitation.",