@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": {
@@ -17355,13 +17355,6 @@
17355
17355
  "permission": {
17356
17356
  "type": "string",
17357
17357
  "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.",
17358
- "enum": [
17359
- "pull",
17360
- "push",
17361
- "admin",
17362
- "maintain",
17363
- "triage"
17364
- ],
17365
17358
  "default": "push"
17366
17359
  }
17367
17360
  }
@@ -27063,13 +27056,6 @@
27063
27056
  "permission": {
27064
27057
  "type": "string",
27065
27058
  "description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
27066
- "enum": [
27067
- "pull",
27068
- "push",
27069
- "admin",
27070
- "maintain",
27071
- "triage"
27072
- ],
27073
27059
  "default": "push"
27074
27060
  }
27075
27061
  }
@@ -30016,15 +30002,15 @@
30016
30002
  },
30017
30003
  "/repos/{owner}/{repo}/environments": {
30018
30004
  "get": {
30019
- "summary": "Get all environments",
30020
- "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.",
30005
+ "summary": "List environments",
30006
+ "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.",
30021
30007
  "tags": [
30022
30008
  "repos"
30023
30009
  ],
30024
30010
  "operationId": "repos/get-all-environments",
30025
30011
  "externalDocs": {
30026
30012
  "description": "API method documentation",
30027
- "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#get-all-environments"
30013
+ "url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/environments#list-environments"
30028
30014
  },
30029
30015
  "parameters": [
30030
30016
  {
@@ -30073,7 +30059,7 @@
30073
30059
  "x-github": {
30074
30060
  "githubCloudOnly": false,
30075
30061
  "enabledForGitHubApps": true,
30076
- "category": "repos",
30062
+ "category": "deployments",
30077
30063
  "subcategory": "environments"
30078
30064
  },
30079
30065
  "x-octokit": {}
@@ -30082,7 +30068,7 @@
30082
30068
  "/repos/{owner}/{repo}/environments/{environment_name}": {
30083
30069
  "get": {
30084
30070
  "summary": "Get an environment",
30085
- "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.",
30071
+ "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.",
30086
30072
  "tags": [
30087
30073
  "repos"
30088
30074
  ],
@@ -30129,7 +30115,7 @@
30129
30115
  },
30130
30116
  "put": {
30131
30117
  "summary": "Create or update an environment",
30132
- "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.",
30118
+ "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.",
30133
30119
  "tags": [
30134
30120
  "repos"
30135
30121
  ],
@@ -30179,10 +30165,31 @@
30179
30165
  }
30180
30166
  },
30181
30167
  "deployment_branch_policy": {
30182
- "$ref": "#/components/schemas/deployment-branch-policy"
30168
+ "$ref": "#/components/schemas/deployment-branch-policy-settings"
30183
30169
  }
30184
30170
  },
30185
30171
  "additionalProperties": false
30172
+ },
30173
+ "examples": {
30174
+ "default": {
30175
+ "value": {
30176
+ "wait_timer": 30,
30177
+ "reviewers": [
30178
+ {
30179
+ "type": "User",
30180
+ "id": 1
30181
+ },
30182
+ {
30183
+ "type": "Team",
30184
+ "id": 1
30185
+ }
30186
+ ],
30187
+ "deployment_branch_policy": {
30188
+ "protected_branches": false,
30189
+ "custom_branch_policies": true
30190
+ }
30191
+ }
30192
+ }
30186
30193
  }
30187
30194
  }
30188
30195
  }
@@ -30258,6 +30265,315 @@
30258
30265
  "x-octokit": {}
30259
30266
  }
30260
30267
  },
