@octokit/openapi 7.0.0 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/api.github.com.deref.json +1523 -250
- package/generated/api.github.com.json +803 -61
- 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 +17 -8
- package/generated/ghes-3.2-diff-to-ghes-3.3.json +9 -8
- package/generated/ghes-3.2.deref.json +1108 -313
- package/generated/ghes-3.2.json +451 -31
- package/generated/ghes-3.3-anicca-diff-to-ghes-3.4.deref.json +16 -0
- package/generated/ghes-3.3-diff-to-ghes-3.4.deref.json +209 -1
- package/generated/ghes-3.3-diff-to-ghes-3.4.json +9 -1
- package/generated/ghes-3.3.deref.json +1108 -313
- package/generated/ghes-3.3.json +451 -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 +1092 -313
- package/generated/ghes-3.4.json +451 -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 +17 -8
- package/generated/ghes-3.5-diff-to-ghes-3.6.json +9 -8
- package/generated/ghes-3.5.deref.json +1094 -315
- package/generated/ghes-3.5.json +453 -33
- package/generated/ghes-3.6-anicca-diff-to-api.github.com.deref.json +94 -56
- package/generated/ghes-3.6-diff-to-api.github.com.deref.json +89 -164
- package/generated/ghes-3.6-diff-to-api.github.com.json +9 -130
- package/generated/ghes-3.6.deref.json +1299 -488
- package/generated/ghes-3.6.json +499 -47
- package/generated/github.ae-anicca-diff-to-api.github.com.deref.json +38 -0
- package/generated/github.ae-diff-to-api.github.com.deref.json +49 -8
- package/generated/github.ae-diff-to-api.github.com.json +9 -8
- package/generated/github.ae.deref.json +783 -32
- package/generated/github.ae.json +495 -31
- package/index.js +2 -0
- package/package.json +1 -1
package/generated/ghes-3.3.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.3.0",
|
|
5
5
|
"title": "GitHub's official OpenAPI spec + Octokit extension",
|
|
6
6
|
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
|
|
7
7
|
"license": {
|
|
@@ -16024,13 +16024,6 @@
|
|
|
16024
16024
|
"permission": {
|
|
16025
16025
|
"type": "string",
|
|
16026
16026
|
"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.",
|
|
16027
|
-
"enum": [
|
|
16028
|
-
"pull",
|
|
16029
|
-
"push",
|
|
16030
|
-
"admin",
|
|
16031
|
-
"maintain",
|
|
16032
|
-
"triage"
|
|
16033
|
-
],
|
|
16034
16027
|
"default": "push"
|
|
16035
16028
|
}
|
|
16036
16029
|
}
|
|
@@ -25402,13 +25395,6 @@
|
|
|
25402
25395
|
"permission": {
|
|
25403
25396
|
"type": "string",
|
|
25404
25397
|
"description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
|
|
25405
|
-
"enum": [
|
|
25406
|
-
"pull",
|
|
25407
|
-
"push",
|
|
25408
|
-
"admin",
|
|
25409
|
-
"maintain",
|
|
25410
|
-
"triage"
|
|
25411
|
-
],
|
|
25412
25398
|
"default": "push"
|
|
25413
25399
|
}
|
|
25414
25400
|
}
|
|
@@ -28176,15 +28162,15 @@
|
|
|
28176
28162
|
},
|
|
28177
28163
|
"/repos/{owner}/{repo}/environments": {
|
|
28178
28164
|
"get": {
|
|
28179
|
-
"summary": "
|
|
28180
|
-
"description": "
|
|
28165
|
+
"summary": "List environments",
|
|
28166
|
+
"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.",
|
|
28181
28167
|
"tags": [
|
|
28182
28168
|
"repos"
|
|
28183
28169
|
],
|
|
28184
28170
|
"operationId": "repos/get-all-environments",
|
|
28185
28171
|
"externalDocs": {
|
|
28186
28172
|
"description": "API method documentation",
|
|
28187
|
-
"url": "https://docs.github.com/enterprise-server@3.3/rest/
|
|
28173
|
+
"url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/environments#list-environments"
|
|
28188
28174
|
},
|
|
28189
28175
|
"parameters": [
|
|
28190
28176
|
{
|
|
@@ -28233,7 +28219,7 @@
|
|
|
28233
28219
|
"x-github": {
|
|
28234
28220
|
"githubCloudOnly": false,
|
|
28235
28221
|
"enabledForGitHubApps": true,
|
|
28236
|
-
"category": "
|
|
28222
|
+
"category": "deployments",
|
|
28237
28223
|
"subcategory": "environments"
|
|
28238
28224
|
},
|
|
28239
28225
|
"x-octokit": {}
|
|
@@ -28242,7 +28228,7 @@
|
|
|
28242
28228
|
"/repos/{owner}/{repo}/environments/{environment_name}": {
|
|
28243
28229
|
"get": {
|
|
28244
28230
|
"summary": "Get an environment",
|
|
28245
|
-
"description": "
|
|
28231
|
+
"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.",
|
|
28246
28232
|
"tags": [
|
|
28247
28233
|
"repos"
|
|
28248
28234
|
],
|
|
@@ -28289,7 +28275,7 @@
|
|
|
28289
28275
|
},
|
|
28290
28276
|
"put": {
|
|
28291
28277
|
"summary": "Create or update an environment",
|
|
28292
|
-
"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:**
|
|
28278
|
+
"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.",
|
|
28293
28279
|
"tags": [
|
|
28294
28280
|
"repos"
|
|
28295
28281
|
],
|
|
@@ -28339,10 +28325,31 @@
|
|
|
28339
28325
|
}
|
|
28340
28326
|
},
|
|
28341
28327
|
"deployment_branch_policy": {
|
|
28342
|
-
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
28328
|
+
"$ref": "#/components/schemas/deployment-branch-policy-settings"
|
|
28343
28329
|
}
|
|
28344
28330
|
},
|
|
28345
28331
|
"additionalProperties": false
|
|
28332
|
+
},
|
|
28333
|
+
"examples": {
|
|
28334
|
+
"default": {
|
|
28335
|
+
"value": {
|
|
28336
|
+
"wait_timer": 30,
|
|
28337
|
+
"reviewers": [
|
|
28338
|
+
{
|
|
28339
|
+
"type": "User",
|
|
28340
|
+
"id": 1
|
|
28341
|
+
},
|
|
28342
|
+
{
|
|
28343
|
+
"type": "Team",
|
|
28344
|
+
"id": 1
|
|
28345
|
+
}
|
|
28346
|
+
],
|
|
28347
|
+
"deployment_branch_policy": {
|
|
28348
|
+
"protected_branches": false,
|
|
28349
|
+
"custom_branch_policies": true
|
|
28350
|
+
}
|
|
28351
|
+
}
|
|
28352
|
+
}
|
|
28346
28353
|
}
|
|
28347
28354
|
}
|
|
28348
28355
|
}
|
|
@@ -28418,6 +28425,315 @@
|
|
|
28418
28425
|
"x-octokit": {}
|
|
28419
28426
|
}
|
|
28420
28427
|
},
|
|
28428
|
+
"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
|
|
28429
|
+
"get": {
|
|
28430
|
+
"summary": "List deployment branch policies",
|
|
28431
|
+
"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.",
|
|
28432
|
+
"tags": [
|
|
28433
|
+
"repos"
|
|
28434
|
+
],
|
|
28435
|
+
"operationId": "repos/list-deployment-branch-policies",
|
|
28436
|
+
"externalDocs": {
|
|
28437
|
+
"description": "API method documentation",
|
|
28438
|
+
"url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/branch-policies#list-deployment-branch-policies"
|
|
28439
|
+
},
|
|
28440
|
+
"parameters": [
|
|
28441
|
+
{
|
|
28442
|
+
"$ref": "#/components/parameters/owner"
|
|
28443
|
+
},
|
|
28444
|
+
{
|
|
28445
|
+
"$ref": "#/components/parameters/repo"
|
|
28446
|
+
},
|
|
28447
|
+
{
|
|
28448
|
+
"$ref": "#/components/parameters/environment-name"
|
|
28449
|
+
},
|
|
28450
|
+
{
|
|
28451
|
+
"$ref": "#/components/parameters/per-page"
|
|
28452
|
+
},
|
|
28453
|
+
{
|
|
28454
|
+
"$ref": "#/components/parameters/page"
|
|
28455
|
+
}
|
|
28456
|
+
],
|
|
28457
|
+
"responses": {
|
|
28458
|
+
"200": {
|
|
28459
|
+
"description": "Response",
|
|
28460
|
+
"content": {
|
|
28461
|
+
"application/json": {
|
|
28462
|
+
"schema": {
|
|
28463
|
+
"type": "object",
|
|
28464
|
+
"properties": {
|
|
28465
|
+
"total_count": {
|
|
28466
|
+
"description": "The number of deployment branch policies for the environment.",
|
|
28467
|
+
"type": "integer",
|
|
28468
|
+
"example": 2
|
|
28469
|
+
},
|
|
28470
|
+
"branch_policies": {
|
|
28471
|
+
"type": "array",
|
|
28472
|
+
"items": {
|
|
28473
|
+
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
28474
|
+
}
|
|
28475
|
+
}
|
|
28476
|
+
},
|
|
28477
|
+
"required": [
|
|
28478
|
+
"total_count",
|
|
28479
|
+
"branch_policies"
|
|
28480
|
+
]
|
|
28481
|
+
},
|
|
28482
|
+
"examples": {
|
|
28483
|
+
"default": {
|
|
28484
|
+
"$ref": "#/components/examples/deployment-branch-policies-list"
|
|
28485
|
+
}
|
|
28486
|
+
}
|
|
28487
|
+
}
|
|
28488
|
+
}
|
|
28489
|
+
}
|
|
28490
|
+
},
|
|
28491
|
+
"x-github": {
|
|
28492
|
+
"githubCloudOnly": false,
|
|
28493
|
+
"enabledForGitHubApps": true,
|
|
28494
|
+
"category": "deployments",
|
|
28495
|
+
"subcategory": "branch-policies"
|
|
28496
|
+
},
|
|
28497
|
+
"x-octokit": {}
|
|
28498
|
+
},
|
|
28499
|
+
"post": {
|
|
28500
|
+
"summary": "Create a deployment branch policy",
|
|
28501
|
+
"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.",
|
|
28502
|
+
"tags": [
|
|
28503
|
+
"repos"
|
|
28504
|
+
],
|
|
28505
|
+
"operationId": "repos/create-deployment-branch-policy",
|
|
28506
|
+
"externalDocs": {
|
|
28507
|
+
"description": "API method documentation",
|
|
28508
|
+
"url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/branch-policies#create-deployment-branch-policy"
|
|
28509
|
+
},
|
|
28510
|
+
"parameters": [
|
|
28511
|
+
{
|
|
28512
|
+
"$ref": "#/components/parameters/owner"
|
|
28513
|
+
},
|
|
28514
|
+
{
|
|
28515
|
+
"$ref": "#/components/parameters/repo"
|
|
28516
|
+
},
|
|
28517
|
+
{
|
|
28518
|
+
"$ref": "#/components/parameters/environment-name"
|
|
28519
|
+
}
|
|
28520
|
+
],
|
|
28521
|
+
"requestBody": {
|
|
28522
|
+
"required": true,
|
|
28523
|
+
"content": {
|
|
28524
|
+
"application/json": {
|
|
28525
|
+
"schema": {
|
|
28526
|
+
"$ref": "#/components/schemas/deployment-branch-policy-name-pattern"
|
|
28527
|
+
},
|
|
28528
|
+
"examples": {
|
|
28529
|
+
"example-wildcard": {
|
|
28530
|
+
"summary": "Example of a wildcard name pattern",
|
|
28531
|
+
"value": {
|
|
28532
|
+
"name": "release/*"
|
|
28533
|
+
}
|
|
28534
|
+
},
|
|
28535
|
+
"example-single-branch": {
|
|
28536
|
+
"summary": "Example of a single branch name pattern",
|
|
28537
|
+
"value": {
|
|
28538
|
+
"name": "main"
|
|
28539
|
+
}
|
|
28540
|
+
}
|
|
28541
|
+
}
|
|
28542
|
+
}
|
|
28543
|
+
}
|
|
28544
|
+
},
|
|
28545
|
+
"responses": {
|
|
28546
|
+
"200": {
|
|
28547
|
+
"description": "Response",
|
|
28548
|
+
"content": {
|
|
28549
|
+
"application/json": {
|
|
28550
|
+
"schema": {
|
|
28551
|
+
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
28552
|
+
},
|
|
28553
|
+
"examples": {
|
|
28554
|
+
"example-wildcard": {
|
|
28555
|
+
"$ref": "#/components/examples/deployment-branch-policy-wildcard"
|
|
28556
|
+
},
|
|
28557
|
+
"example-single-branch": {
|
|
28558
|
+
"$ref": "#/components/examples/deployment-branch-policy-single-branch"
|
|
28559
|
+
}
|
|
28560
|
+
}
|
|
28561
|
+
}
|
|
28562
|
+
}
|
|
28563
|
+
},
|
|
28564
|
+
"303": {
|
|
28565
|
+
"description": "Response if the same branch name pattern already exists"
|
|
28566
|
+
},
|
|
28567
|
+
"404": {
|
|
28568
|
+
"description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
|
|
28569
|
+
}
|
|
28570
|
+
},
|
|
28571
|
+
"x-github": {
|
|
28572
|
+
"githubCloudOnly": false,
|
|
28573
|
+
"enabledForGitHubApps": true,
|
|
28574
|
+
"category": "deployments",
|
|
28575
|
+
"subcategory": "branch-policies"
|
|
28576
|
+
},
|
|
28577
|
+
"x-octokit": {}
|
|
28578
|
+
}
|
|
28579
|
+
},
|
|
28580
|
+
"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
|
|
28581
|
+
"get": {
|
|
28582
|
+
"summary": "Get a deployment branch policy",
|
|
28583
|
+
"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.",
|
|
28584
|
+
"tags": [
|
|
28585
|
+
"repos"
|
|
28586
|
+
],
|
|
28587
|
+
"operationId": "repos/get-deployment-branch-policy",
|
|
28588
|
+
"externalDocs": {
|
|
28589
|
+
"description": "API method documentation",
|
|
28590
|
+
"url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/branch-policies#get-deployment-branch-policy"
|
|
28591
|
+
},
|
|
28592
|
+
"parameters": [
|
|
28593
|
+
{
|
|
28594
|
+
"$ref": "#/components/parameters/owner"
|
|
28595
|
+
},
|
|
28596
|
+
{
|
|
28597
|
+
"$ref": "#/components/parameters/repo"
|
|
28598
|
+
},
|
|
28599
|
+
{
|
|
28600
|
+
"$ref": "#/components/parameters/environment-name"
|
|
28601
|
+
},
|
|
28602
|
+
{
|
|
28603
|
+
"$ref": "#/components/parameters/branch-policy-id"
|
|
28604
|
+
}
|
|
28605
|
+
],
|
|
28606
|
+
"responses": {
|
|
28607
|
+
"200": {
|
|
28608
|
+
"description": "Response",
|
|
28609
|
+
"content": {
|
|
28610
|
+
"application/json": {
|
|
28611
|
+
"schema": {
|
|
28612
|
+
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
28613
|
+
},
|
|
28614
|
+
"examples": {
|
|
28615
|
+
"default": {
|
|
28616
|
+
"$ref": "#/components/examples/deployment-branch-policy-wildcard"
|
|
28617
|
+
}
|
|
28618
|
+
}
|
|
28619
|
+
}
|
|
28620
|
+
}
|
|
28621
|
+
}
|
|
28622
|
+
},
|
|
28623
|
+
"x-github": {
|
|
28624
|
+
"githubCloudOnly": false,
|
|
28625
|
+
"enabledForGitHubApps": true,
|
|
28626
|
+
"category": "deployments",
|
|
28627
|
+
"subcategory": "branch-policies"
|
|
28628
|
+
},
|
|
28629
|
+
"x-octokit": {}
|
|
28630
|
+
},
|
|
28631
|
+
"put": {
|
|
28632
|
+
"summary": "Update a deployment branch policy",
|
|
28633
|
+
"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.",
|
|
28634
|
+
"tags": [
|
|
28635
|
+
"repos"
|
|
28636
|
+
],
|
|
28637
|
+
"operationId": "repos/update-deployment-branch-policy",
|
|
28638
|
+
"externalDocs": {
|
|
28639
|
+
"description": "API method documentation",
|
|
28640
|
+
"url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/branch-policies#update-deployment-branch-policy"
|
|
28641
|
+
},
|
|
28642
|
+
"parameters": [
|
|
28643
|
+
{
|
|
28644
|
+
"$ref": "#/components/parameters/owner"
|
|
28645
|
+
},
|
|
28646
|
+
{
|
|
28647
|
+
"$ref": "#/components/parameters/repo"
|
|
28648
|
+
},
|
|
28649
|
+
{
|
|
28650
|
+
"$ref": "#/components/parameters/environment-name"
|
|
28651
|
+
},
|
|
28652
|
+
{
|
|
28653
|
+
"$ref": "#/components/parameters/branch-policy-id"
|
|
28654
|
+
}
|
|
28655
|
+
],
|
|
28656
|
+
"requestBody": {
|
|
28657
|
+
"required": true,
|
|
28658
|
+
"content": {
|
|
28659
|
+
"application/json": {
|
|
28660
|
+
"schema": {
|
|
28661
|
+
"$ref": "#/components/schemas/deployment-branch-policy-name-pattern"
|
|
28662
|
+
},
|
|
28663
|
+
"examples": {
|
|
28664
|
+
"default": {
|
|
28665
|
+
"value": {
|
|
28666
|
+
"name": "release/*"
|
|
28667
|
+
}
|
|
28668
|
+
}
|
|
28669
|
+
}
|
|
28670
|
+
}
|
|
28671
|
+
}
|
|
28672
|
+
},
|
|
28673
|
+
"responses": {
|
|
28674
|
+
"200": {
|
|
28675
|
+
"description": "Response",
|
|
28676
|
+
"content": {
|
|
28677
|
+
"application/json": {
|
|
28678
|
+
"schema": {
|
|
28679
|
+
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
28680
|
+
},
|
|
28681
|
+
"examples": {
|
|
28682
|
+
"default": {
|
|
28683
|
+
"$ref": "#/components/examples/deployment-branch-policy-wildcard"
|
|
28684
|
+
}
|
|
28685
|
+
}
|
|
28686
|
+
}
|
|
28687
|
+
}
|
|
28688
|
+
}
|
|
28689
|
+
},
|
|
28690
|
+
"x-github": {
|
|
28691
|
+
"githubCloudOnly": false,
|
|
28692
|
+
"enabledForGitHubApps": true,
|
|
28693
|
+
"category": "deployments",
|
|
28694
|
+
"subcategory": "branch-policies"
|
|
28695
|
+
},
|
|
28696
|
+
"x-octokit": {}
|
|
28697
|
+
},
|
|
28698
|
+
"delete": {
|
|
28699
|
+
"summary": "Delete a deployment branch policy",
|
|
28700
|
+
"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.",
|
|
28701
|
+
"tags": [
|
|
28702
|
+
"repos"
|
|
28703
|
+
],
|
|
28704
|
+
"operationId": "repos/delete-deployment-branch-policy",
|
|
28705
|
+
"externalDocs": {
|
|
28706
|
+
"description": "API method documentation",
|
|
28707
|
+
"url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/branch-policies#delete-deployment-branch-policy"
|
|
28708
|
+
},
|
|
28709
|
+
"parameters": [
|
|
28710
|
+
{
|
|
28711
|
+
"$ref": "#/components/parameters/owner"
|
|
28712
|
+
},
|
|
28713
|
+
{
|
|
28714
|
+
"$ref": "#/components/parameters/repo"
|
|
28715
|
+
},
|
|
28716
|
+
{
|
|
28717
|
+
"$ref": "#/components/parameters/environment-name"
|
|
28718
|
+
},
|
|
28719
|
+
{
|
|
28720
|
+
"$ref": "#/components/parameters/branch-policy-id"
|
|
28721
|
+
}
|
|
28722
|
+
],
|
|
28723
|
+
"responses": {
|
|
28724
|
+
"204": {
|
|
28725
|
+
"description": "Response"
|
|
28726
|
+
}
|
|
28727
|
+
},
|
|
28728
|
+
"x-github": {
|
|
28729
|
+
"githubCloudOnly": false,
|
|
28730
|
+
"enabledForGitHubApps": true,
|
|
28731
|
+
"category": "deployments",
|
|
28732
|
+
"subcategory": "branch-policies"
|
|
28733
|
+
},
|
|
28734
|
+
"x-octokit": {}
|
|
28735
|
+
}
|
|
28736
|
+
},
|
|
28421
28737
|
"/repos/{owner}/{repo}/events": {
|
|
28422
28738
|
"get": {
|
|
28423
28739
|
"summary": "List repository events",
|
|
@@ -48933,6 +49249,12 @@
|
|
|
48933
49249
|
"text/plain": {
|
|
48934
49250
|
"schema": {
|
|
48935
49251
|
"type": "string"
|
|
49252
|
+
},
|
|
49253
|
+
"examples": {
|
|
49254
|
+
"default": {
|
|
49255
|
+
"summary": "Example response",
|
|
49256
|
+
"value": "Responsive is better than fast"
|
|
49257
|
+
}
|
|
48936
49258
|
}
|
|
48937
49259
|
}
|
|
48938
49260
|
}
|
|
@@ -51056,6 +51378,14 @@
|
|
|
51056
51378
|
"write"
|
|
51057
51379
|
]
|
|
51058
51380
|
},
|
|
51381
|
+
"organization_custom_roles": {
|
|
51382
|
+
"type": "string",
|
|
51383
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
51384
|
+
"enum": [
|
|
51385
|
+
"read",
|
|
51386
|
+
"write"
|
|
51387
|
+
]
|
|
51388
|
+
},
|
|
51059
51389
|
"deployments": {
|
|
51060
51390
|
"type": "string",
|
|
51061
51391
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -64640,7 +64970,13 @@
|
|
|
64640
64970
|
"type": "object",
|
|
64641
64971
|
"properties": {
|
|
64642
64972
|
"type": {
|
|
64643
|
-
"type": "string"
|
|
64973
|
+
"type": "string",
|
|
64974
|
+
"enum": [
|
|
64975
|
+
"dir",
|
|
64976
|
+
"file",
|
|
64977
|
+
"submodule",
|
|
64978
|
+
"symlink"
|
|
64979
|
+
]
|
|
64644
64980
|
},
|
|
64645
64981
|
"size": {
|
|
64646
64982
|
"type": "integer"
|
|
@@ -64721,7 +65057,10 @@
|
|
|
64721
65057
|
"type": "object",
|
|
64722
65058
|
"properties": {
|
|
64723
65059
|
"type": {
|
|
64724
|
-
"type": "string"
|
|
65060
|
+
"type": "string",
|
|
65061
|
+
"enum": [
|
|
65062
|
+
"file"
|
|
65063
|
+
]
|
|
64725
65064
|
},
|
|
64726
65065
|
"encoding": {
|
|
64727
65066
|
"type": "string"
|
|
@@ -64814,7 +65153,10 @@
|
|
|
64814
65153
|
"type": "object",
|
|
64815
65154
|
"properties": {
|
|
64816
65155
|
"type": {
|
|
64817
|
-
"type": "string"
|
|
65156
|
+
"type": "string",
|
|
65157
|
+
"enum": [
|
|
65158
|
+
"symlink"
|
|
65159
|
+
]
|
|
64818
65160
|
},
|
|
64819
65161
|
"target": {
|
|
64820
65162
|
"type": "string"
|
|
@@ -64890,12 +65232,15 @@
|
|
|
64890
65232
|
]
|
|
64891
65233
|
},
|
|
64892
65234
|
"content-submodule": {
|
|
64893
|
-
"title": "
|
|
64894
|
-
"description": "An object describing a
|
|
65235
|
+
"title": "Submodule Content",
|
|
65236
|
+
"description": "An object describing a submodule",
|
|
64895
65237
|
"type": "object",
|
|
64896
65238
|
"properties": {
|
|
64897
65239
|
"type": {
|
|
64898
|
-
"type": "string"
|
|
65240
|
+
"type": "string",
|
|
65241
|
+
"enum": [
|
|
65242
|
+
"submodule"
|
|
65243
|
+
]
|
|
64899
65244
|
},
|
|
64900
65245
|
"submodule_git_url": {
|
|
64901
65246
|
"type": "string",
|
|
@@ -65319,7 +65664,7 @@
|
|
|
65319
65664
|
"example": 30,
|
|
65320
65665
|
"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)."
|
|
65321
65666
|
},
|
|
65322
|
-
"deployment-branch-policy": {
|
|
65667
|
+
"deployment-branch-policy-settings": {
|
|
65323
65668
|
"type": "object",
|
|
65324
65669
|
"description": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.",
|
|
65325
65670
|
"properties": {
|
|
@@ -65476,7 +65821,7 @@
|
|
|
65476
65821
|
}
|
|
65477
65822
|
},
|
|
65478
65823
|
"deployment_branch_policy": {
|
|
65479
|
-
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
65824
|
+
"$ref": "#/components/schemas/deployment-branch-policy-settings"
|
|
65480
65825
|
}
|
|
65481
65826
|
},
|
|
65482
65827
|
"required": [
|
|
@@ -65489,6 +65834,41 @@
|
|
|
65489
65834
|
"updated_at"
|
|
65490
65835
|
]
|
|
65491
65836
|
},
|
|
65837
|
+
"deployment-branch-policy": {
|
|
65838
|
+
"title": "Deployment branch policy",
|
|
65839
|
+
"description": "Details of a deployment branch policy.",
|
|
65840
|
+
"type": "object",
|
|
65841
|
+
"properties": {
|
|
65842
|
+
"id": {
|
|
65843
|
+
"description": "The unique identifier of the branch policy.",
|
|
65844
|
+
"type": "integer",
|
|
65845
|
+
"example": 361471
|
|
65846
|
+
},
|
|
65847
|
+
"node_id": {
|
|
65848
|
+
"type": "string",
|
|
65849
|
+
"example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
|
|
65850
|
+
},
|
|
65851
|
+
"name": {
|
|
65852
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.",
|
|
65853
|
+
"type": "string",
|
|
65854
|
+
"example": "release/*"
|
|
65855
|
+
}
|
|
65856
|
+
}
|
|
65857
|
+
},
|
|
65858
|
+
"deployment-branch-policy-name-pattern": {
|
|
65859
|
+
"title": "Deployment branch policy name pattern",
|
|
65860
|
+
"type": "object",
|
|
65861
|
+
"properties": {
|
|
65862
|
+
"name": {
|
|
65863
|
+
"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).",
|
|
65864
|
+
"type": "string",
|
|
65865
|
+
"example": "release/*"
|
|
65866
|
+
}
|
|
65867
|
+
},
|
|
65868
|
+
"required": [
|
|
65869
|
+
"name"
|
|
65870
|
+
]
|
|
65871
|
+
},
|
|
65492
65872
|
"short-blob": {
|
|
65493
65873
|
"title": "Short Blob",
|
|
65494
65874
|
"description": "Short Blob",
|
|
@@ -86766,6 +87146,37 @@
|
|
|
86766
87146
|
}
|
|
86767
87147
|
}
|
|
86768
87148
|
},
|
|
87149
|
+
"deployment-branch-policies-list": {
|
|
87150
|
+
"value": {
|
|
87151
|
+
"total_count": 2,
|
|
87152
|
+
"branch_policies": [
|
|
87153
|
+
{
|
|
87154
|
+
"id": 361471,
|
|
87155
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
|
|
87156
|
+
"name": "release/*"
|
|
87157
|
+
},
|
|
87158
|
+
{
|
|
87159
|
+
"id": 361472,
|
|
87160
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
|
|
87161
|
+
"name": "main"
|
|
87162
|
+
}
|
|
87163
|
+
]
|
|
87164
|
+
}
|
|
87165
|
+
},
|
|
87166
|
+
"deployment-branch-policy-wildcard": {
|
|
87167
|
+
"value": {
|
|
87168
|
+
"id": 364662,
|
|
87169
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
|
|
87170
|
+
"name": "release/*"
|
|
87171
|
+
}
|
|
87172
|
+
},
|
|
87173
|
+
"deployment-branch-policy-single-branch": {
|
|
87174
|
+
"value": {
|
|
87175
|
+
"id": 364663,
|
|
87176
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
|
|
87177
|
+
"name": "main"
|
|
87178
|
+
}
|
|
87179
|
+
},
|
|
86769
87180
|
"repo-events-items": {
|
|
86770
87181
|
"value": [
|
|
86771
87182
|
{
|
|
@@ -95279,11 +95690,20 @@
|
|
|
95279
95690
|
"name": "environment_name",
|
|
95280
95691
|
"in": "path",
|
|
95281
95692
|
"required": true,
|
|
95282
|
-
"description": "The name of the environment",
|
|
95693
|
+
"description": "The name of the environment.",
|
|
95283
95694
|
"schema": {
|
|
95284
95695
|
"type": "string"
|
|
95285
95696
|
}
|
|
95286
95697
|
},
|
|
95698
|
+
"branch-policy-id": {
|
|
95699
|
+
"name": "branch_policy_id",
|
|
95700
|
+
"in": "path",
|
|
95701
|
+
"required": true,
|
|
95702
|
+
"description": "The unique identifier of the branch policy.",
|
|
95703
|
+
"schema": {
|
|
95704
|
+
"type": "integer"
|
|
95705
|
+
}
|
|
95706
|
+
},
|
|
95287
95707
|
"invitation-id": {
|
|
95288
95708
|
"name": "invitation_id",
|
|
95289
95709
|
"description": "The unique identifier of the invitation.",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.3.0",
|
|
5
5
|
"title": "GitHub's official OpenAPI spec + Octokit extension",
|
|
6
6
|
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
|
|
7
7
|
"license": {
|
|
@@ -40829,13 +40829,6 @@
|
|
|
40829
40829
|
"permission": {
|
|
40830
40830
|
"type": "string",
|
|
40831
40831
|
"description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
|
|
40832
|
-
"enum": [
|
|
40833
|
-
"pull",
|
|
40834
|
-
"push",
|
|
40835
|
-
"admin",
|
|
40836
|
-
"maintain",
|
|
40837
|
-
"triage"
|
|
40838
|
-
],
|
|
40839
40832
|
"default": "push"
|
|
40840
40833
|
}
|
|
40841
40834
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.3.0",
|
|
5
5
|
"title": "GitHub's official OpenAPI spec + Octokit extension",
|
|
6
6
|
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
|
|
7
7
|
"license": {
|
|
@@ -2260,13 +2260,6 @@
|
|
|
2260
2260
|
"permission": {
|
|
2261
2261
|
"type": "string",
|
|
2262
2262
|
"description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
|
|
2263
|
-
"enum": [
|
|
2264
|
-
"pull",
|
|
2265
|
-
"push",
|
|
2266
|
-
"admin",
|
|
2267
|
-
"maintain",
|
|
2268
|
-
"triage"
|
|
2269
|
-
],
|
|
2270
2263
|
"default": "push"
|
|
2271
2264
|
}
|
|
2272
2265
|
}
|