@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/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.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": {
|
|
@@ -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",
|
|
@@ -64640,7 +64956,13 @@
|
|
|
64640
64956
|
"type": "object",
|
|
64641
64957
|
"properties": {
|
|
64642
64958
|
"type": {
|
|
64643
|
-
"type": "string"
|
|
64959
|
+
"type": "string",
|
|
64960
|
+
"enum": [
|
|
64961
|
+
"dir",
|
|
64962
|
+
"file",
|
|
64963
|
+
"submodule",
|
|
64964
|
+
"symlink"
|
|
64965
|
+
]
|
|
64644
64966
|
},
|
|
64645
64967
|
"size": {
|
|
64646
64968
|
"type": "integer"
|
|
@@ -64721,7 +65043,10 @@
|
|
|
64721
65043
|
"type": "object",
|
|
64722
65044
|
"properties": {
|
|
64723
65045
|
"type": {
|
|
64724
|
-
"type": "string"
|
|
65046
|
+
"type": "string",
|
|
65047
|
+
"enum": [
|
|
65048
|
+
"file"
|
|
65049
|
+
]
|
|
64725
65050
|
},
|
|
64726
65051
|
"encoding": {
|
|
64727
65052
|
"type": "string"
|
|
@@ -64814,7 +65139,10 @@
|
|
|
64814
65139
|
"type": "object",
|
|
64815
65140
|
"properties": {
|
|
64816
65141
|
"type": {
|
|
64817
|
-
"type": "string"
|
|
65142
|
+
"type": "string",
|
|
65143
|
+
"enum": [
|
|
65144
|
+
"symlink"
|
|
65145
|
+
]
|
|
64818
65146
|
},
|
|
64819
65147
|
"target": {
|
|
64820
65148
|
"type": "string"
|
|
@@ -64890,12 +65218,15 @@
|
|
|
64890
65218
|
]
|
|
64891
65219
|
},
|
|
64892
65220
|
"content-submodule": {
|
|
64893
|
-
"title": "
|
|
64894
|
-
"description": "An object describing a
|
|
65221
|
+
"title": "Submodule Content",
|
|
65222
|
+
"description": "An object describing a submodule",
|
|
64895
65223
|
"type": "object",
|
|
64896
65224
|
"properties": {
|
|
64897
65225
|
"type": {
|
|
64898
|
-
"type": "string"
|
|
65226
|
+
"type": "string",
|
|
65227
|
+
"enum": [
|
|
65228
|
+
"submodule"
|
|
65229
|
+
]
|
|
64899
65230
|
},
|
|
64900
65231
|
"submodule_git_url": {
|
|
64901
65232
|
"type": "string",
|
|
@@ -65319,7 +65650,7 @@
|
|
|
65319
65650
|
"example": 30,
|
|
65320
65651
|
"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
65652
|
},
|
|
65322
|
-
"deployment-branch-policy": {
|
|
65653
|
+
"deployment-branch-policy-settings": {
|
|
65323
65654
|
"type": "object",
|
|
65324
65655
|
"description": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.",
|
|
65325
65656
|
"properties": {
|
|
@@ -65476,7 +65807,7 @@
|
|
|
65476
65807
|
}
|
|
65477
65808
|
},
|
|
65478
65809
|
"deployment_branch_policy": {
|
|
65479
|
-
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
65810
|
+
"$ref": "#/components/schemas/deployment-branch-policy-settings"
|
|
65480
65811
|
}
|
|
65481
65812
|
},
|
|
65482
65813
|
"required": [
|
|
@@ -65489,6 +65820,41 @@
|
|
|
65489
65820
|
"updated_at"
|
|
65490
65821
|
]
|
|
65491
65822
|
},
|
|
65823
|
+
"deployment-branch-policy": {
|
|
65824
|
+
"title": "Deployment branch policy",
|
|
65825
|
+
"description": "Details of a deployment branch policy.",
|
|
65826
|
+
"type": "object",
|
|
65827
|
+
"properties": {
|
|
65828
|
+
"id": {
|
|
65829
|
+
"description": "The unique identifier of the branch policy.",
|
|
65830
|
+
"type": "integer",
|
|
65831
|
+
"example": 361471
|
|
65832
|
+
},
|
|
65833
|
+
"node_id": {
|
|
65834
|
+
"type": "string",
|
|
65835
|
+
"example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
|
|
65836
|
+
},
|
|
65837
|
+
"name": {
|
|
65838
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.",
|
|
65839
|
+
"type": "string",
|
|
65840
|
+
"example": "release/*"
|
|
65841
|
+
}
|
|
65842
|
+
}
|
|
65843
|
+
},
|
|
65844
|
+
"deployment-branch-policy-name-pattern": {
|
|
65845
|
+
"title": "Deployment branch policy name pattern",
|
|
65846
|
+
"type": "object",
|
|
65847
|
+
"properties": {
|
|
65848
|
+
"name": {
|
|
65849
|
+
"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).",
|
|
65850
|
+
"type": "string",
|
|
65851
|
+
"example": "release/*"
|
|
65852
|
+
}
|
|
65853
|
+
},
|
|
65854
|
+
"required": [
|
|
65855
|
+
"name"
|
|
65856
|
+
]
|
|
65857
|
+
},
|
|
65492
65858
|
"short-blob": {
|
|
65493
65859
|
"title": "Short Blob",
|
|
65494
65860
|
"description": "Short Blob",
|
|
@@ -86766,6 +87132,37 @@
|
|
|
86766
87132
|
}
|
|
86767
87133
|
}
|
|
86768
87134
|
},
|
|
87135
|
+
"deployment-branch-policies-list": {
|
|
87136
|
+
"value": {
|
|
87137
|
+
"total_count": 2,
|
|
87138
|
+
"branch_policies": [
|
|
87139
|
+
{
|
|
87140
|
+
"id": 361471,
|
|
87141
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
|
|
87142
|
+
"name": "release/*"
|
|
87143
|
+
},
|
|
87144
|
+
{
|
|
87145
|
+
"id": 361472,
|
|
87146
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
|
|
87147
|
+
"name": "main"
|
|
87148
|
+
}
|
|
87149
|
+
]
|
|
87150
|
+
}
|
|
87151
|
+
},
|
|
87152
|
+
"deployment-branch-policy-wildcard": {
|
|
87153
|
+
"value": {
|
|
87154
|
+
"id": 364662,
|
|
87155
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
|
|
87156
|
+
"name": "release/*"
|
|
87157
|
+
}
|
|
87158
|
+
},
|
|
87159
|
+
"deployment-branch-policy-single-branch": {
|
|
87160
|
+
"value": {
|
|
87161
|
+
"id": 364663,
|
|
87162
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
|
|
87163
|
+
"name": "main"
|
|
87164
|
+
}
|
|
87165
|
+
},
|
|
86769
87166
|
"repo-events-items": {
|
|
86770
87167
|
"value": [
|
|
86771
87168
|
{
|
|
@@ -95279,11 +95676,20 @@
|
|
|
95279
95676
|
"name": "environment_name",
|
|
95280
95677
|
"in": "path",
|
|
95281
95678
|
"required": true,
|
|
95282
|
-
"description": "The name of the environment",
|
|
95679
|
+
"description": "The name of the environment.",
|
|
95283
95680
|
"schema": {
|
|
95284
95681
|
"type": "string"
|
|
95285
95682
|
}
|
|
95286
95683
|
},
|
|
95684
|
+
"branch-policy-id": {
|
|
95685
|
+
"name": "branch_policy_id",
|
|
95686
|
+
"in": "path",
|
|
95687
|
+
"required": true,
|
|
95688
|
+
"description": "The unique identifier of the branch policy.",
|
|
95689
|
+
"schema": {
|
|
95690
|
+
"type": "integer"
|
|
95691
|
+
}
|
|
95692
|
+
},
|
|
95287
95693
|
"invitation-id": {
|
|
95288
95694
|
"name": "invitation_id",
|
|
95289
95695
|
"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.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": {
|
|
@@ -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.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": {
|
|
@@ -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
|
}
|