@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": {
@@ -81964,13 +81964,6 @@
81964
81964
  "permission": {
81965
81965
  "type": "string",
81966
81966
  "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.",
81967
- "enum": [
81968
- "pull",
81969
- "push",
81970
- "admin",
81971
- "maintain",
81972
- "triage"
81973
- ],
81974
81967
  "default": "push"
81975
81968
  }
81976
81969
  }
@@ -158873,13 +158866,6 @@
158873
158866
  "permission": {
158874
158867
  "type": "string",
158875
158868
  "description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
158876
- "enum": [
158877
- "pull",
158878
- "push",
158879
- "admin",
158880
- "maintain",
158881
- "triage"
158882
- ],
158883
158869
  "default": "push"
158884
158870
  }
158885
158871
  }
@@ -178977,7 +178963,13 @@
178977
178963
  "type": "object",
178978
178964
  "properties": {
178979
178965
  "type": {
178980
- "type": "string"
178966
+ "type": "string",
178967
+ "enum": [
178968
+ "dir",
178969
+ "file",
178970
+ "submodule",
178971
+ "symlink"
178972
+ ]
178981
178973
  },
178982
178974
  "size": {
178983
178975
  "type": "integer"
@@ -179058,7 +179050,10 @@
179058
179050
  "type": "object",
179059
179051
  "properties": {
179060
179052
  "type": {
179061
- "type": "string"
179053
+ "type": "string",
179054
+ "enum": [
179055
+ "file"
179056
+ ]
179062
179057
  },
179063
179058
  "encoding": {
179064
179059
  "type": "string"
@@ -179151,7 +179146,10 @@
179151
179146
  "type": "object",
179152
179147
  "properties": {
179153
179148
  "type": {
179154
- "type": "string"
179149
+ "type": "string",
179150
+ "enum": [
179151
+ "symlink"
179152
+ ]
179155
179153
  },
179156
179154
  "target": {
179157
179155
  "type": "string"
@@ -179227,12 +179225,15 @@
179227
179225
  ]
179228
179226
  },
179229
179227
  {
179230
- "title": "Symlink Content",
179231
- "description": "An object describing a symlink",
179228
+ "title": "Submodule Content",
179229
+ "description": "An object describing a submodule",
179232
179230
  "type": "object",
179233
179231
  "properties": {
179234
179232
  "type": {
179235
- "type": "string"
179233
+ "type": "string",
179234
+ "enum": [
179235
+ "submodule"
179236
+ ]
179236
179237
  },
179237
179238
  "submodule_git_url": {
179238
179239
  "type": "string",
@@ -185078,15 +185079,15 @@
185078
185079
  },
185079
185080
  "/repos/{owner}/{repo}/environments": {
185080
185081
  "get": {
185081
- "summary": "Get all environments",
185082
- "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.",
185082
+ "summary": "List environments",
185083
+ "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.",
185083
185084
  "tags": [
185084
185085
  "repos"
185085
185086
  ],
185086
185087
  "operationId": "repos/get-all-environments",
185087
185088
  "externalDocs": {
185088
185089
  "description": "API method documentation",
185089
- "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#get-all-environments"
185090
+ "url": "https://docs.github.com/github-ae@latest/rest/deployments/environments#list-environments"
185090
185091
  },
185091
185092
  "parameters": [
185092
185093
  {
@@ -185685,7 +185686,7 @@
185685
185686
  "x-github": {
185686
185687
  "githubCloudOnly": false,
185687
185688
  "enabledForGitHubApps": true,
185688
- "category": "repos",
185689
+ "category": "deployments",
185689
185690
  "subcategory": "environments"
185690
185691
  },
185691
185692
  "x-octokit": {}
@@ -185694,7 +185695,7 @@
185694
185695
  "/repos/{owner}/{repo}/environments/{environment_name}": {
185695
185696
  "get": {
185696
185697
  "summary": "Get an environment",
185697
- "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.",
185698
+ "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.",
185698
185699
  "tags": [
185699
185700
  "repos"
185700
185701
  ],
@@ -185726,7 +185727,7 @@
185726
185727
  "name": "environment_name",
185727
185728
  "in": "path",
185728
185729
  "required": true,
185729
- "description": "The name of the environment",
185730
+ "description": "The name of the environment.",
185730
185731
  "schema": {
185731
185732
  "type": "string"
185732
185733
  }
@@ -186280,7 +186281,7 @@
186280
186281
  },
186281
186282
  "put": {
186282
186283
  "summary": "Create or update an environment",
186283
- "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.",
186284
+ "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.",
186284
186285
  "tags": [
186285
186286
  "repos"
186286
186287
  ],
@@ -186312,7 +186313,7 @@
186312
186313
  "name": "environment_name",
186313
186314
  "in": "path",
186314
186315
  "required": true,
186315
- "description": "The name of the environment",
186316
+ "description": "The name of the environment.",
186316
186317
  "schema": {
186317
186318
  "type": "string"
186318
186319
  }
@@ -186376,6 +186377,27 @@
186376
186377
  }
186377
186378
  },
186378
186379
  "additionalProperties": false
186380
+ },
186381
+ "examples": {
186382
+ "default": {
186383
+ "value": {
186384
+ "wait_timer": 30,
186385
+ "reviewers": [
186386
+ {
186387
+ "type": "User",
186388
+ "id": 1
186389
+ },
186390
+ {
186391
+ "type": "Team",
186392
+ "id": 1
186393
+ }
186394
+ ],
186395
+ "deployment_branch_policy": {
186396
+ "protected_branches": false,
186397
+ "custom_branch_policies": true
186398
+ }
186399
+ }
186400
+ }
186379
186401
  }
186380
186402
  }
186381
186403
  }
@@ -186986,7 +187008,7 @@
186986
187008
  "name": "environment_name",
186987
187009
  "in": "path",
186988
187010
  "required": true,
186989
- "description": "The name of the environment",
187011
+ "description": "The name of the environment.",
186990
187012
  "schema": {
186991
187013
  "type": "string"
186992
187014
  }
@@ -187006,6 +187028,559 @@
187006
187028
  "x-octokit": {}
187007
187029
  }
187008
187030
  },
187031
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
187032
+ "get": {
187033
+ "summary": "List deployment branch policies",
187034
+ "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.",
187035
+ "tags": [
187036
+ "repos"
187037
+ ],
187038
+ "operationId": "repos/list-deployment-branch-policies",
187039
+ "externalDocs": {
187040
+ "description": "API method documentation",
187041
+ "url": "https://docs.github.com/github-ae@latest/rest/deployments/branch-policies#list-deployment-branch-policies"
187042
+ },
187043
+ "parameters": [
187044
+ {
187045
+ "name": "owner",
187046
+ "description": "The account owner of the repository. The name is not case sensitive.",
187047
+ "in": "path",
187048
+ "required": true,
187049
+ "schema": {
187050
+ "type": "string"
187051
+ }
187052
+ },
187053
+ {
187054
+ "name": "repo",
187055
+ "description": "The name of the repository. The name is not case sensitive.",
187056
+ "in": "path",
187057
+ "required": true,
187058
+ "schema": {
187059
+ "type": "string"
187060
+ }
187061
+ },
187062
+ {
187063
+ "name": "environment_name",
187064
+ "in": "path",
187065
+ "required": true,
187066
+ "description": "The name of the environment.",
187067
+ "schema": {
187068
+ "type": "string"
187069
+ }
187070
+ },
187071
+ {
187072
+ "name": "per_page",
187073
+ "description": "The number of results per page (max 100).",
187074
+ "in": "query",
187075
+ "schema": {
187076
+ "type": "integer",
187077
+ "default": 30
187078
+ }
187079
+ },
187080
+ {
187081
+ "name": "page",
187082
+ "description": "Page number of the results to fetch.",
187083
+ "in": "query",
187084
+ "schema": {
187085
+ "type": "integer",
187086
+ "default": 1
187087
+ }
187088
+ }
187089
+ ],
187090
+ "responses": {
187091
+ "200": {
187092
+ "description": "Response",
187093
+ "content": {
187094
+ "application/json": {
187095
+ "schema": {
187096
+ "type": "object",
187097
+ "properties": {
187098
+ "total_count": {
187099
+ "description": "The number of deployment branch policies for the environment.",
187100
+ "type": "integer",
187101
+ "example": 2
187102
+ },
187103
+ "branch_policies": {
187104
+ "type": "array",
187105
+ "items": {
187106
+ "title": "Deployment branch policy",
187107
+ "description": "Details of a deployment branch policy.",
187108
+ "type": "object",
187109
+ "properties": {
187110
+ "id": {
187111
+ "description": "The unique identifier of the branch policy.",
187112
+ "type": "integer",
187113
+ "example": 361471
187114
+ },
187115
+ "node_id": {
187116
+ "type": "string",
187117
+ "example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
187118
+ },
187119
+ "name": {
187120
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
187121
+ "type": "string",
187122
+ "example": "release/*"
187123
+ }
187124
+ }
187125
+ }
187126
+ }
187127
+ },
187128
+ "required": [
187129
+ "total_count",
187130
+ "branch_policies"
187131
+ ]
187132
+ },
187133
+ "examples": {
187134
+ "default": {
187135
+ "value": {
187136
+ "total_count": 2,
187137
+ "branch_policies": [
187138
+ {
187139
+ "id": 361471,
187140
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
187141
+ "name": "release/*"
187142
+ },
187143
+ {
187144
+ "id": 361472,
187145
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
187146
+ "name": "main"
187147
+ }
187148
+ ]
187149
+ }
187150
+ }
187151
+ }
187152
+ }
187153
+ }
187154
+ }
187155
+ },
187156
+ "x-github": {
187157
+ "githubCloudOnly": false,
187158
+ "enabledForGitHubApps": true,
187159
+ "category": "deployments",
187160
+ "subcategory": "branch-policies"
187161
+ },
187162
+ "x-octokit": {}
187163
+ },
187164
+ "post": {
187165
+ "summary": "Create a deployment branch policy",
187166
+ "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.",
187167
+ "tags": [
187168
+ "repos"
187169
+ ],
187170
+ "operationId": "repos/create-deployment-branch-policy",
187171
+ "externalDocs": {
187172
+ "description": "API method documentation",
187173
+ "url": "https://docs.github.com/github-ae@latest/rest/deployments/branch-policies#create-deployment-branch-policy"
187174
+ },
187175
+ "parameters": [
187176
+ {
187177
+ "name": "owner",
187178
+ "description": "The account owner of the repository. The name is not case sensitive.",
187179
+ "in": "path",
187180
+ "required": true,
187181
+ "schema": {
187182
+ "type": "string"
187183
+ }
187184
+ },
187185
+ {
187186
+ "name": "repo",
187187
+ "description": "The name of the repository. The name is not case sensitive.",
187188
+ "in": "path",
187189
+ "required": true,
187190
+ "schema": {
187191
+ "type": "string"
187192
+ }
187193
+ },
187194
+ {
187195
+ "name": "environment_name",
187196
+ "in": "path",
187197
+ "required": true,
187198
+ "description": "The name of the environment.",
187199
+ "schema": {
187200
+ "type": "string"
187201
+ }
187202
+ }
187203
+ ],
187204
+ "requestBody": {
187205
+ "required": true,
187206
+ "content": {
187207
+ "application/json": {
187208
+ "schema": {
187209
+ "title": "Deployment branch policy name pattern",
187210
+ "type": "object",
187211
+ "properties": {
187212
+ "name": {
187213
+ "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).",
187214
+ "type": "string",
187215
+ "example": "release/*"
187216
+ }
187217
+ },
187218
+ "required": [
187219
+ "name"
187220
+ ]
187221
+ },
187222
+ "examples": {
187223
+ "example-wildcard": {
187224
+ "summary": "Example of a wildcard name pattern",
187225
+ "value": {
187226
+ "name": "release/*"
187227
+ }
187228
+ },
187229
+ "example-single-branch": {
187230
+ "summary": "Example of a single branch name pattern",
187231
+ "value": {
187232
+ "name": "main"
187233
+ }
187234
+ }
187235
+ }
187236
+ }
187237
+ }
187238
+ },
187239
+ "responses": {
187240
+ "200": {
187241
+ "description": "Response",
187242
+ "content": {
187243
+ "application/json": {
187244
+ "schema": {
187245
+ "title": "Deployment branch policy",
187246
+ "description": "Details of a deployment branch policy.",
187247
+ "type": "object",
187248
+ "properties": {
187249
+ "id": {
187250
+ "description": "The unique identifier of the branch policy.",
187251
+ "type": "integer",
187252
+ "example": 361471
187253
+ },
187254
+ "node_id": {
187255
+ "type": "string",
187256
+ "example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
187257
+ },
187258
+ "name": {
187259
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
187260
+ "type": "string",
187261
+ "example": "release/*"
187262
+ }
187263
+ }
187264
+ },
187265
+ "examples": {
187266
+ "example-wildcard": {
187267
+ "value": {
187268
+ "id": 364662,
187269
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
187270
+ "name": "release/*"
187271
+ }
187272
+ },
187273
+ "example-single-branch": {
187274
+ "value": {
187275
+ "id": 364663,
187276
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
187277
+ "name": "main"
187278
+ }
187279
+ }
187280
+ }
187281
+ }
187282
+ }
187283
+ },
187284
+ "303": {
187285
+ "description": "Response if the same branch name pattern already exists"
187286
+ },
187287
+ "404": {
187288
+ "description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
187289
+ }
187290
+ },
187291
+ "x-github": {
187292
+ "githubCloudOnly": false,
187293
+ "enabledForGitHubApps": true,
187294
+ "category": "deployments",
187295
+ "subcategory": "branch-policies"
187296
+ },
187297
+ "x-octokit": {}
187298
+ }
187299
+ },
187300
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
187301
+ "get": {
187302
+ "summary": "Get a deployment branch policy",
187303
+ "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.",
187304
+ "tags": [
187305
+ "repos"
187306
+ ],
187307
+ "operationId": "repos/get-deployment-branch-policy",
187308
+ "externalDocs": {
187309
+ "description": "API method documentation",
187310
+ "url": "https://docs.github.com/github-ae@latest/rest/deployments/branch-policies#get-deployment-branch-policy"
187311
+ },
187312
+ "parameters": [
187313
+ {
187314
+ "name": "owner",
187315
+ "description": "The account owner of the repository. The name is not case sensitive.",
187316
+ "in": "path",
187317
+ "required": true,
187318
+ "schema": {
187319
+ "type": "string"
187320
+ }
187321
+ },
187322
+ {
187323
+ "name": "repo",
187324
+ "description": "The name of the repository. The name is not case sensitive.",
187325
+ "in": "path",
187326
+ "required": true,
187327
+ "schema": {
187328
+ "type": "string"
187329
+ }
187330
+ },
187331
+ {
187332
+ "name": "environment_name",
187333
+ "in": "path",
187334
+ "required": true,
187335
+ "description": "The name of the environment.",
187336
+ "schema": {
187337
+ "type": "string"
187338
+ }
187339
+ },
187340
+ {
187341
+ "name": "branch_policy_id",
187342
+ "in": "path",
187343
+ "required": true,
187344
+ "description": "The unique identifier of the branch policy.",
187345
+ "schema": {
187346
+ "type": "integer"
187347
+ }
187348
+ }
187349
+ ],
187350
+ "responses": {
187351
+ "200": {
187352
+ "description": "Response",
187353
+ "content": {
187354
+ "application/json": {
187355
+ "schema": {
187356
+ "title": "Deployment branch policy",
187357
+ "description": "Details of a deployment branch policy.",
187358
+ "type": "object",
187359
+ "properties": {
187360
+ "id": {
187361
+ "description": "The unique identifier of the branch policy.",
187362
+ "type": "integer",
187363
+ "example": 361471
187364
+ },
187365
+ "node_id": {
187366
+ "type": "string",
187367
+ "example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
187368
+ },
187369
+ "name": {
187370
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
187371
+ "type": "string",
187372
+ "example": "release/*"
187373
+ }
187374
+ }
187375
+ },
187376
+ "examples": {
187377
+ "default": {
187378
+ "value": {
187379
+ "id": 364662,
187380
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
187381
+ "name": "release/*"
187382
+ }
187383
+ }
187384
+ }
187385
+ }
187386
+ }
187387
+ }
187388
+ },
187389
+ "x-github": {
187390
+ "githubCloudOnly": false,
187391
+ "enabledForGitHubApps": true,
187392
+ "category": "deployments",
187393
+ "subcategory": "branch-policies"
187394
+ },
187395
+ "x-octokit": {}
187396
+ },
187397
+ "put": {
187398
+ "summary": "Update a deployment branch policy",
187399
+ "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.",
187400
+ "tags": [
187401
+ "repos"
187402
+ ],
187403
+ "operationId": "repos/update-deployment-branch-policy",
187404
+ "externalDocs": {
187405
+ "description": "API method documentation",
187406
+ "url": "https://docs.github.com/github-ae@latest/rest/deployments/branch-policies#update-deployment-branch-policy"
187407
+ },
187408
+ "parameters": [
187409
+ {
187410
+ "name": "owner",
187411
+ "description": "The account owner of the repository. The name is not case sensitive.",
187412
+ "in": "path",
187413
+ "required": true,
187414
+ "schema": {
187415
+ "type": "string"
187416
+ }
187417
+ },
187418
+ {
187419
+ "name": "repo",
187420
+ "description": "The name of the repository. The name is not case sensitive.",
187421
+ "in": "path",
187422
+ "required": true,
187423
+ "schema": {
187424
+ "type": "string"
187425
+ }
187426
+ },
187427
+ {
187428
+ "name": "environment_name",
187429
+ "in": "path",
187430
+ "required": true,
187431
+ "description": "The name of the environment.",
187432
+ "schema": {
187433
+ "type": "string"
187434
+ }
187435
+ },
187436
+ {
187437
+ "name": "branch_policy_id",
187438
+ "in": "path",
187439
+ "required": true,
187440
+ "description": "The unique identifier of the branch policy.",
187441
+ "schema": {
187442
+ "type": "integer"
187443
+ }
187444
+ }
187445
+ ],
187446
+ "requestBody": {
187447
+ "required": true,
187448
+ "content": {
187449
+ "application/json": {
187450
+ "schema": {
187451
+ "title": "Deployment branch policy name pattern",
187452
+ "type": "object",
187453
+ "properties": {
187454
+ "name": {
187455
+ "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).",
187456
+ "type": "string",
187457
+ "example": "release/*"
187458
+ }
187459
+ },
187460
+ "required": [
187461
+ "name"
187462
+ ]
187463
+ },
187464
+ "examples": {
187465
+ "default": {
187466
+ "value": {
187467
+ "name": "release/*"
187468
+ }
187469
+ }
187470
+ }
187471
+ }
187472
+ }
187473
+ },
187474
+ "responses": {
187475
+ "200": {
187476
+ "description": "Response",
187477
+ "content": {
187478
+ "application/json": {
187479
+ "schema": {
187480
+ "title": "Deployment branch policy",
187481
+ "description": "Details of a deployment branch policy.",
187482
+ "type": "object",
187483
+ "properties": {
187484
+ "id": {
187485
+ "description": "The unique identifier of the branch policy.",
187486
+ "type": "integer",
187487
+ "example": 361471
187488
+ },
187489
+ "node_id": {
187490
+ "type": "string",
187491
+ "example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
187492
+ },
187493
+ "name": {
187494
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
187495
+ "type": "string",
187496
+ "example": "release/*"
187497
+ }
187498
+ }
187499
+ },
187500
+ "examples": {
187501
+ "default": {
187502
+ "value": {
187503
+ "id": 364662,
187504
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
187505
+ "name": "release/*"
187506
+ }
187507
+ }
187508
+ }
187509
+ }
187510
+ }
187511
+ }
187512
+ },
187513
+ "x-github": {
187514
+ "githubCloudOnly": false,
187515
+ "enabledForGitHubApps": true,
187516
+ "category": "deployments",
187517
+ "subcategory": "branch-policies"
187518
+ },
187519
+ "x-octokit": {}
187520
+ },
187521
+ "delete": {
187522
+ "summary": "Delete a deployment branch policy",
187523
+ "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.",
187524
+ "tags": [
187525
+ "repos"
187526
+ ],
187527
+ "operationId": "repos/delete-deployment-branch-policy",
187528
+ "externalDocs": {
187529
+ "description": "API method documentation",
187530
+ "url": "https://docs.github.com/github-ae@latest/rest/deployments/branch-policies#delete-deployment-branch-policy"
187531
+ },
187532
+ "parameters": [
187533
+ {
187534
+ "name": "owner",
187535
+ "description": "The account owner of the repository. The name is not case sensitive.",
187536
+ "in": "path",
187537
+ "required": true,
187538
+ "schema": {
187539
+ "type": "string"
187540
+ }
187541
+ },
187542
+ {
187543
+ "name": "repo",
187544
+ "description": "The name of the repository. The name is not case sensitive.",
187545
+ "in": "path",
187546
+ "required": true,
187547
+ "schema": {
187548
+ "type": "string"
187549
+ }
187550
+ },
187551
+ {
187552
+ "name": "environment_name",
187553
+ "in": "path",
187554
+ "required": true,
187555
+ "description": "The name of the environment.",
187556
+ "schema": {
187557
+ "type": "string"
187558
+ }
187559
+ },
187560
+ {
187561
+ "name": "branch_policy_id",
187562
+ "in": "path",
187563
+ "required": true,
187564
+ "description": "The unique identifier of the branch policy.",
187565
+ "schema": {
187566
+ "type": "integer"
187567
+ }
187568
+ }
187569
+ ],
187570
+ "responses": {
187571
+ "204": {
187572
+ "description": "Response"
187573
+ }
187574
+ },
187575
+ "x-github": {
187576
+ "githubCloudOnly": false,
187577
+ "enabledForGitHubApps": true,
187578
+ "category": "deployments",
187579
+ "subcategory": "branch-policies"
187580
+ },
187581
+ "x-octokit": {}
187582
+ }
187583
+ },
187009
187584
  "/repos/{owner}/{repo}/events": {
187010
187585
  "get": {
187011
187586
  "summary": "List repository events",
@@ -302423,7 +302998,10 @@
302423
302998
  "type": "object",
302424
302999
  "properties": {
302425
303000
  "type": {
302426
- "type": "string"
303001
+ "type": "string",
303002
+ "enum": [
303003
+ "file"
303004
+ ]
302427
303005
  },
302428
303006
  "encoding": {
302429
303007
  "type": "string"
@@ -302702,7 +303280,10 @@
302702
303280
  "type": "object",
302703
303281
  "properties": {
302704
303282
  "type": {
302705
- "type": "string"
303283
+ "type": "string",
303284
+ "enum": [
303285
+ "file"
303286
+ ]
302706
303287
  },
302707
303288
  "encoding": {
302708
303289
  "type": "string"