@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": {
@@ -99756,13 +99756,6 @@
99756
99756
  "permission": {
99757
99757
  "type": "string",
99758
99758
  "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.",
99759
- "enum": [
99760
- "pull",
99761
- "push",
99762
- "admin",
99763
- "maintain",
99764
- "triage"
99765
- ],
99766
99759
  "default": "push"
99767
99760
  }
99768
99761
  }
@@ -169964,13 +169957,6 @@
169964
169957
  "permission": {
169965
169958
  "type": "string",
169966
169959
  "description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
169967
- "enum": [
169968
- "pull",
169969
- "push",
169970
- "admin",
169971
- "maintain",
169972
- "triage"
169973
- ],
169974
169960
  "default": "push"
169975
169961
  }
169976
169962
  }
@@ -190333,7 +190319,13 @@
190333
190319
  "type": "object",
190334
190320
  "properties": {
190335
190321
  "type": {
190336
- "type": "string"
190322
+ "type": "string",
190323
+ "enum": [
190324
+ "dir",
190325
+ "file",
190326
+ "submodule",
190327
+ "symlink"
190328
+ ]
190337
190329
  },
190338
190330
  "size": {
190339
190331
  "type": "integer"
@@ -190414,7 +190406,10 @@
190414
190406
  "type": "object",
190415
190407
  "properties": {
190416
190408
  "type": {
190417
- "type": "string"
190409
+ "type": "string",
190410
+ "enum": [
190411
+ "file"
190412
+ ]
190418
190413
  },
190419
190414
  "encoding": {
190420
190415
  "type": "string"
@@ -190507,7 +190502,10 @@
190507
190502
  "type": "object",
190508
190503
  "properties": {
190509
190504
  "type": {
190510
- "type": "string"
190505
+ "type": "string",
190506
+ "enum": [
190507
+ "symlink"
190508
+ ]
190511
190509
  },
190512
190510
  "target": {
190513
190511
  "type": "string"
@@ -190583,12 +190581,15 @@
190583
190581
  ]
190584
190582
  },
190585
190583
  {
190586
- "title": "Symlink Content",
190587
- "description": "An object describing a symlink",
190584
+ "title": "Submodule Content",
190585
+ "description": "An object describing a submodule",
190588
190586
  "type": "object",
190589
190587
  "properties": {
190590
190588
  "type": {
190591
- "type": "string"
190589
+ "type": "string",
190590
+ "enum": [
190591
+ "submodule"
190592
+ ]
190592
190593
  },
190593
190594
  "submodule_git_url": {
190594
190595
  "type": "string",
@@ -196486,15 +196487,15 @@
196486
196487
  },
196487
196488
  "/repos/{owner}/{repo}/environments": {
196488
196489
  "get": {
196489
- "summary": "Get all environments",
196490
- "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.",
196490
+ "summary": "List environments",
196491
+ "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.",
196491
196492
  "tags": [
196492
196493
  "repos"
196493
196494
  ],
196494
196495
  "operationId": "repos/get-all-environments",
196495
196496
  "externalDocs": {
196496
196497
  "description": "API method documentation",
196497
- "url": "https://docs.github.com/enterprise-server@3.2/rest/reference/repos#get-all-environments"
196498
+ "url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/environments#list-environments"
196498
196499
  },
196499
196500
  "parameters": [
196500
196501
  {
@@ -197093,7 +197094,7 @@
197093
197094
  "x-github": {
197094
197095
  "githubCloudOnly": false,
197095
197096
  "enabledForGitHubApps": true,
197096
- "category": "repos",
197097
+ "category": "deployments",
197097
197098
  "subcategory": "environments"
197098
197099
  },
197099
197100
  "x-octokit": {}
@@ -197102,7 +197103,7 @@
197102
197103
  "/repos/{owner}/{repo}/environments/{environment_name}": {
197103
197104
  "get": {
197104
197105
  "summary": "Get an environment",
197105
- "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.",
197106
+ "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.",
197106
197107
  "tags": [
197107
197108
  "repos"
197108
197109
  ],
@@ -197134,7 +197135,7 @@
197134
197135
  "name": "environment_name",
197135
197136
  "in": "path",
197136
197137
  "required": true,
197137
- "description": "The name of the environment",
197138
+ "description": "The name of the environment.",
197138
197139
  "schema": {
197139
197140
  "type": "string"
197140
197141
  }
@@ -197688,7 +197689,7 @@
197688
197689
  },
197689
197690
  "put": {
197690
197691
  "summary": "Create or update an environment",
197691
- "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.",
197692
+ "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.",
197692
197693
  "tags": [
197693
197694
  "repos"
197694
197695
  ],
@@ -197720,7 +197721,7 @@
197720
197721
  "name": "environment_name",
197721
197722
  "in": "path",
197722
197723
  "required": true,
197723
- "description": "The name of the environment",
197724
+ "description": "The name of the environment.",
197724
197725
  "schema": {
197725
197726
  "type": "string"
197726
197727
  }
@@ -197784,6 +197785,27 @@
197784
197785
  }
197785
197786
  },
197786
197787
  "additionalProperties": false
197788
+ },
197789
+ "examples": {
197790
+ "default": {
197791
+ "value": {
197792
+ "wait_timer": 30,
197793
+ "reviewers": [
197794
+ {
197795
+ "type": "User",
197796
+ "id": 1
197797
+ },
197798
+ {
197799
+ "type": "Team",
197800
+ "id": 1
197801
+ }
197802
+ ],
197803
+ "deployment_branch_policy": {
197804
+ "protected_branches": false,
197805
+ "custom_branch_policies": true
197806
+ }
197807
+ }
197808
+ }
197787
197809
  }
197788
197810
  }
197789
197811
  }
@@ -198394,7 +198416,7 @@
198394
198416
  "name": "environment_name",
198395
198417
  "in": "path",
198396
198418
  "required": true,
198397
- "description": "The name of the environment",
198419
+ "description": "The name of the environment.",
198398
198420
  "schema": {
198399
198421
  "type": "string"
198400
198422
  }
@@ -198414,6 +198436,559 @@
198414
198436
  "x-octokit": {}
198415
198437
  }
198416
198438
  },
198439
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
198440
+ "get": {
198441
+ "summary": "List deployment branch policies",
198442
+ "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.",
198443
+ "tags": [
198444
+ "repos"
198445
+ ],
198446
+ "operationId": "repos/list-deployment-branch-policies",
198447
+ "externalDocs": {
198448
+ "description": "API method documentation",
198449
+ "url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/branch-policies#list-deployment-branch-policies"
198450
+ },
198451
+ "parameters": [
198452
+ {
198453
+ "name": "owner",
198454
+ "description": "The account owner of the repository. The name is not case sensitive.",
198455
+ "in": "path",
198456
+ "required": true,
198457
+ "schema": {
198458
+ "type": "string"
198459
+ }
198460
+ },
198461
+ {
198462
+ "name": "repo",
198463
+ "description": "The name of the repository. The name is not case sensitive.",
198464
+ "in": "path",
198465
+ "required": true,
198466
+ "schema": {
198467
+ "type": "string"
198468
+ }
198469
+ },
198470
+ {
198471
+ "name": "environment_name",
198472
+ "in": "path",
198473
+ "required": true,
198474
+ "description": "The name of the environment.",
198475
+ "schema": {
198476
+ "type": "string"
198477
+ }
198478
+ },
198479
+ {
198480
+ "name": "per_page",
198481
+ "description": "The number of results per page (max 100).",
198482
+ "in": "query",
198483
+ "schema": {
198484
+ "type": "integer",
198485
+ "default": 30
198486
+ }
198487
+ },
198488
+ {
198489
+ "name": "page",
198490
+ "description": "Page number of the results to fetch.",
198491
+ "in": "query",
198492
+ "schema": {
198493
+ "type": "integer",
198494
+ "default": 1
198495
+ }
198496
+ }
198497
+ ],
198498
+ "responses": {
198499
+ "200": {
198500
+ "description": "Response",
198501
+ "content": {
198502
+ "application/json": {
198503
+ "schema": {
198504
+ "type": "object",
198505
+ "properties": {
198506
+ "total_count": {
198507
+ "description": "The number of deployment branch policies for the environment.",
198508
+ "type": "integer",
198509
+ "example": 2
198510
+ },
198511
+ "branch_policies": {
198512
+ "type": "array",
198513
+ "items": {
198514
+ "title": "Deployment branch policy",
198515
+ "description": "Details of a deployment branch policy.",
198516
+ "type": "object",
198517
+ "properties": {
198518
+ "id": {
198519
+ "description": "The unique identifier of the branch policy.",
198520
+ "type": "integer",
198521
+ "example": 361471
198522
+ },
198523
+ "node_id": {
198524
+ "type": "string",
198525
+ "example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
198526
+ },
198527
+ "name": {
198528
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
198529
+ "type": "string",
198530
+ "example": "release/*"
198531
+ }
198532
+ }
198533
+ }
198534
+ }
198535
+ },
198536
+ "required": [
198537
+ "total_count",
198538
+ "branch_policies"
198539
+ ]
198540
+ },
198541
+ "examples": {
198542
+ "default": {
198543
+ "value": {
198544
+ "total_count": 2,
198545
+ "branch_policies": [
198546
+ {
198547
+ "id": 361471,
198548
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
198549
+ "name": "release/*"
198550
+ },
198551
+ {
198552
+ "id": 361472,
198553
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
198554
+ "name": "main"
198555
+ }
198556
+ ]
198557
+ }
198558
+ }
198559
+ }
198560
+ }
198561
+ }
198562
+ }
198563
+ },
198564
+ "x-github": {
198565
+ "githubCloudOnly": false,
198566
+ "enabledForGitHubApps": true,
198567
+ "category": "deployments",
198568
+ "subcategory": "branch-policies"
198569
+ },
198570
+ "x-octokit": {}
198571
+ },
198572
+ "post": {
198573
+ "summary": "Create a deployment branch policy",
198574
+ "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.",
198575
+ "tags": [
198576
+ "repos"
198577
+ ],
198578
+ "operationId": "repos/create-deployment-branch-policy",
198579
+ "externalDocs": {
198580
+ "description": "API method documentation",
198581
+ "url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/branch-policies#create-deployment-branch-policy"
198582
+ },
198583
+ "parameters": [
198584
+ {
198585
+ "name": "owner",
198586
+ "description": "The account owner of the repository. The name is not case sensitive.",
198587
+ "in": "path",
198588
+ "required": true,
198589
+ "schema": {
198590
+ "type": "string"
198591
+ }
198592
+ },
198593
+ {
198594
+ "name": "repo",
198595
+ "description": "The name of the repository. The name is not case sensitive.",
198596
+ "in": "path",
198597
+ "required": true,
198598
+ "schema": {
198599
+ "type": "string"
198600
+ }
198601
+ },
198602
+ {
198603
+ "name": "environment_name",
198604
+ "in": "path",
198605
+ "required": true,
198606
+ "description": "The name of the environment.",
198607
+ "schema": {
198608
+ "type": "string"
198609
+ }
198610
+ }
198611
+ ],
198612
+ "requestBody": {
198613
+ "required": true,
198614
+ "content": {
198615
+ "application/json": {
198616
+ "schema": {
198617
+ "title": "Deployment branch policy name pattern",
198618
+ "type": "object",
198619
+ "properties": {
198620
+ "name": {
198621
+ "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).",
198622
+ "type": "string",
198623
+ "example": "release/*"
198624
+ }
198625
+ },
198626
+ "required": [
198627
+ "name"
198628
+ ]
198629
+ },
198630
+ "examples": {
198631
+ "example-wildcard": {
198632
+ "summary": "Example of a wildcard name pattern",
198633
+ "value": {
198634
+ "name": "release/*"
198635
+ }
198636
+ },
198637
+ "example-single-branch": {
198638
+ "summary": "Example of a single branch name pattern",
198639
+ "value": {
198640
+ "name": "main"
198641
+ }
198642
+ }
198643
+ }
198644
+ }
198645
+ }
198646
+ },
198647
+ "responses": {
198648
+ "200": {
198649
+ "description": "Response",
198650
+ "content": {
198651
+ "application/json": {
198652
+ "schema": {
198653
+ "title": "Deployment branch policy",
198654
+ "description": "Details of a deployment branch policy.",
198655
+ "type": "object",
198656
+ "properties": {
198657
+ "id": {
198658
+ "description": "The unique identifier of the branch policy.",
198659
+ "type": "integer",
198660
+ "example": 361471
198661
+ },
198662
+ "node_id": {
198663
+ "type": "string",
198664
+ "example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
198665
+ },
198666
+ "name": {
198667
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
198668
+ "type": "string",
198669
+ "example": "release/*"
198670
+ }
198671
+ }
198672
+ },
198673
+ "examples": {
198674
+ "example-wildcard": {
198675
+ "value": {
198676
+ "id": 364662,
198677
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
198678
+ "name": "release/*"
198679
+ }
198680
+ },
198681
+ "example-single-branch": {
198682
+ "value": {
198683
+ "id": 364663,
198684
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
198685
+ "name": "main"
198686
+ }
198687
+ }
198688
+ }
198689
+ }
198690
+ }
198691
+ },
198692
+ "303": {
198693
+ "description": "Response if the same branch name pattern already exists"
198694
+ },
198695
+ "404": {
198696
+ "description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
198697
+ }
198698
+ },
198699
+ "x-github": {
198700
+ "githubCloudOnly": false,
198701
+ "enabledForGitHubApps": true,
198702
+ "category": "deployments",
198703
+ "subcategory": "branch-policies"
198704
+ },
198705
+ "x-octokit": {}
198706
+ }
198707
+ },
198708
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
198709
+ "get": {
198710
+ "summary": "Get a deployment branch policy",
198711
+ "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.",
198712
+ "tags": [
198713
+ "repos"
198714
+ ],
198715
+ "operationId": "repos/get-deployment-branch-policy",
198716
+ "externalDocs": {
198717
+ "description": "API method documentation",
198718
+ "url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/branch-policies#get-deployment-branch-policy"
198719
+ },
198720
+ "parameters": [
198721
+ {
198722
+ "name": "owner",
198723
+ "description": "The account owner of the repository. The name is not case sensitive.",
198724
+ "in": "path",
198725
+ "required": true,
198726
+ "schema": {
198727
+ "type": "string"
198728
+ }
198729
+ },
198730
+ {
198731
+ "name": "repo",
198732
+ "description": "The name of the repository. The name is not case sensitive.",
198733
+ "in": "path",
198734
+ "required": true,
198735
+ "schema": {
198736
+ "type": "string"
198737
+ }
198738
+ },
198739
+ {
198740
+ "name": "environment_name",
198741
+ "in": "path",
198742
+ "required": true,
198743
+ "description": "The name of the environment.",
198744
+ "schema": {
198745
+ "type": "string"
198746
+ }
198747
+ },
198748
+ {
198749
+ "name": "branch_policy_id",
198750
+ "in": "path",
198751
+ "required": true,
198752
+ "description": "The unique identifier of the branch policy.",
198753
+ "schema": {
198754
+ "type": "integer"
198755
+ }
198756
+ }
198757
+ ],
198758
+ "responses": {
198759
+ "200": {
198760
+ "description": "Response",
198761
+ "content": {
198762
+ "application/json": {
198763
+ "schema": {
198764
+ "title": "Deployment branch policy",
198765
+ "description": "Details of a deployment branch policy.",
198766
+ "type": "object",
198767
+ "properties": {
198768
+ "id": {
198769
+ "description": "The unique identifier of the branch policy.",
198770
+ "type": "integer",
198771
+ "example": 361471
198772
+ },
198773
+ "node_id": {
198774
+ "type": "string",
198775
+ "example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
198776
+ },
198777
+ "name": {
198778
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
198779
+ "type": "string",
198780
+ "example": "release/*"
198781
+ }
198782
+ }
198783
+ },
198784
+ "examples": {
198785
+ "default": {
198786
+ "value": {
198787
+ "id": 364662,
198788
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
198789
+ "name": "release/*"
198790
+ }
198791
+ }
198792
+ }
198793
+ }
198794
+ }
198795
+ }
198796
+ },
198797
+ "x-github": {
198798
+ "githubCloudOnly": false,
198799
+ "enabledForGitHubApps": true,
198800
+ "category": "deployments",
198801
+ "subcategory": "branch-policies"
198802
+ },
198803
+ "x-octokit": {}
198804
+ },
198805
+ "put": {
198806
+ "summary": "Update a deployment branch policy",
198807
+ "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.",
198808
+ "tags": [
198809
+ "repos"
198810
+ ],
198811
+ "operationId": "repos/update-deployment-branch-policy",
198812
+ "externalDocs": {
198813
+ "description": "API method documentation",
198814
+ "url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/branch-policies#update-deployment-branch-policy"
198815
+ },
198816
+ "parameters": [
198817
+ {
198818
+ "name": "owner",
198819
+ "description": "The account owner of the repository. The name is not case sensitive.",
198820
+ "in": "path",
198821
+ "required": true,
198822
+ "schema": {
198823
+ "type": "string"
198824
+ }
198825
+ },
198826
+ {
198827
+ "name": "repo",
198828
+ "description": "The name of the repository. The name is not case sensitive.",
198829
+ "in": "path",
198830
+ "required": true,
198831
+ "schema": {
198832
+ "type": "string"
198833
+ }
198834
+ },
198835
+ {
198836
+ "name": "environment_name",
198837
+ "in": "path",
198838
+ "required": true,
198839
+ "description": "The name of the environment.",
198840
+ "schema": {
198841
+ "type": "string"
198842
+ }
198843
+ },
198844
+ {
198845
+ "name": "branch_policy_id",
198846
+ "in": "path",
198847
+ "required": true,
198848
+ "description": "The unique identifier of the branch policy.",
198849
+ "schema": {
198850
+ "type": "integer"
198851
+ }
198852
+ }
198853
+ ],
198854
+ "requestBody": {
198855
+ "required": true,
198856
+ "content": {
198857
+ "application/json": {
198858
+ "schema": {
198859
+ "title": "Deployment branch policy name pattern",
198860
+ "type": "object",
198861
+ "properties": {
198862
+ "name": {
198863
+ "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).",
198864
+ "type": "string",
198865
+ "example": "release/*"
198866
+ }
198867
+ },
198868
+ "required": [
198869
+ "name"
198870
+ ]
198871
+ },
198872
+ "examples": {
198873
+ "default": {
198874
+ "value": {
198875
+ "name": "release/*"
198876
+ }
198877
+ }
198878
+ }
198879
+ }
198880
+ }
198881
+ },
198882
+ "responses": {
198883
+ "200": {
198884
+ "description": "Response",
198885
+ "content": {
198886
+ "application/json": {
198887
+ "schema": {
198888
+ "title": "Deployment branch policy",
198889
+ "description": "Details of a deployment branch policy.",
198890
+ "type": "object",
198891
+ "properties": {
198892
+ "id": {
198893
+ "description": "The unique identifier of the branch policy.",
198894
+ "type": "integer",
198895
+ "example": 361471
198896
+ },
198897
+ "node_id": {
198898
+ "type": "string",
198899
+ "example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
198900
+ },
198901
+ "name": {
198902
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
198903
+ "type": "string",
198904
+ "example": "release/*"
198905
+ }
198906
+ }
198907
+ },
198908
+ "examples": {
198909
+ "default": {
198910
+ "value": {
198911
+ "id": 364662,
198912
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
198913
+ "name": "release/*"
198914
+ }
198915
+ }
198916
+ }
198917
+ }
198918
+ }
198919
+ }
198920
+ },
198921
+ "x-github": {
198922
+ "githubCloudOnly": false,
198923
+ "enabledForGitHubApps": true,
198924
+ "category": "deployments",
198925
+ "subcategory": "branch-policies"
198926
+ },
198927
+ "x-octokit": {}
198928
+ },
198929
+ "delete": {
198930
+ "summary": "Delete a deployment branch policy",
198931
+ "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.",
198932
+ "tags": [
198933
+ "repos"
198934
+ ],
198935
+ "operationId": "repos/delete-deployment-branch-policy",
198936
+ "externalDocs": {
198937
+ "description": "API method documentation",
198938
+ "url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/branch-policies#delete-deployment-branch-policy"
198939
+ },
198940
+ "parameters": [
198941
+ {
198942
+ "name": "owner",
198943
+ "description": "The account owner of the repository. The name is not case sensitive.",
198944
+ "in": "path",
198945
+ "required": true,
198946
+ "schema": {
198947
+ "type": "string"
198948
+ }
198949
+ },
198950
+ {
198951
+ "name": "repo",
198952
+ "description": "The name of the repository. The name is not case sensitive.",
198953
+ "in": "path",
198954
+ "required": true,
198955
+ "schema": {
198956
+ "type": "string"
198957
+ }
198958
+ },
198959
+ {
198960
+ "name": "environment_name",
198961
+ "in": "path",
198962
+ "required": true,
198963
+ "description": "The name of the environment.",
198964
+ "schema": {
198965
+ "type": "string"
198966
+ }
198967
+ },
198968
+ {
198969
+ "name": "branch_policy_id",
198970
+ "in": "path",
198971
+ "required": true,
198972
+ "description": "The unique identifier of the branch policy.",
198973
+ "schema": {
198974
+ "type": "integer"
198975
+ }
198976
+ }
198977
+ ],
198978
+ "responses": {
198979
+ "204": {
198980
+ "description": "Response"
198981
+ }
198982
+ },
198983
+ "x-github": {
198984
+ "githubCloudOnly": false,
198985
+ "enabledForGitHubApps": true,
198986
+ "category": "deployments",
198987
+ "subcategory": "branch-policies"
198988
+ },
198989
+ "x-octokit": {}
198990
+ }
198991
+ },
198417
198992
  "/repos/{owner}/{repo}/events": {
198418
198993
  "get": {
198419
198994
  "summary": "List repository events",
@@ -313946,7 +314521,10 @@
313946
314521
  "type": "object",
313947
314522
  "properties": {
313948
314523
  "type": {
313949
- "type": "string"
314524
+ "type": "string",
314525
+ "enum": [
314526
+ "file"
314527
+ ]
313950
314528
  },
313951
314529
  "encoding": {
313952
314530
  "type": "string"
@@ -314225,7 +314803,10 @@
314225
314803
  "type": "object",
314226
314804
  "properties": {
314227
314805
  "type": {
314228
- "type": "string"
314806
+ "type": "string",
314807
+ "enum": [
314808
+ "file"
314809
+ ]
314229
314810
  },
314230
314811
  "encoding": {
314231
314812
  "type": "string"
@@ -329915,7 +330496,7 @@
329915
330496
  "name": "environment_name",
329916
330497
  "in": "path",
329917
330498
  "required": true,
329918
- "description": "The name of the environment",
330499
+ "description": "The name of the environment.",
329919
330500
  "schema": {
329920
330501
  "type": "string"
329921
330502
  }
@@ -330050,7 +330631,7 @@
330050
330631
  "name": "environment_name",
330051
330632
  "in": "path",
330052
330633
  "required": true,
330053
- "description": "The name of the environment",
330634
+ "description": "The name of the environment.",
330054
330635
  "schema": {
330055
330636
  "type": "string"
330056
330637
  }
@@ -330145,7 +330726,7 @@
330145
330726
  "name": "environment_name",
330146
330727
  "in": "path",
330147
330728
  "required": true,
330148
- "description": "The name of the environment",
330729
+ "description": "The name of the environment.",
330149
330730
  "schema": {
330150
330731
  "type": "string"
330151
330732
  }
@@ -330236,7 +330817,7 @@
330236
330817
  "name": "environment_name",
330237
330818
  "in": "path",
330238
330819
  "required": true,
330239
- "description": "The name of the environment",
330820
+ "description": "The name of the environment.",
330240
330821
  "schema": {
330241
330822
  "type": "string"
330242
330823
  }
@@ -330341,7 +330922,7 @@
330341
330922
  "name": "environment_name",
330342
330923
  "in": "path",
330343
330924
  "required": true,
330344
- "description": "The name of the environment",
330925
+ "description": "The name of the environment.",
330345
330926
  "schema": {
330346
330927
  "type": "string"
330347
330928
  }