@octokit/openapi 7.0.0 → 7.1.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 (33) hide show
  1. package/generated/api.github.com.deref.json +831 -48
  2. package/generated/api.github.com.json +456 -36
  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 +1 -8
  6. package/generated/ghes-3.2-diff-to-ghes-3.3.json +1 -8
  7. package/generated/ghes-3.2.deref.json +618 -37
  8. package/generated/ghes-3.2.json +437 -31
  9. package/generated/ghes-3.3-diff-to-ghes-3.4.deref.json +1 -1
  10. package/generated/ghes-3.3-diff-to-ghes-3.4.json +1 -1
  11. package/generated/ghes-3.3.deref.json +618 -37
  12. package/generated/ghes-3.3.json +437 -31
  13. package/generated/ghes-3.4-diff-to-ghes-3.5.deref.json +1 -8
  14. package/generated/ghes-3.4-diff-to-ghes-3.5.json +1 -8
  15. package/generated/ghes-3.4.deref.json +618 -37
  16. package/generated/ghes-3.4.json +437 -31
  17. package/generated/ghes-3.5-diff-to-api.github.com.deref.json +1 -1
  18. package/generated/ghes-3.5-diff-to-api.github.com.json +1 -1
  19. package/generated/ghes-3.5-diff-to-ghes-3.6.deref.json +1 -8
  20. package/generated/ghes-3.5-diff-to-ghes-3.6.json +1 -8
  21. package/generated/ghes-3.5.deref.json +620 -39
  22. package/generated/ghes-3.5.json +439 -33
  23. package/generated/ghes-3.6-anicca-diff-to-api.github.com.deref.json +0 -56
  24. package/generated/ghes-3.6-diff-to-api.github.com.deref.json +1 -164
  25. package/generated/ghes-3.6-diff-to-api.github.com.json +1 -130
  26. package/generated/ghes-3.6.deref.json +622 -53
  27. package/generated/ghes-3.6.json +441 -47
  28. package/generated/github.ae-diff-to-api.github.com.deref.json +1 -8
  29. package/generated/github.ae-diff-to-api.github.com.json +1 -8
  30. package/generated/github.ae.deref.json +613 -32
  31. package/generated/github.ae.json +437 -31
  32. package/index.js +2 -0
  33. 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.1.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": {
@@ -17928,13 +17928,6 @@
17928
17928
  "permission": {
17929
17929
  "type": "string",
17930
17930
  "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.",
17931
- "enum": [
17932
- "pull",
17933
- "push",
17934
- "admin",
17935
- "maintain",
17936
- "triage"
17937
- ],
17938
17931
  "default": "push"
17939
17932
  }
17940
17933
  }
@@ -20631,7 +20624,7 @@
20631
20624
  "/repos/{owner}/{repo}/actions/permissions/access": {
20632
20625
  "get": {
20633
20626
  "summary": "Get the level of access for workflows outside of the repository",
20634
- "description": "Gets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository.\nThis endpoint only applies to internal repositories.\nFor more information, see \"[Managing GitHub Actions settings for a repository](https://docs.github.com/enterprise-server@3.5/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-an-internal-repository).\"\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the\nrepository `administration` permission to use this endpoint.",
20627
+ "description": "Gets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository.\nThis endpoint only applies to internal repositories. For more information, see \"[Managing GitHub Actions settings for a repository](https://docs.github.com/enterprise-server@3.5/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-an-internal-repository).\"\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the\nrepository `administration` permission to use this endpoint.",
20635
20628
  "tags": [
20636
20629
  "actions"
20637
20630
  ],
@@ -20676,7 +20669,7 @@
20676
20669
  },
20677
20670
  "put": {
20678
20671
  "summary": "Set the level of access for workflows outside of the repository",
20679
- "description": "Sets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository.\nThis endpoint only applies to internal repositories.\nFor more information, see \"[Managing GitHub Actions settings for a repository](https://docs.github.com/enterprise-server@3.5/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-an-internal-repository).\"\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the\nrepository `administration` permission to use this endpoint.",
20672
+ "description": "Sets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository.\nThis endpoint only applies to internal repositories. For more information, see \"[Managing GitHub Actions settings for a repository](https://docs.github.com/enterprise-server@3.5/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-an-internal-repository).\"\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the\nrepository `administration` permission to use this endpoint.",
20680
20673
  "tags": [
20681
20674
  "actions"
20682
20675
  ],
@@ -28243,13 +28236,6 @@
28243
28236
  "permission": {
28244
28237
  "type": "string",
28245
28238
  "description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
28246
- "enum": [
28247
- "pull",
28248
- "push",
28249
- "admin",
28250
- "maintain",
28251
- "triage"
28252
- ],
28253
28239
  "default": "push"
28254
28240
  }
28255
28241
  }
@@ -31196,15 +31182,15 @@
31196
31182
  },