30268
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
30269
+ "get": {
30270
+ "summary": "List deployment branch policies",
30271
+ "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.",
30272
+ "tags": [
30273
+ "repos"
30274
+ ],
30275
+ "operationId": "repos/list-deployment-branch-policies",
30276
+ "externalDocs": {
30277
+ "description": "API method documentation",
30278
+ "url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/branch-policies#list-deployment-branch-policies"
30279
+ },
30280
+ "parameters": [
30281
+ {
30282
+ "$ref": "#/components/parameters/owner"
30283
+ },
30284
+ {
30285
+ "$ref": "#/components/parameters/repo"
30286
+ },
30287
+ {
30288
+ "$ref": "#/components/parameters/environment-name"
30289
+ },
30290
+ {
30291
+ "$ref": "#/components/parameters/per-page"
30292
+ },
30293
+ {
30294
+ "$ref": "#/components/parameters/page"
30295
+ }
30296
+ ],
30297
+ "responses": {
30298
+ "200": {
30299
+ "description": "Response",
30300
+ "content": {
30301
+ "application/json": {
30302
+ "schema": {
30303
+ "type": "object",
30304
+ "properties": {
30305
+ "total_count": {
30306
+ "description": "The number of deployment branch policies for the environment.",
30307
+ "type": "integer",
30308
+ "example": 2
30309
+ },
30310
+ "branch_policies": {
30311
+ "type": "array",
30312
+ "items": {
30313
+ "$ref": "#/components/schemas/deployment-branch-policy"
30314
+ }
30315
+ }
30316
+ },
30317
+ "required": [
30318
+ "total_count",
30319
+ "branch_policies"
30320
+ ]
30321
+ },
30322
+ "examples": {
30323
+ "default": {
30324
+ "$ref": "#/components/examples/deployment-branch-policies-list"
30325
+ }
30326
+ }
30327
+ }
30328
+ }
30329
+ }
30330
+ },
30331
+ "x-github": {
30332
+ "githubCloudOnly": false,
30333
+ "enabledForGitHubApps": true,
30334
+ "category": "deployments",
30335
+ "subcategory": "branch-policies"
30336
+ },
30337
+ "x-octokit": {}
30338
+ },
30339
+ "post": {
30340
+ "summary": "Create a deployment branch policy",
30341
+ "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.",
30342
+ "tags": [
30343
+ "repos"
30344
+ ],
30345
+ "operationId": "repos/create-deployment-branch-policy",
30346
+ "externalDocs": {
30347
+ "description": "API method documentation",
30348
+ "url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/branch-policies#create-deployment-branch-policy"
30349
+ },
30350
+ "parameters": [
30351
+ {
30352
+ "$ref": "#/components/parameters/owner"
30353
+ },
30354
+ {
30355
+ "$ref": "#/components/parameters/repo"
30356
+ },
30357
+ {
30358
+ "$ref": "#/components/parameters/environment-name"
30359
+ }
30360
+ ],
30361
+ "requestBody": {
30362
+ "required": true,
30363
+ "content": {
30364
+ "application/json": {
30365
+ "schema": {
30366
+ "$ref": "#/components/schemas/deployment-branch-policy-name-pattern"
30367
+ },
30368
+ "examples": {
30369
+ "example-wildcard": {
30370
+ "summary": "Example of a wildcard name pattern",
30371
+ "value": {
30372
+ "name": "release/*"
30373
+ }
30374
+ },
30375
+ "example-single-branch": {
30376
+ "summary": "Example of a single branch name pattern",
30377
+ "value": {
30378
+ "name": "main"
30379
+ }
30380
+ }
30381
+ }
30382
+ }
30383
+ }
30384
+ },
30385
+ "responses": {
30386
+ "200": {
30387
+ "description": "Response",
30388
+ "content": {
30389
+ "application/json": {
30390
+ "schema": {
30391
+ "$ref": "#/components/schemas/deployment-branch-policy"
30392
+ },
30393
+ "examples": {
30394
+ "example-wildcard": {
30395
+ "$ref": "#/components/examples/deployment-branch-policy-wildcard"
30396
+ },
30397
+ "example-single-branch": {
30398
+ "$ref": "#/components/examples/deployment-branch-policy-single-branch"
30399
+ }
30400
+ }
30401
+ }
30402
+ }
30403
+ },
30404
+ "303": {
30405
+ "description": "Response if the same branch name pattern already exists"
30406
+ },
30407
+ "404": {
30408
+ "description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
30409
+ }
30410
+ },
30411
+ "x-github": {
30412
+ "githubCloudOnly": false,
30413
+ "enabledForGitHubApps": true,
30414
+ "category": "deployments",
30415
+ "subcategory": "branch-policies"
30416
+ },
30417
+ "x-octokit": {}
30418
+ }
30419
+ },
30420
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
30421
+ "get": {
30422
+ "summary": "Get a deployment branch policy",
30423
+ "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.",
30424
+ "tags": [
30425
+ "repos"
30426
+ ],
30427
+ "operationId": "repos/get-deployment-branch-policy",
30428
+ "externalDocs": {
30429
+ "description": "API method documentation",
30430
+ "url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/branch-policies#get-deployment-branch-policy"
30431
+ },
30432
+ "parameters": [
30433
+ {
30434
+ "$ref": "#/components/parameters/owner"
30435
+ },
30436
+ {
30437
+ "$ref": "#/components/parameters/repo"
30438
+ },
30439
+ {
30440
+ "$ref": "#/components/parameters/environment-name"
30441
+ },
30442
+ {
30443
+ "$ref": "#/components/parameters/branch-policy-id"
30444
+ }
30445
+ ],
30446
+ "responses": {
30447
+ "200": {
30448
+ "description": "Response",
30449
+ "content": {
30450
+ "application/json": {
30451
+ "schema": {
30452
+ "$ref": "#/components/schemas/deployment-branch-policy"
30453
+ },
30454
+ "examples": {
30455
+ "default": {
30456
+ "$ref": "#/components/examples/deployment-branch-policy-wildcard"
30457
+ }
30458
+ }
30459
+ }
30460
+ }
30461
+ }
30462
+ },
30463
+ "x-github": {
30464
+ "githubCloudOnly": false,
30465
+ "enabledForGitHubApps": true,
30466
+ "category": "deployments",
30467
+ "subcategory": "branch-policies"
30468
+ },
30469
+ "x-octokit": {}
30470
+ },
30471
+ "put": {
30472
+ "summary": "Update a deployment branch policy",
30473
+ "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.",
30474
+ "tags": [
30475
+ "repos"
30476
+ ],
30477
+ "operationId": "repos/update-deployment-branch-policy",
30478
+ "externalDocs": {
30479
+ "description": "API method documentation",
30480
+ "url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/branch-policies#update-deployment-branch-policy"
30481
+ },
30482
+ "parameters": [
30483
+ {
30484
+ "$ref": "#/components/parameters/owner"
30485
+ },
30486
+ {
30487
+ "$ref": "#/components/parameters/repo"
30488
+ },
30489
+ {
30490
+ "$ref": "#/components/parameters/environment-name"
30491
+ },
30492
+ {
30493
+ "$ref": "#/components/parameters/branch-policy-id"
30494
+ }
30495
+ ],
30496
+ "requestBody": {
30497
+ "required": true,
30498
+ "content": {
30499
+ "application/json": {
30500
+ "schema": {
30501
+ "$ref": "#/components/schemas/deployment-branch-policy-name-pattern"
30502
+ },
30503
+ "examples": {
30504
+ "default": {
30505
+ "value": {
30506
+ "name": "release/*"
30507
+ }
30508
+ }
30509
+ }
30510
+ }
30511
+ }
30512
+ },
30513
+ "responses": {
30514
+ "200": {
30515
+ "description": "Response",
30516
+ "content": {
30517
+ "application/json": {
30518
+ "schema": {
30519
+ "$ref": "#/components/schemas/deployment-branch-policy"
30520
+ },
30521
+ "examples": {
30522
+ "default": {
30523
+ "$ref": "#/components/examples/deployment-branch-policy-wildcard"
30524
+ }
30525
+ }
30526
+ }
30527
+ }
30528
+ }
30529
+ },
30530
+ "x-github": {
30531
+ "githubCloudOnly": false,
30532
+ "enabledForGitHubApps": true,
30533
+ "category": "deployments",
30534
+ "subcategory": "branch-policies"
30535
+ },
30536
+ "x-octokit": {}
30537
+ },
30538
+ "delete": {
30539
+ "summary": "Delete a deployment branch policy",
30540
+ "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.",
30541
+ "tags": [
30542
+ "repos"
30543
+ ],
30544
+ "operationId": "repos/delete-deployment-branch-policy",
30545
+ "externalDocs": {
30546
+ "description": "API method documentation",
30547
+ "url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/branch-policies#delete-deployment-branch-policy"
30548
+ },
30549
+ "parameters": [
30550
+ {
30551
+ "$ref": "#/components/parameters/owner"
30552
+ },
30553
+ {
30554
+ "$ref": "#/components/parameters/repo"
30555
+ },
30556
+ {
30557
+ "$ref": "#/components/parameters/environment-name"
30558
+ },
30559
+ {
30560
+ "$ref": "#/components/parameters/branch-policy-id"
30561
+ }
30562
+ ],
30563
+ "responses": {
30564
+ "204": {
30565
+ "description": "Response"
30566
+ }
30567
+ },
30568
+ "x-github": {
30569
+ "githubCloudOnly": false,
30570
+ "enabledForGitHubApps": true,
30571
+ "category": "deployments",
30572
+ "subcategory": "branch-policies"
30573
+ },
30574
+ "x-octokit": {}
30575
+ }
30576
+ },
30261
30577
  "/repos/{owner}/{repo}/events": {
30262
30578
  "get": {
30263
30579
  "summary": "List repository events",
@@ -51284,6 +51600,12 @@
51284
51600
  "text/plain": {
51285
51601
  "schema": {
51286
51602
  "type": "string"
51603
+ },
51604
+ "examples": {
51605
+ "default": {
51606
+ "summary": "Example response",
51607
+ "value": "Responsive is better than fast"
51608
+ }
51287
51609
  }
51288
51610
  }
51289
51611
  }
@@ -52845,6 +53167,14 @@
52845
53167
  "write"
52846
53168
  ]
