@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.
- package/generated/api.github.com.deref.json +831 -48
- package/generated/api.github.com.json +456 -36
- package/generated/ghes-3.2-diff-to-api.github.com.deref.json +1 -1
- package/generated/ghes-3.2-diff-to-api.github.com.json +1 -1
- package/generated/ghes-3.2-diff-to-ghes-3.3.deref.json +1 -8
- package/generated/ghes-3.2-diff-to-ghes-3.3.json +1 -8
- package/generated/ghes-3.2.deref.json +618 -37
- package/generated/ghes-3.2.json +437 -31
- package/generated/ghes-3.3-diff-to-ghes-3.4.deref.json +1 -1
- package/generated/ghes-3.3-diff-to-ghes-3.4.json +1 -1
- package/generated/ghes-3.3.deref.json +618 -37
- package/generated/ghes-3.3.json +437 -31
- package/generated/ghes-3.4-diff-to-ghes-3.5.deref.json +1 -8
- package/generated/ghes-3.4-diff-to-ghes-3.5.json +1 -8
- package/generated/ghes-3.4.deref.json +618 -37
- package/generated/ghes-3.4.json +437 -31
- package/generated/ghes-3.5-diff-to-api.github.com.deref.json +1 -1
- package/generated/ghes-3.5-diff-to-api.github.com.json +1 -1
- package/generated/ghes-3.5-diff-to-ghes-3.6.deref.json +1 -8
- package/generated/ghes-3.5-diff-to-ghes-3.6.json +1 -8
- package/generated/ghes-3.5.deref.json +620 -39
- package/generated/ghes-3.5.json +439 -33
- package/generated/ghes-3.6-anicca-diff-to-api.github.com.deref.json +0 -56
- package/generated/ghes-3.6-diff-to-api.github.com.deref.json +1 -164
- package/generated/ghes-3.6-diff-to-api.github.com.json +1 -130
- package/generated/ghes-3.6.deref.json +622 -53
- package/generated/ghes-3.6.json +441 -47
- package/generated/github.ae-diff-to-api.github.com.deref.json +1 -8
- package/generated/github.ae-diff-to-api.github.com.json +1 -8
- package/generated/github.ae.deref.json +613 -32
- package/generated/github.ae.json +437 -31
- package/index.js +2 -0
- package/package.json +1 -1
package/generated/github.ae.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "7.
|
|
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": {
|
|
@@ -13766,13 +13766,6 @@
|
|
|
13766
13766
|
"permission": {
|
|
13767
13767
|
"type": "string",
|
|
13768
13768
|
"description": "The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
|
|
13769
|
-
"enum": [
|
|
13770
|
-
"pull",
|
|
13771
|
-
"push",
|
|
13772
|
-
"admin",
|
|
13773
|
-
"maintain",
|
|
13774
|
-
"triage"
|
|
13775
|
-
],
|
|
13776
13769
|
"default": "push"
|
|
13777
13770
|
}
|
|
13778
13771
|
}
|
|
@@ -23261,13 +23254,6 @@
|
|
|
23261
23254
|
"permission": {
|
|
23262
23255
|
"type": "string",
|
|
23263
23256
|
"description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
|
|
23264
|
-
"enum": [
|
|
23265
|
-
"pull",
|
|
23266
|
-
"push",
|
|
23267
|
-
"admin",
|
|
23268
|
-
"maintain",
|
|
23269
|
-
"triage"
|
|
23270
|
-
],
|
|
23271
23257
|
"default": "push"
|
|
23272
23258
|
}
|
|
23273
23259
|
}
|
|
@@ -25966,15 +25952,15 @@
|
|
|
25966
25952
|
},
|
|
25967
25953
|
"/repos/{owner}/{repo}/environments": {
|
|
25968
25954
|
"get": {
|
|
25969
|
-
"summary": "
|
|
25970
|
-
"description": "
|
|
25955
|
+
"summary": "List environments",
|
|
25956
|
+
"description": "Lists the environments for a repository.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
|
|
25971
25957
|
"tags": [
|
|
25972
25958
|
"repos"
|
|
25973
25959
|
],
|
|
25974
25960
|
"operationId": "repos/get-all-environments",
|
|
25975
25961
|
"externalDocs": {
|
|
25976
25962
|
"description": "API method documentation",
|
|
25977
|
-
"url": "https://docs.github.com/github-ae@latest/rest/
|
|
25963
|
+
"url": "https://docs.github.com/github-ae@latest/rest/deployments/environments#list-environments"
|
|
25978
25964
|
},
|
|
25979
25965
|
"parameters": [
|
|
25980
25966
|
{
|
|
@@ -26023,7 +26009,7 @@
|
|
|
26023
26009
|
"x-github": {
|
|
26024
26010
|
"githubCloudOnly": false,
|
|
26025
26011
|
"enabledForGitHubApps": true,
|
|
26026
|
-
"category": "
|
|
26012
|
+
"category": "deployments",
|
|
26027
26013
|
"subcategory": "environments"
|
|
26028
26014
|
},
|
|
26029
26015
|
"x-octokit": {}
|
|
@@ -26032,7 +26018,7 @@
|
|
|
26032
26018
|
"/repos/{owner}/{repo}/environments/{environment_name}": {
|
|
26033
26019
|
"get": {
|
|
26034
26020
|
"summary": "Get an environment",
|
|
26035
|
-
"description": "
|
|
26021
|
+
"description": "**Note:** To get information about name patterns that branches must match in order to deploy to this environment, see \"[Get a deployment branch policy](/rest/deployments/branch-policies#get-a-deployment-branch-policy).\"\n\nAnyone with read access to the repository can use this endpoint. If the\nrepository is private, you must use an access token with the `repo` scope. GitHub\nApps must have the `actions:read` permission to use this endpoint.",
|
|
26036
26022
|
"tags": [
|
|
26037
26023
|
"repos"
|
|
26038
26024
|
],
|
|
@@ -26079,7 +26065,7 @@
|
|
|
26079
26065
|
},
|
|
26080
26066
|
"put": {
|
|
26081
26067
|
"summary": "Create or update an environment",
|
|
26082
|
-
"description": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"[Environments](/actions/reference/environments#environment-protection-rules).\"\n\n**Note:**
|
|
26068
|
+
"description": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"[Environments](/actions/reference/environments#environment-protection-rules).\"\n\n**Note:** To create or update name patterns that branches must match in order to deploy to this environment, see \"[Deployment branch policies](/rest/deployments/branch-policies).\"\n\n**Note:** To create or update secrets for an environment, see \"[Secrets](/rest/reference/actions#secrets).\"\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration:write` permission for the repository to use this endpoint.",
|
|
26083
26069
|
"tags": [
|
|
26084
26070
|
"repos"
|
|
26085
26071
|
],
|
|
@@ -26129,10 +26115,31 @@
|
|
|
26129
26115
|
}
|
|
26130
26116
|
},
|
|
26131
26117
|
"deployment_branch_policy": {
|
|
26132
|
-
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
26118
|
+
"$ref": "#/components/schemas/deployment-branch-policy-settings"
|
|
26133
26119
|
}
|
|
26134
26120
|
},
|
|
26135
26121
|
"additionalProperties": false
|
|
26122
|
+
},
|
|
26123
|
+
"examples": {
|
|
26124
|
+
"default": {
|
|
26125
|
+
"value": {
|
|
26126
|
+
"wait_timer": 30,
|
|
26127
|
+
"reviewers": [
|
|
26128
|
+
{
|
|
26129
|
+
"type": "User",
|
|
26130
|
+
"id": 1
|
|
26131
|
+
},
|
|
26132
|
+
{
|
|
26133
|
+
"type": "Team",
|
|
26134
|
+
"id": 1
|
|
26135
|
+
}
|
|
26136
|
+
],
|
|
26137
|
+
"deployment_branch_policy": {
|
|
26138
|
+
"protected_branches": false,
|
|
26139
|
+
"custom_branch_policies": true
|
|
26140
|
+
}
|
|
26141
|
+
}
|
|
26142
|
+
}
|
|
26136
26143
|
}
|
|
26137
26144
|
}
|
|
26138
26145
|
}
|
|
@@ -26208,6 +26215,315 @@
|
|
|
26208
26215
|
"x-octokit": {}
|
|
26209
26216
|
}
|
|
26210
26217
|
},
|
|
26218
|
+
"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
|
|
26219
|
+
"get": {
|
|
26220
|
+
"summary": "List deployment branch policies",
|
|
26221
|
+
"description": "Lists the deployment branch policies for an environment.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
|
|
26222
|
+
"tags": [
|
|
26223
|
+
"repos"
|
|
26224
|
+
],
|
|
26225
|
+
"operationId": "repos/list-deployment-branch-policies",
|
|
26226
|
+
"externalDocs": {
|
|
26227
|
+
"description": "API method documentation",
|
|
26228
|
+
"url": "https://docs.github.com/github-ae@latest/rest/deployments/branch-policies#list-deployment-branch-policies"
|
|
26229
|
+
},
|
|
26230
|
+
"parameters": [
|
|
26231
|
+
{
|
|
26232
|
+
"$ref": "#/components/parameters/owner"
|
|
26233
|
+
},
|
|
26234
|
+
{
|
|
26235
|
+
"$ref": "#/components/parameters/repo"
|
|
26236
|
+
},
|
|
26237
|
+
{
|
|
26238
|
+
"$ref": "#/components/parameters/environment-name"
|
|
26239
|
+
},
|
|
26240
|
+
{
|
|
26241
|
+
"$ref": "#/components/parameters/per-page"
|
|
26242
|
+
},
|
|
26243
|
+
{
|
|
26244
|
+
"$ref": "#/components/parameters/page"
|
|
26245
|
+
}
|
|
26246
|
+
],
|
|
26247
|
+
"responses": {
|
|
26248
|
+
"200": {
|
|
26249
|
+
"description": "Response",
|
|
26250
|
+
"content": {
|
|
26251
|
+
"application/json": {
|
|
26252
|
+
"schema": {
|
|
26253
|
+
"type": "object",
|
|
26254
|
+
"properties": {
|
|
26255
|
+
"total_count": {
|
|
26256
|
+
"description": "The number of deployment branch policies for the environment.",
|
|
26257
|
+
"type": "integer",
|
|
26258
|
+
"example": 2
|
|
26259
|
+
},
|
|
26260
|
+
"branch_policies": {
|
|
26261
|
+
"type": "array",
|
|
26262
|
+
"items": {
|
|
26263
|
+
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
26264
|
+
}
|
|
26265
|
+
}
|
|
26266
|
+
},
|
|
26267
|
+
"required": [
|
|
26268
|
+
"total_count",
|
|
26269
|
+
"branch_policies"
|
|
26270
|
+
]
|
|
26271
|
+
},
|
|
26272
|
+
"examples": {
|
|
26273
|
+
"default": {
|
|
26274
|
+
"$ref": "#/components/examples/deployment-branch-policies-list"
|
|
26275
|
+
}
|
|
26276
|
+
}
|
|
26277
|
+
}
|
|
26278
|
+
}
|
|
26279
|
+
}
|
|
26280
|
+
},
|
|
26281
|
+
"x-github": {
|
|
26282
|
+
"githubCloudOnly": false,
|
|
26283
|
+
"enabledForGitHubApps": true,
|
|
26284
|
+
"category": "deployments",
|
|
26285
|
+
"subcategory": "branch-policies"
|
|
26286
|
+
},
|
|
26287
|
+
"x-octokit": {}
|
|
26288
|
+
},
|
|
26289
|
+
"post": {
|
|
26290
|
+
"summary": "Create a deployment branch policy",
|
|
26291
|
+
"description": "Creates a deployment branch policy for an environment.\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration:write` permission for the repository to use this endpoint.",
|
|
26292
|
+
"tags": [
|
|
26293
|
+
"repos"
|
|
26294
|
+
],
|
|
26295
|
+
"operationId": "repos/create-deployment-branch-policy",
|
|
26296
|
+
"externalDocs": {
|
|
26297
|
+
"description": "API method documentation",
|
|
26298
|
+
"url": "https://docs.github.com/github-ae@latest/rest/deployments/branch-policies#create-deployment-branch-policy"
|
|
26299
|
+
},
|
|
26300
|
+
"parameters": [
|
|
26301
|
+
{
|
|
26302
|
+
"$ref": "#/components/parameters/owner"
|
|
26303
|
+
},
|
|
26304
|
+
{
|
|
26305
|
+
"$ref": "#/components/parameters/repo"
|
|
26306
|
+
},
|
|
26307
|
+
{
|
|
26308
|
+
"$ref": "#/components/parameters/environment-name"
|
|
26309
|
+
}
|
|
26310
|
+
],
|
|
26311
|
+
"requestBody": {
|
|
26312
|
+
"required": true,
|
|
26313
|
+
"content": {
|
|
26314
|
+
"application/json": {
|
|
26315
|
+
"schema": {
|
|
26316
|
+
"$ref": "#/components/schemas/deployment-branch-policy-name-pattern"
|
|
26317
|
+
},
|
|
26318
|
+
"examples": {
|
|
26319
|
+
"example-wildcard": {
|
|
26320
|
+
"summary": "Example of a wildcard name pattern",
|
|
26321
|
+
"value": {
|
|
26322
|
+
"name": "release/*"
|
|
26323
|
+
}
|
|
26324
|
+
},
|
|
26325
|
+
"example-single-branch": {
|
|
26326
|
+
"summary": "Example of a single branch name pattern",
|
|
26327
|
+
"value": {
|
|
26328
|
+
"name": "main"
|
|
26329
|
+
}
|
|
26330
|
+
}
|
|
26331
|
+
}
|
|
26332
|
+
}
|
|
26333
|
+
}
|
|
26334
|
+
},
|
|
26335
|
+
"responses": {
|
|
26336
|
+
"200": {
|
|
26337
|
+
"description": "Response",
|
|
26338
|
+
"content": {
|
|
26339
|
+
"application/json": {
|
|
26340
|
+
"schema": {
|
|
26341
|
+
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
26342
|
+
},
|
|
26343
|
+
"examples": {
|
|
26344
|
+
"example-wildcard": {
|
|
26345
|
+
"$ref": "#/components/examples/deployment-branch-policy-wildcard"
|
|
26346
|
+
},
|
|
26347
|
+
"example-single-branch": {
|
|
26348
|
+
"$ref": "#/components/examples/deployment-branch-policy-single-branch"
|
|
26349
|
+
}
|
|
26350
|
+
}
|
|
26351
|
+
}
|
|
26352
|
+
}
|
|
26353
|
+
},
|
|
26354
|
+
"303": {
|
|
26355
|
+
"description": "Response if the same branch name pattern already exists"
|
|
26356
|
+
},
|
|
26357
|
+
"404": {
|
|
26358
|
+
"description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
|
|
26359
|
+
}
|
|
26360
|
+
},
|
|
26361
|
+
"x-github": {
|
|
26362
|
+
"githubCloudOnly": false,
|
|
26363
|
+
"enabledForGitHubApps": true,
|
|
26364
|
+
"category": "deployments",
|
|
26365
|
+
"subcategory": "branch-policies"
|
|
26366
|
+
},
|
|
26367
|
+
"x-octokit": {}
|
|
26368
|
+
}
|
|
26369
|
+
},
|
|
26370
|
+
"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
|
|
26371
|
+
"get": {
|
|
26372
|
+
"summary": "Get a deployment branch policy",
|
|
26373
|
+
"description": "Gets a deployment branch policy for an environment.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
|
|
26374
|
+
"tags": [
|
|
26375
|
+
"repos"
|
|
26376
|
+
],
|
|
26377
|
+
"operationId": "repos/get-deployment-branch-policy",
|
|
26378
|
+
"externalDocs": {
|
|
26379
|
+
"description": "API method documentation",
|
|
26380
|
+
"url": "https://docs.github.com/github-ae@latest/rest/deployments/branch-policies#get-deployment-branch-policy"
|
|
26381
|
+
},
|
|
26382
|
+
"parameters": [
|
|
26383
|
+
{
|
|
26384
|
+
"$ref": "#/components/parameters/owner"
|
|
26385
|
+
},
|
|
26386
|
+
{
|
|
26387
|
+
"$ref": "#/components/parameters/repo"
|
|
26388
|
+
},
|
|
26389
|
+
{
|
|
26390
|
+
"$ref": "#/components/parameters/environment-name"
|
|
26391
|
+
},
|
|
26392
|
+
{
|
|
26393
|
+
"$ref": "#/components/parameters/branch-policy-id"
|
|
26394
|
+
}
|
|
26395
|
+
],
|
|
26396
|
+
"responses": {
|
|
26397
|
+
"200": {
|
|
26398
|
+
"description": "Response",
|
|
26399
|
+
"content": {
|
|
26400
|
+
"application/json": {
|
|
26401
|
+
"schema": {
|
|
26402
|
+
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
26403
|
+
},
|
|
26404
|
+
"examples": {
|
|
26405
|
+
"default": {
|
|
26406
|
+
"$ref": "#/components/examples/deployment-branch-policy-wildcard"
|
|
26407
|
+
}
|
|
26408
|
+
}
|
|
26409
|
+
}
|
|
26410
|
+
}
|
|
26411
|
+
}
|
|
26412
|
+
},
|
|
26413
|
+
"x-github": {
|
|
26414
|
+
"githubCloudOnly": false,
|
|
26415
|
+
"enabledForGitHubApps": true,
|
|
26416
|
+
"category": "deployments",
|
|
26417
|
+
"subcategory": "branch-policies"
|
|
26418
|
+
},
|
|
26419
|
+
"x-octokit": {}
|
|
26420
|
+
},
|
|
26421
|
+
"put": {
|
|
26422
|
+
"summary": "Update a deployment branch policy",
|
|
26423
|
+
"description": "Updates a deployment branch policy for an environment.\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration:write` permission for the repository to use this endpoint.",
|
|
26424
|
+
"tags": [
|
|
26425
|
+
"repos"
|
|
26426
|
+
],
|
|
26427
|
+
"operationId": "repos/update-deployment-branch-policy",
|
|
26428
|
+
"externalDocs": {
|
|
26429
|
+
"description": "API method documentation",
|
|
26430
|
+
"url": "https://docs.github.com/github-ae@latest/rest/deployments/branch-policies#update-deployment-branch-policy"
|
|
26431
|
+
},
|
|
26432
|
+
"parameters": [
|
|
26433
|
+
{
|
|
26434
|
+
"$ref": "#/components/parameters/owner"
|
|
26435
|
+
},
|
|
26436
|
+
{
|
|
26437
|
+
"$ref": "#/components/parameters/repo"
|
|
26438
|
+
},
|
|
26439
|
+
{
|
|
26440
|
+
"$ref": "#/components/parameters/environment-name"
|
|
26441
|
+
},
|
|
26442
|
+
{
|
|
26443
|
+
"$ref": "#/components/parameters/branch-policy-id"
|
|
26444
|
+
}
|
|
26445
|
+
],
|
|
26446
|
+
"requestBody": {
|
|
26447
|
+
"required": true,
|
|
26448
|
+
"content": {
|
|
26449
|
+
"application/json": {
|
|
26450
|
+
"schema": {
|
|
26451
|
+
"$ref": "#/components/schemas/deployment-branch-policy-name-pattern"
|
|
26452
|
+
},
|
|
26453
|
+
"examples": {
|
|
26454
|
+
"default": {
|
|
26455
|
+
"value": {
|
|
26456
|
+
"name": "release/*"
|
|
26457
|
+
}
|
|
26458
|
+
}
|
|
26459
|
+
}
|
|
26460
|
+
}
|
|
26461
|
+
}
|
|
26462
|
+
},
|
|
26463
|
+
"responses": {
|
|
26464
|
+
"200": {
|
|
26465
|
+
"description": "Response",
|
|
26466
|
+
"content": {
|
|
26467
|
+
"application/json": {
|
|
26468
|
+
"schema": {
|
|
26469
|
+
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
26470
|
+
},
|
|
26471
|
+
"examples": {
|
|
26472
|
+
"default": {
|
|
26473
|
+
"$ref": "#/components/examples/deployment-branch-policy-wildcard"
|
|
26474
|
+
}
|
|
26475
|
+
}
|
|
26476
|
+
}
|
|
26477
|
+
}
|
|
26478
|
+
}
|
|
26479
|
+
},
|
|
26480
|
+
"x-github": {
|
|
26481
|
+
"githubCloudOnly": false,
|
|
26482
|
+
"enabledForGitHubApps": true,
|
|
26483
|
+
"category": "deployments",
|
|
26484
|
+
"subcategory": "branch-policies"
|
|
26485
|
+
},
|
|
26486
|
+
"x-octokit": {}
|
|
26487
|
+
},
|
|
26488
|
+
"delete": {
|
|
26489
|
+
"summary": "Delete a deployment branch policy",
|
|
26490
|
+
"description": "Deletes a deployment branch policy for an environment.\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration:write` permission for the repository to use this endpoint.",
|
|
26491
|
+
"tags": [
|
|
26492
|
+
"repos"
|
|
26493
|
+
],
|
|
26494
|
+
"operationId": "repos/delete-deployment-branch-policy",
|
|
26495
|
+
"externalDocs": {
|
|
26496
|
+
"description": "API method documentation",
|
|
26497
|
+
"url": "https://docs.github.com/github-ae@latest/rest/deployments/branch-policies#delete-deployment-branch-policy"
|
|
26498
|
+
},
|
|
26499
|
+
"parameters": [
|
|
26500
|
+
{
|
|
26501
|
+
"$ref": "#/components/parameters/owner"
|
|
26502
|
+
},
|
|
26503
|
+
{
|
|
26504
|
+
"$ref": "#/components/parameters/repo"
|
|
26505
|
+
},
|
|
26506
|
+
{
|
|
26507
|
+
"$ref": "#/components/parameters/environment-name"
|
|
26508
|
+
},
|
|
26509
|
+
{
|
|
26510
|
+
"$ref": "#/components/parameters/branch-policy-id"
|
|
26511
|
+
}
|
|
26512
|
+
],
|
|
26513
|
+
"responses": {
|
|
26514
|
+
"204": {
|
|
26515
|
+
"description": "Response"
|
|
26516
|
+
}
|
|
26517
|
+
},
|
|
26518
|
+
"x-github": {
|
|
26519
|
+
"githubCloudOnly": false,
|
|
26520
|
+
"enabledForGitHubApps": true,
|
|
26521
|
+
"category": "deployments",
|
|
26522
|
+
"subcategory": "branch-policies"
|
|
26523
|
+
},
|
|
26524
|
+
"x-octokit": {}
|
|
26525
|
+
}
|
|
26526
|
+
},
|
|
26211
26527
|
"/repos/{owner}/{repo}/events": {
|
|
26212
26528
|
"get": {
|
|
26213
26529
|
"summary": "List repository events",
|
|
@@ -64832,7 +65148,13 @@
|
|
|
64832
65148
|
"type": "object",
|
|
64833
65149
|
"properties": {
|
|
64834
65150
|
"type": {
|
|
64835
|
-
"type": "string"
|
|
65151
|
+
"type": "string",
|
|
65152
|
+
"enum": [
|
|
65153
|
+
"dir",
|
|
65154
|
+
"file",
|
|
65155
|
+
"submodule",
|
|
65156
|
+
"symlink"
|
|
65157
|
+
]
|
|
64836
65158
|
},
|
|
64837
65159
|
"size": {
|
|
64838
65160
|
"type": "integer"
|
|
@@ -64913,7 +65235,10 @@
|
|
|
64913
65235
|
"type": "object",
|
|
64914
65236
|
"properties": {
|
|
64915
65237
|
"type": {
|
|
64916
|
-
"type": "string"
|
|
65238
|
+
"type": "string",
|
|
65239
|
+
"enum": [
|
|
65240
|
+
"file"
|
|
65241
|
+
]
|
|
64917
65242
|
},
|
|
64918
65243
|
"encoding": {
|
|
64919
65244
|
"type": "string"
|
|
@@ -65006,7 +65331,10 @@
|
|
|
65006
65331
|
"type": "object",
|
|
65007
65332
|
"properties": {
|
|
65008
65333
|
"type": {
|
|
65009
|
-
"type": "string"
|
|
65334
|
+
"type": "string",
|
|
65335
|
+
"enum": [
|
|
65336
|
+
"symlink"
|
|
65337
|
+
]
|
|
65010
65338
|
},
|
|
65011
65339
|
"target": {
|
|
65012
65340
|
"type": "string"
|
|
@@ -65082,12 +65410,15 @@
|
|
|
65082
65410
|
]
|
|
65083
65411
|
},
|
|
65084
65412
|
"content-submodule": {
|
|
65085
|
-
"title": "
|
|
65086
|
-
"description": "An object describing a
|
|
65413
|
+
"title": "Submodule Content",
|
|
65414
|
+
"description": "An object describing a submodule",
|
|
65087
65415
|
"type": "object",
|
|
65088
65416
|
"properties": {
|
|
65089
65417
|
"type": {
|
|
65090
|
-
"type": "string"
|
|
65418
|
+
"type": "string",
|
|
65419
|
+
"enum": [
|
|
65420
|
+
"submodule"
|
|
65421
|
+
]
|
|
65091
65422
|
},
|
|
65092
65423
|
"submodule_git_url": {
|
|
65093
65424
|
"type": "string",
|
|
@@ -65632,7 +65963,7 @@
|
|
|
65632
65963
|
],
|
|
65633
65964
|
"example": "User"
|
|
65634
65965
|
},
|
|
65635
|
-
"deployment-branch-policy": {
|
|
65966
|
+
"deployment-branch-policy-settings": {
|
|
65636
65967
|
"type": "object",
|
|
65637
65968
|
"description": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.",
|
|
65638
65969
|
"properties": {
|
|
@@ -65789,7 +66120,7 @@
|
|
|
65789
66120
|
}
|
|
65790
66121
|
},
|
|
65791
66122
|
"deployment_branch_policy": {
|
|
65792
|
-
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
66123
|
+
"$ref": "#/components/schemas/deployment-branch-policy-settings"
|
|
65793
66124
|
}
|
|
65794
66125
|
},
|
|
65795
66126
|
"required": [
|
|
@@ -65802,6 +66133,41 @@
|
|
|
65802
66133
|
"updated_at"
|
|
65803
66134
|
]
|
|
65804
66135
|
},
|
|
66136
|
+
"deployment-branch-policy": {
|
|
66137
|
+
"title": "Deployment branch policy",
|
|
66138
|
+
"description": "Details of a deployment branch policy.",
|
|
66139
|
+
"type": "object",
|
|
66140
|
+
"properties": {
|
|
66141
|
+
"id": {
|
|
66142
|
+
"description": "The unique identifier of the branch policy.",
|
|
66143
|
+
"type": "integer",
|
|
66144
|
+
"example": 361471
|
|
66145
|
+
},
|
|
66146
|
+
"node_id": {
|
|
66147
|
+
"type": "string",
|
|
66148
|
+
"example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
|
|
66149
|
+
},
|
|
66150
|
+
"name": {
|
|
66151
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.",
|
|
66152
|
+
"type": "string",
|
|
66153
|
+
"example": "release/*"
|
|
66154
|
+
}
|
|
66155
|
+
}
|
|
66156
|
+
},
|
|
66157
|
+
"deployment-branch-policy-name-pattern": {
|
|
66158
|
+
"title": "Deployment branch policy name pattern",
|
|
66159
|
+
"type": "object",
|
|
66160
|
+
"properties": {
|
|
66161
|
+
"name": {
|
|
66162
|
+
"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).",
|
|
66163
|
+
"type": "string",
|
|
66164
|
+
"example": "release/*"
|
|
66165
|
+
}
|
|
66166
|
+
},
|
|
66167
|
+
"required": [
|
|
66168
|
+
"name"
|
|
66169
|
+
]
|
|
66170
|
+
},
|
|
65805
66171
|
"actor": {
|
|
65806
66172
|
"title": "Actor",
|
|
65807
66173
|
"description": "Actor",
|
|
@@ -86338,6 +86704,37 @@
|
|
|
86338
86704
|
}
|
|
86339
86705
|
}
|
|
86340
86706
|
},
|
|
86707
|
+
"deployment-branch-policies-list": {
|
|
86708
|
+
"value": {
|
|
86709
|
+
"total_count": 2,
|
|
86710
|
+
"branch_policies": [
|
|
86711
|
+
{
|
|
86712
|
+
"id": 361471,
|
|
86713
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
|
|
86714
|
+
"name": "release/*"
|
|
86715
|
+
},
|
|
86716
|
+
{
|
|
86717
|
+
"id": 361472,
|
|
86718
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
|
|
86719
|
+
"name": "main"
|
|
86720
|
+
}
|
|
86721
|
+
]
|
|
86722
|
+
}
|
|
86723
|
+
},
|
|
86724
|
+
"deployment-branch-policy-wildcard": {
|
|
86725
|
+
"value": {
|
|
86726
|
+
"id": 364662,
|
|
86727
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
|
|
86728
|
+
"name": "release/*"
|
|
86729
|
+
}
|
|
86730
|
+
},
|
|
86731
|
+
"deployment-branch-policy-single-branch": {
|
|
86732
|
+
"value": {
|
|
86733
|
+
"id": 364663,
|
|
86734
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
|
|
86735
|
+
"name": "main"
|
|
86736
|
+
}
|
|
86737
|
+
},
|
|
86341
86738
|
"repo-events-items": {
|
|
86342
86739
|
"value": [
|
|
86343
86740
|
{
|
|
@@ -94622,11 +95019,20 @@
|
|
|
94622
95019
|
"name": "environment_name",
|
|
94623
95020
|
"in": "path",
|
|
94624
95021
|
"required": true,
|
|
94625
|
-
"description": "The name of the environment",
|
|
95022
|
+
"description": "The name of the environment.",
|
|
94626
95023
|
"schema": {
|
|
94627
95024
|
"type": "string"
|
|
94628
95025
|
}
|
|
94629
95026
|
},
|
|
95027
|
+
"branch-policy-id": {
|
|
95028
|
+
"name": "branch_policy_id",
|
|
95029
|
+
"in": "path",
|
|
95030
|
+
"required": true,
|
|
95031
|
+
"description": "The unique identifier of the branch policy.",
|
|
95032
|
+
"schema": {
|
|
95033
|
+
"type": "integer"
|
|
95034
|
+
}
|
|
95035
|
+
},
|
|
94630
95036
|
"invitation-id": {
|
|
94631
95037
|
"name": "invitation_id",
|
|
94632
95038
|
"description": "The unique identifier of the invitation.",
|
package/index.js
CHANGED
|
@@ -10,6 +10,8 @@ module.exports = {
|
|
|
10
10
|
["ghes-3.4"]: require("./generated/ghes-3.4.json"),
|
|
11
11
|
["ghes-3.5.deref"]: require("./generated/ghes-3.5.deref.json"),
|
|
12
12
|
["ghes-3.5"]: require("./generated/ghes-3.5.json"),
|
|
13
|
+
["ghes-3.6.deref"]: require("./generated/ghes-3.6.deref.json"),
|
|
14
|
+
["ghes-3.6"]: require("./generated/ghes-3.6.json"),
|
|
13
15
|
["github.ae.deref"]: require("./generated/github.ae.deref.json"),
|
|
14
16
|
["github.ae"]: require("./generated/github.ae.json"),
|
|
15
17
|
},
|