31197
31183
  "/repos/{owner}/{repo}/environments": {
31198
31184
  "get": {
31199
- "summary": "Get all environments",
31200
- "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.",
31185
+ "summary": "List environments",
31186
+ "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.",
31201
31187
  "tags": [
31202
31188
  "repos"
31203
31189
  ],
31204
31190
  "operationId": "repos/get-all-environments",
31205
31191
  "externalDocs": {
31206
31192
  "description": "API method documentation",
31207
- "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#get-all-environments"
31193
+ "url": "https://docs.github.com/enterprise-server@3.5/rest/deployments/environments#list-environments"
31208
31194
  },
31209
31195
  "parameters": [
31210
31196
  {
@@ -31253,7 +31239,7 @@
31253
31239
  "x-github": {
31254
31240
  "githubCloudOnly": false,
31255
31241
  "enabledForGitHubApps": true,
31256
- "category": "repos",
31242
+ "category": "deployments",
31257
31243
  "subcategory": "environments"
31258
31244
  },
31259
31245
  "x-octokit": {}
@@ -31262,7 +31248,7 @@
31262
31248
  "/repos/{owner}/{repo}/environments/{environment_name}": {
31263
31249
  "get": {
31264
31250
  "summary": "Get an environment",
31265
- "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.",
31251
+ "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.",
31266
31252
  "tags": [
31267
31253
  "repos"
31268
31254
  ],
@@ -31309,7 +31295,7 @@
31309
31295
  },
31310
31296
  "put": {
31311
31297
  "summary": "Create or update an environment",
31312
- "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.",
31298
+ "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.",
31313
31299
  "tags": [
31314
31300
  "repos"
31315
31301
  ],
@@ -31359,10 +31345,31 @@
31359
31345
  }
31360
31346
  },
31361
31347
  "deployment_branch_policy": {
31362
- "$ref": "#/components/schemas/deployment-branch-policy"
31348
+ "$ref": "#/components/schemas/deployment-branch-policy-settings"
31363
31349
  }
31364
31350
  },
31365
31351
  "additionalProperties": false
31352
+ },
31353
+ "examples": {
31354
+ "default": {
31355
+ "value": {
31356
+ "wait_timer": 30,
31357
+ "reviewers": [
31358
+ {
31359
+ "type": "User",
31360
+ "id": 1
31361
+ },
31362
+ {
31363
+ "type": "Team",
31364
+ "id": 1
31365
+ }
31366
+ ],
31367
+ "deployment_branch_policy": {
31368
+ "protected_branches": false,
31369
+ "custom_branch_policies": true
31370
+ }
31371
+ }
31372
+ }
31366
31373
  }
31367
31374
  }
31368
31375
  }
@@ -31438,6 +31445,315 @@
31438
31445
  "x-octokit": {}
31439
31446
  }
31440
31447
  },