52847
53169
  },
53170
+ "organization_custom_roles": {
53171
+ "type": "string",
53172
+ "description": "The level of permission to grant the access token for custom roles management.",
53173
+ "enum": [
53174
+ "read",
53175
+ "write"
53176
+ ]
53177
+ },
52848
53178
  "deployments": {
52849
53179
  "type": "string",
52850
53180
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -66665,7 +66995,13 @@
66665
66995
  "type": "object",
66666
66996
  "properties": {
66667
66997
  "type": {
66668
- "type": "string"
66998
+ "type": "string",
66999
+ "enum": [
67000
+ "dir",
67001
+ "file",
67002
+ "submodule",
67003
+ "symlink"
67004
+ ]
66669
67005
  },
66670
67006
  "size": {
66671
67007
  "type": "integer"
@@ -66746,7 +67082,10 @@
66746
67082
  "type": "object",
66747
67083
  "properties": {
66748
67084
  "type": {
66749
- "type": "string"
67085
+ "type": "string",
67086
+ "enum": [
67087
+ "file"
67088
+ ]
66750
67089
  },
66751
67090
  "encoding": {
66752
67091
  "type": "string"
@@ -66839,7 +67178,10 @@
66839
67178
  "type": "object",
66840
67179
  "properties": {
66841
67180
  "type": {
66842
- "type": "string"
67181
+ "type": "string",
67182
+ "enum": [
67183
+ "symlink"
67184
+ ]
66843
67185
  },
66844
67186
  "target": {
66845
67187
  "type": "string"
@@ -66915,12 +67257,15 @@
66915
67257
  ]
66916
67258
  },
66917
67259
  "content-submodule": {
66918
- "title": "Symlink Content",
66919
- "description": "An object describing a symlink",
67260
+ "title": "Submodule Content",
67261
+ "description": "An object describing a submodule",
66920
67262
  "type": "object",
66921
67263
  "properties": {
66922
67264
  "type": {
66923
- "type": "string"
67265
+ "type": "string",
67266
+ "enum": [
67267
+ "submodule"
67268
+ ]
66924
67269
  },
66925
67270
  "submodule_git_url": {
66926
67271
  "type": "string",
@@ -67369,7 +67714,7 @@
67369
67714
  "example": 30,
67370
67715
  "description": "The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days)."
67371
67716
  },
67372
- "deployment-branch-policy": {
67717
+ "deployment-branch-policy-settings": {
67373
67718
  "type": "object",
67374
67719
  "description": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.",
67375
67720
  "properties": {
@@ -67526,7 +67871,7 @@
67526
67871
  }
67527
67872
  },
67528
67873
  "deployment_branch_policy": {
67529
- "$ref": "#/components/schemas/deployment-branch-policy"
67874
+ "$ref": "#/components/schemas/deployment-branch-policy-settings"
67530
67875
  }
67531
67876
  },
67532
67877
  "required": [
@@ -67539,6 +67884,41 @@
67539
67884
  "updated_at"
67540
67885
  ]
67541
67886
  },
67887
+ "deployment-branch-policy": {
67888
+ "title": "Deployment branch policy",
67889
+ "description": "Details of a deployment branch policy.",
67890
+ "type": "object",
67891
+ "properties": {
67892
+ "id": {
67893
+ "description": "The unique identifier of the branch policy.",
67894
+ "type": "integer",
67895
+ "example": 361471
67896
+ },
67897
+ "node_id": {
67898
+ "type": "string",
67899
+ "example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
67900
+ },
67901
+ "name": {
67902
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
67903
+ "type": "string",
67904
+ "example": "release/*"
67905
+ }
67906
+ }
67907
+ },
67908
+ "deployment-branch-policy-name-pattern": {
67909
+ "title": "Deployment branch policy name pattern",
67910
+ "type": "object",
67911
+ "properties": {
67912
+ "name": {
67913
+ "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).",
67914
+ "type": "string",
67915
+ "example": "release/*"
67916
+ }
67917
+ },
67918
+ "required": [
67919
+ "name"
67920
+ ]
67921
+ },
67542
67922
  "short-blob": {
67543
67923
  "title": "Short Blob",
67544
67924
  "description": "Short Blob",
@@ -89460,6 +89840,37 @@
89460
89840
  }
89461
89841
  }
89462
89842
  },
89843
+ "deployment-branch-policies-list": {
89844
+ "value": {
89845
+ "total_count": 2,
89846
+ "branch_policies": [
89847
+ {
89848
+ "id": 361471,
89849
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
89850
+ "name": "release/*"
89851
+ },
89852
+ {
89853
+ "id": 361472,
89854
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
89855
+ "name": "main"
89856
+ }
89857
+ ]
89858
+ }
89859
+ },
89860
+ "deployment-branch-policy-wildcard": {
89861
+ "value": {
89862
+ "id": 364662,
89863
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
89864
+ "name": "release/*"
89865
+ }
89866
+ },
89867
+ "deployment-branch-policy-single-branch": {
89868
+ "value": {
89869
+ "id": 364663,
89870
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
89871
+ "name": "main"
89872
+ }
89873
+ },
89463
89874
  "repo-events-items": {
89464
89875
  "value": [
89465
89876
  {
@@ -98337,11 +98748,20 @@
98337
98748
  "name": "environment_name",
98338
98749
  "in": "path",
98339
98750
  "required": true,
98340
- "description": "The name of the environment",
98751
+ "description": "The name of the environment.",
98341
98752
  "schema": {
98342
98753
  "type": "string"
98343
98754
  }
98344
98755
  },
98756
+ "branch-policy-id": {
98757
+ "name": "branch_policy_id",
98758
+ "in": "path",
98759
+ "required": true,
98760
+ "description": "The unique identifier of the branch policy.",
98761
+ "schema": {
98762
+ "type": "integer"
98763
+ }
98764
+ },
98345
98765
  "invitation-id": {
98346
98766
  "name": "invitation_id",
98347
98767
  "description": "The unique identifier of the invitation.",
@@ -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": {
@@ -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": {