31448
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
31449
+ "get": {
31450
+ "summary": "List deployment branch policies",
31451
+ "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.",
31452
+ "tags": [
31453
+ "repos"
31454
+ ],
31455
+ "operationId": "repos/list-deployment-branch-policies",
31456
+ "externalDocs": {
31457
+ "description": "API method documentation",
31458
+ "url": "https://docs.github.com/enterprise-server@3.5/rest/deployments/branch-policies#list-deployment-branch-policies"
31459
+ },
31460
+ "parameters": [
31461
+ {
31462
+ "$ref": "#/components/parameters/owner"
31463
+ },
31464
+ {
31465
+ "$ref": "#/components/parameters/repo"
31466
+ },
31467
+ {
31468
+ "$ref": "#/components/parameters/environment-name"
31469
+ },
31470
+ {
31471
+ "$ref": "#/components/parameters/per-page"
31472
+ },
31473
+ {
31474
+ "$ref": "#/components/parameters/page"
31475
+ }
31476
+ ],
31477
+ "responses": {
31478
+ "200": {
31479
+ "description": "Response",
31480
+ "content": {
31481
+ "application/json": {
31482
+ "schema": {
31483
+ "type": "object",
31484
+ "properties": {
31485
+ "total_count": {
31486
+ "description": "The number of deployment branch policies for the environment.",
31487
+ "type": "integer",
31488
+ "example": 2
31489
+ },
31490
+ "branch_policies": {
31491
+ "type": "array",
31492
+ "items": {
31493
+ "$ref": "#/components/schemas/deployment-branch-policy"
31494
+ }
31495
+ }
31496
+ },
31497
+ "required": [
31498
+ "total_count",
31499
+ "branch_policies"
31500
+ ]
31501
+ },
31502
+ "examples": {
31503
+ "default": {
31504
+ "$ref": "#/components/examples/deployment-branch-policies-list"
31505
+ }
31506
+ }
31507
+ }
31508
+ }
31509
+ }
31510
+ },
31511
+ "x-github": {
31512
+ "githubCloudOnly": false,
31513
+ "enabledForGitHubApps": true,
31514
+ "category": "deployments",
31515
+ "subcategory": "branch-policies"
31516
+ },
31517
+ "x-octokit": {}
31518
+ },
31519
+ "post": {
31520
+ "summary": "Create a deployment branch policy",
31521
+ "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.",
31522
+ "tags": [
31523
+ "repos"
31524
+ ],
31525
+ "operationId": "repos/create-deployment-branch-policy",
31526
+ "externalDocs": {
31527
+ "description": "API method documentation",
31528
+ "url": "https://docs.github.com/enterprise-server@3.5/rest/deployments/branch-policies#create-deployment-branch-policy"
31529
+ },
31530
+ "parameters": [
31531
+ {
31532
+ "$ref": "#/components/parameters/owner"
31533
+ },
31534
+ {
31535
+ "$ref": "#/components/parameters/repo"
31536
+ },
31537
+ {
31538
+ "$ref": "#/components/parameters/environment-name"
31539
+ }
31540
+ ],
31541
+ "requestBody": {
31542
+ "required": true,
31543
+ "content": {
31544
+ "application/json": {
31545
+ "schema": {
31546
+ "$ref": "#/components/schemas/deployment-branch-policy-name-pattern"
31547
+ },
31548
+ "examples": {
31549
+ "example-wildcard": {
31550
+ "summary": "Example of a wildcard name pattern",
31551
+ "value": {
31552
+ "name": "release/*"
31553
+ }
31554
+ },
31555
+ "example-single-branch": {
31556
+ "summary": "Example of a single branch name pattern",
31557
+ "value": {
31558
+ "name": "main"
31559
+ }
31560
+ }
31561
+ }
31562
+ }
31563
+ }
31564
+ },
31565
+ "responses": {
31566
+ "200": {
31567
+ "description": "Response",
31568
+ "content": {
31569
+ "application/json": {
31570
+ "schema": {
31571
+ "$ref": "#/components/schemas/deployment-branch-policy"
31572
+ },
31573
+ "examples": {
31574
+ "example-wildcard": {
31575
+ "$ref": "#/components/examples/deployment-branch-policy-wildcard"
31576
+ },
31577
+ "example-single-branch": {
31578
+ "$ref": "#/components/examples/deployment-branch-policy-single-branch"
31579
+ }
31580
+ }
31581
+ }
31582
+ }
31583
+ },
31584
+ "303": {
31585
+ "description": "Response if the same branch name pattern already exists"
31586
+ },
31587
+ "404": {
31588
+ "description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
31589
+ }
31590
+ },
31591
+ "x-github": {
31592
+ "githubCloudOnly": false,
31593
+ "enabledForGitHubApps": true,
31594
+ "category": "deployments",
31595
+ "subcategory": "branch-policies"
31596
+ },
31597
+ "x-octokit": {}
31598
+ }
31599
+ },
31600
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
31601
+ "get": {
31602
+ "summary": "Get a deployment branch policy",
31603
+ "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.",
31604
+ "tags": [
31605
+ "repos"
31606
+ ],
31607
+ "operationId": "repos/get-deployment-branch-policy",
31608
+ "externalDocs": {
31609
+ "description": "API method documentation",
31610
+ "url": "https://docs.github.com/enterprise-server@3.5/rest/deployments/branch-policies#get-deployment-branch-policy"
31611
+ },
31612
+ "parameters": [
31613
+ {
31614
+ "$ref": "#/components/parameters/owner"
31615
+ },
31616
+ {
31617
+ "$ref": "#/components/parameters/repo"
31618
+ },
31619
+ {
31620
+ "$ref": "#/components/parameters/environment-name"
31621
+ },
31622
+ {
31623
+ "$ref": "#/components/parameters/branch-policy-id"
31624
+ }
31625
+ ],
31626
+ "responses": {
31627
+ "200": {
31628
+ "description": "Response",
31629
+ "content": {
31630
+ "application/json": {
31631
+ "schema": {
31632
+ "$ref": "#/components/schemas/deployment-branch-policy"
31633
+ },
31634
+ "examples": {
31635
+ "default": {
31636
+ "$ref": "#/components/examples/deployment-branch-policy-wildcard"
31637
+ }
31638
+ }
31639
+ }
31640
+ }
31641
+ }
31642
+ },
31643
+ "x-github": {
31644
+ "githubCloudOnly": false,
31645
+ "enabledForGitHubApps": true,
31646
+ "category": "deployments",
31647
+ "subcategory": "branch-policies"
31648
+ },
31649
+ "x-octokit": {}
31650
+ },
31651
+ "put": {
31652
+ "summary": "Update a deployment branch policy",
31653
+ "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.",
31654
+ "tags": [
31655
+ "repos"
31656
+ ],
31657
+ "operationId": "repos/update-deployment-branch-policy",
31658
+ "externalDocs": {
31659
+ "description": "API method documentation",
31660
+ "url": "https://docs.github.com/enterprise-server@3.5/rest/deployments/branch-policies#update-deployment-branch-policy"
31661
+ },
31662
+ "parameters": [
31663
+ {
31664
+ "$ref": "#/components/parameters/owner"
31665
+ },
31666
+ {
31667
+ "$ref": "#/components/parameters/repo"
31668
+ },
31669
+ {
31670
+ "$ref": "#/components/parameters/environment-name"
31671
+ },
31672
+ {
31673
+ "$ref": "#/components/parameters/branch-policy-id"
31674
+ }
31675
+ ],
31676
+ "requestBody": {
31677
+ "required": true,
31678
+ "content": {
31679
+ "application/json": {
31680
+ "schema": {
31681
+ "$ref": "#/components/schemas/deployment-branch-policy-name-pattern"
31682
+ },
31683
+ "examples": {
31684
+ "default": {
31685
+ "value": {
31686
+ "name": "release/*"
31687
+ }
31688
+ }
31689
+ }
31690
+ }
31691
+ }
31692
+ },
31693
+ "responses": {
31694
+ "200": {
31695
+ "description": "Response",
31696
+ "content": {
31697
+ "application/json": {
31698
+ "schema": {
31699
+ "$ref": "#/components/schemas/deployment-branch-policy"
31700
+ },
31701
+ "examples": {
31702
+ "default": {
31703
+ "$ref": "#/components/examples/deployment-branch-policy-wildcard"
31704
+ }
31705
+ }
31706
+ }
31707
+ }
31708
+ }
31709
+ },
31710
+ "x-github": {
31711
+ "githubCloudOnly": false,
31712
+ "enabledForGitHubApps": true,
31713
+ "category": "deployments",
31714
+ "subcategory": "branch-policies"
31715
+ },
31716
+ "x-octokit": {}
31717
+ },
31718
+ "delete": {
31719
+ "summary": "Delete a deployment branch policy",
31720
+ "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.",
31721
+ "tags": [
31722
+ "repos"
31723
+ ],
31724
+ "operationId": "repos/delete-deployment-branch-policy",
31725
+ "externalDocs": {
31726
+ "description": "API method documentation",
31727
+ "url": "https://docs.github.com/enterprise-server@3.5/rest/deployments/branch-policies#delete-deployment-branch-policy"
31728
+ },
31729
+ "parameters": [
31730
+ {
31731
+ "$ref": "#/components/parameters/owner"
31732
+ },
31733
+ {
31734
+ "$ref": "#/components/parameters/repo"
31735
+ },
31736
+ {
31737
+ "$ref": "#/components/parameters/environment-name"
31738
+ },
31739
+ {
31740
+ "$ref": "#/components/parameters/branch-policy-id"
31741
+ }
31742
+ ],
31743
+ "responses": {
31744
+ "204": {
31745
+ "description": "Response"
31746
+ }
31747
+ },
31748
+ "x-github": {
31749
+ "githubCloudOnly": false,
31750
+ "enabledForGitHubApps": true,
31751
+ "category": "deployments",
31752
+ "subcategory": "branch-policies"
31753
+ },
31754
+ "x-octokit": {}
31755
+ }
31756
+ },
31441
31757
  "/repos/{owner}/{repo}/events": {
31442
31758
  "get": {
31443
31759
  "summary": "List repository events",
@@ -68164,7 +68480,13 @@
68164
68480
  "type": "object",
68165
68481
  "properties": {
68166
68482
  "type": {
68167
- "type": "string"
68483
+ "type": "string",
68484
+ "enum": [
68485
+ "dir",
68486
+ "file",
68487
+ "submodule",
68488
+ "symlink"
68489
+ ]
68168
68490
  },
68169
68491
  "size": {
68170
68492
  "type": "integer"
@@ -68245,7 +68567,10 @@
68245
68567
  "type": "object",
68246
68568
  "properties": {
68247
68569
  "type": {
68248
- "type": "string"
68570
+ "type": "string",
68571
+ "enum": [
68572
+ "file"
68573
+ ]
68249
68574
  },
68250
68575
  "encoding": {
68251
68576
  "type": "string"
@@ -68338,7 +68663,10 @@
68338
68663
  "type": "object",
68339
68664
  "properties": {
68340
68665
  "type": {
68341
- "type": "string"
68666
+ "type": "string",
68667
+ "enum": [
68668
+ "symlink"
68669
+ ]
68342
68670
  },
68343
68671
  "target": {
68344
68672
  "type": "string"
@@ -68414,12 +68742,15 @@
68414
68742
  ]
68415
68743
  },
68416
68744
  "content-submodule": {
68417
- "title": "Symlink Content",
68418
- "description": "An object describing a symlink",
68745
+ "title": "Submodule Content",
68746
+ "description": "An object describing a submodule",
68419
68747
  "type": "object",
68420
68748
  "properties": {
68421
68749
  "type": {
68422
- "type": "string"
68750
+ "type": "string",
68751
+ "enum": [
68752
+ "submodule"
68753
+ ]
68423
68754
  },
68424
68755
  "submodule_git_url": {
68425
68756
  "type": "string",
@@ -68868,7 +69199,7 @@
68868
69199
  "example": 30,
68869
69200
  "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)."
68870
69201
  },
68871
- "deployment-branch-policy": {
69202
+ "deployment-branch-policy-settings": {
68872
69203
  "type": "object",
68873
69204
  "description": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.",
68874
69205
  "properties": {
@@ -69025,7 +69356,7 @@
69025
69356
  }
69026
69357
  },
69027
69358
  "deployment_branch_policy": {
69028
- "$ref": "#/components/schemas/deployment-branch-policy"
69359
+ "$ref": "#/components/schemas/deployment-branch-policy-settings"
69029
69360
  }
69030
69361
  },
69031
69362
  "required": [
@@ -69038,6 +69369,41 @@
69038
69369
  "updated_at"
69039
69370
  ]
69040
69371
  },
69372
+ "deployment-branch-policy": {
69373
+ "title": "Deployment branch policy",
69374
+ "description": "Details of a deployment branch policy.",
69375
+ "type": "object",
69376
+ "properties": {
69377
+ "id": {
69378
+ "description": "The unique identifier of the branch policy.",
69379
+ "type": "integer",
69380
+ "example": 361471
69381
+ },
69382
+ "node_id": {
69383
+ "type": "string",
69384
+ "example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
69385
+ },
69386
+ "name": {
69387
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
69388
+ "type": "string",
69389
+ "example": "release/*"
69390
+ }
69391
+ }
69392
+ },
69393
+ "deployment-branch-policy-name-pattern": {
69394
+ "title": "Deployment branch policy name pattern",
69395
+ "type": "object",
69396
+ "properties": {
69397
+ "name": {
69398
+ "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).",
69399
+ "type": "string",
69400
+ "example": "release/*"
69401
+ }
69402
+ },
69403
+ "required": [
69404
+ "name"
69405
+ ]
69406
+ },
69041
69407
  "short-blob": {
69042
69408
  "title": "Short Blob",
69043
69409
  "description": "Short Blob",
@@ -91454,6 +91820,37 @@
91454
91820
  }
91455
91821
  }
91456
91822
  },
91823
+ "deployment-branch-policies-list": {
91824
+ "value": {
91825
+ "total_count": 2,
91826
+ "branch_policies": [
91827
+ {
91828
+ "id": 361471,
91829
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
91830
+ "name": "release/*"
91831
+ },
91832
+ {
91833
+ "id": 361472,
91834
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
91835
+ "name": "main"
91836
+ }
91837
+ ]
91838
+ }
91839
+ },
91840
+ "deployment-branch-policy-wildcard": {
91841
+ "value": {
91842
+ "id": 364662,
91843
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
91844
+ "name": "release/*"
91845
+ }
91846
+ },
91847
+ "deployment-branch-policy-single-branch": {
91848
+ "value": {
91849
+ "id": 364663,
91850
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
91851
+ "name": "main"
91852
+ }
91853
+ },
91457
91854
  "repo-events-items": {
91458
91855
  "value": [
91459
91856
  {
@@ -100365,11 +100762,20 @@
100365
100762
  "name": "environment_name",
100366
100763
  "in": "path",
100367
100764
  "required": true,
100368
- "description": "The name of the environment",
100765
+ "description": "The name of the environment.",
100369
100766
  "schema": {
100370
100767
  "type": "string"
100371
100768
  }
100372
100769
  },
100770
+ "branch-policy-id": {
100771
+ "name": "branch_policy_id",
100772
+ "in": "path",
100773
+ "required": true,
100774
+ "description": "The unique identifier of the branch policy.",
100775
+ "schema": {
100776
+ "type": "integer"
100777
+ }
100778
+ },
100373
100779
  "invitation-id": {
100374
100780
  "name": "invitation_id",
100375
100781
  "description": "The unique identifier of the invitation.",