@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.5.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": {
|
|
@@ -17928,13 +17928,6 @@
|
|
|
17928
17928
|
"permission": {
|
|
17929
17929
|
"type": "string",
|
|
17930
17930
|
"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.",
|
|
17931
|
-
"enum": [
|
|
17932
|
-
"pull",
|
|
17933
|
-
"push",
|
|
17934
|
-
"admin",
|
|
17935
|
-
"maintain",
|
|
17936
|
-
"triage"
|
|
17937
|
-
],
|
|
17938
17931
|
"default": "push"
|
|
17939
17932
|
}
|
|
17940
17933
|
}
|
|
@@ -20631,7 +20624,7 @@
|
|
|
20631
20624
|
"/repos/{owner}/{repo}/actions/permissions/access": {
|
|
20632
20625
|
"get": {
|
|
20633
20626
|
"summary": "Get the level of access for workflows outside of the repository",
|
|
20634
|
-
"description": "Gets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository.\nThis endpoint only applies to internal repositories
|
|
20627
|
+
"description": "Gets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository.\nThis endpoint only applies to internal repositories. For more information, see \"[Managing GitHub Actions settings for a repository](https://docs.github.com/enterprise-server@3.5/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-an-internal-repository).\"\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the\nrepository `administration` permission to use this endpoint.",
|
|
20635
20628
|
"tags": [
|
|
20636
20629
|
"actions"
|
|
20637
20630
|
],
|
|
@@ -20676,7 +20669,7 @@
|
|
|
20676
20669
|
},
|
|
20677
20670
|
"put": {
|
|
20678
20671
|
"summary": "Set the level of access for workflows outside of the repository",
|
|
20679
|
-
"description": "Sets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository.\nThis endpoint only applies to internal repositories
|
|
20672
|
+
"description": "Sets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository.\nThis endpoint only applies to internal repositories. For more information, see \"[Managing GitHub Actions settings for a repository](https://docs.github.com/enterprise-server@3.5/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-an-internal-repository).\"\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the\nrepository `administration` permission to use this endpoint.",
|
|
20680
20673
|
"tags": [
|
|
20681
20674
|
"actions"
|
|
20682
20675
|
],
|
|
@@ -28243,13 +28236,6 @@
|
|
|
28243
28236
|
"permission": {
|
|
28244
28237
|
"type": "string",
|
|
28245
28238
|
"description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
|
|
28246
|
-
"enum": [
|
|
28247
|
-
"pull",
|
|
28248
|
-
"push",
|
|
28249
|
-
"admin",
|
|
28250
|
-
"maintain",
|
|
28251
|
-
"triage"
|
|
28252
|
-
],
|
|
28253
28239
|
"default": "push"
|
|
28254
28240
|
}
|
|
28255
28241
|
}
|
|
@@ -31196,15 +31182,15 @@
|
|
|
31196
31182
|
},
|
|
31197
31183
|
"/repos/{owner}/{repo}/environments": {
|
|
31198
31184
|
"get": {
|
|
31199
|
-
"summary": "
|
|
31200
|
-
"description": "
|
|
31185
|
+
"summary": "List environments",
|
|
31186
|
+
"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.",
|
|
31201
31187
|
"tags": [
|
|
31202
31188
|
"repos"
|
|
31203
31189
|
],
|
|
31204
31190
|
"operationId": "repos/get-all-environments",
|
|
31205
31191
|
"externalDocs": {
|
|
31206
31192
|
"description": "API method documentation",
|
|
31207
|
-
"url": "https://docs.github.com/enterprise-server@3.5/rest/
|
|
31193
|
+
"url": "https://docs.github.com/enterprise-server@3.5/rest/deployments/environments#list-environments"
|
|
31208
31194
|
},
|
|
31209
31195
|
"parameters": [
|
|
31210
31196
|
{
|
|
@@ -31253,7 +31239,7 @@
|
|
|
31253
31239
|
"x-github": {
|
|
31254
31240
|
"githubCloudOnly": false,
|
|
31255
31241
|
"enabledForGitHubApps": true,
|
|
31256
|
-
"category": "
|
|
31242
|
+
"category": "deployments",
|
|
31257
31243
|
"subcategory": "environments"
|
|
31258
31244
|
},
|
|
31259
31245
|
"x-octokit": {}
|
|
@@ -31262,7 +31248,7 @@
|
|
|
31262
31248
|
"/repos/{owner}/{repo}/environments/{environment_name}": {
|
|
31263
31249
|
"get": {
|
|
31264
31250
|
"summary": "Get an environment",
|
|
31265
|
-
"description": "
|
|
31251
|
+
"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.",
|
|
31266
31252
|
"tags": [
|
|
31267
31253
|
"repos"
|
|
31268
31254
|
],
|
|
@@ -31309,7 +31295,7 @@
|
|
|
31309
31295
|
},
|
|
31310
31296
|
"put": {
|
|
31311
31297
|
"summary": "Create or update an environment",
|
|
31312
|
-
"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:**
|
|
31298
|
+
"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.",
|
|
31313
31299
|
"tags": [
|
|
31314
31300
|
"repos"
|
|
31315
31301
|
],
|
|
@@ -31359,10 +31345,31 @@
|
|
|
31359
31345
|
}
|
|
31360
31346
|
},
|
|
31361
31347
|
"deployment_branch_policy": {
|
|
31362
|
-
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
31348
|
+
"$ref": "#/components/schemas/deployment-branch-policy-settings"
|
|
31363
31349
|
}
|
|
31364
31350
|
},
|
|
31365
31351
|
"additionalProperties": false
|
|
31352
|
+
},
|
|
31353
|
+
"examples": {
|
|
31354
|
+
"default": {
|
|
31355
|
+
"value": {
|
|
31356
|
+
"wait_timer": 30,
|
|
31357
|
+
"reviewers": [
|
|
31358
|
+
{
|
|
31359
|
+
"type": "User",
|
|
31360
|
+
"id": 1
|
|
31361
|
+
},
|
|
31362
|
+
{
|
|
31363
|
+
"type": "Team",
|
|
31364
|
+
"id": 1
|
|
31365
|
+
}
|
|
31366
|
+
],
|
|
31367
|
+
"deployment_branch_policy": {
|
|
31368
|
+
"protected_branches": false,
|
|
31369
|
+
"custom_branch_policies": true
|
|
31370
|
+
}
|
|
31371
|
+
}
|
|
31372
|
+
}
|
|
31366
31373
|
}
|
|
31367
31374
|
}
|
|
31368
31375
|
}
|
|
@@ -31438,6 +31445,315 @@
|
|
|
31438
31445
|
"x-octokit": {}
|
|
31439
31446
|
}
|
|
31440
31447
|
},
|
|
31448
|
+
"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
|
|
31449
|
+
"get": {
|
|
31450
|
+
"summary": "List deployment branch policies",
|
|
31451
|
+
"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.",
|
|
31452
|
+
"tags": [
|
|
31453
|
+
"repos"
|
|
31454
|
+
],
|
|
31455
|
+
"operationId": "repos/list-deployment-branch-policies",
|
|
31456
|
+
"externalDocs": {
|
|
31457
|
+
"description": "API method documentation",
|
|
31458
|
+
"url": "https://docs.github.com/enterprise-server@3.5/rest/deployments/branch-policies#list-deployment-branch-policies"
|
|
31459
|
+
},
|
|
31460
|
+
"parameters": [
|
|
31461
|
+
{
|
|
31462
|
+
"$ref": "#/components/parameters/owner"
|
|
31463
|
+
},
|
|
31464
|
+
{
|
|
31465
|
+
"$ref": "#/components/parameters/repo"
|
|
31466
|
+
},
|
|
31467
|
+
{
|
|
31468
|
+
"$ref": "#/components/parameters/environment-name"
|
|
31469
|
+
},
|
|
31470
|
+
{
|
|
31471
|
+
"$ref": "#/components/parameters/per-page"
|
|
31472
|
+
},
|
|
31473
|
+
{
|
|
31474
|
+
"$ref": "#/components/parameters/page"
|
|
31475
|
+
}
|
|
31476
|
+
],
|
|
31477
|
+
"responses": {
|
|
31478
|
+
"200": {
|
|
31479
|
+
"description": "Response",
|
|
31480
|
+
"content": {
|
|
31481
|
+
"application/json": {
|
|
31482
|
+
"schema": {
|
|
31483
|
+
"type": "object",
|
|
31484
|
+
"properties": {
|
|
31485
|
+
"total_count": {
|
|
31486
|
+
"description": "The number of deployment branch policies for the environment.",
|
|
31487
|
+
"type": "integer",
|
|
31488
|
+
"example": 2
|
|
31489
|
+
},
|
|
31490
|
+
"branch_policies": {
|
|
31491
|
+
"type": "array",
|
|
31492
|
+
"items": {
|
|
31493
|
+
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
31494
|
+
}
|
|
31495
|
+
}
|
|
31496
|
+
},
|
|
31497
|
+
"required": [
|
|
31498
|
+
"total_count",
|
|
31499
|
+
"branch_policies"
|
|
31500
|
+
]
|
|
31501
|
+
},
|
|
31502
|
+
"examples": {
|
|
31503
|
+
"default": {
|
|
31504
|
+
"$ref": "#/components/examples/deployment-branch-policies-list"
|
|
31505
|
+
}
|
|
31506
|
+
}
|
|
31507
|
+
}
|
|
31508
|
+
}
|
|
31509
|
+
}
|
|
31510
|
+
},
|
|
31511
|
+
"x-github": {
|
|
31512
|
+
"githubCloudOnly": false,
|
|
31513
|
+
"enabledForGitHubApps": true,
|
|
31514
|
+
"category": "deployments",
|
|
31515
|
+
"subcategory": "branch-policies"
|
|
31516
|
+
},
|
|
31517
|
+
"x-octokit": {}
|
|
31518
|
+
},
|
|
31519
|
+
"post": {
|
|
31520
|
+
"summary": "Create a deployment branch policy",
|
|
31521
|
+
"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.",
|
|
31522
|
+
"tags": [
|
|
31523
|
+
"repos"
|
|
31524
|
+
],
|
|
31525
|
+
"operationId": "repos/create-deployment-branch-policy",
|
|
31526
|
+
"externalDocs": {
|
|
31527
|
+
"description": "API method documentation",
|
|
31528
|
+
"url": "https://docs.github.com/enterprise-server@3.5/rest/deployments/branch-policies#create-deployment-branch-policy"
|
|
31529
|
+
},
|
|
31530
|
+
"parameters": [
|
|
31531
|
+
{
|
|
31532
|
+
"$ref": "#/components/parameters/owner"
|
|
31533
|
+
},
|
|
31534
|
+
{
|
|
31535
|
+
"$ref": "#/components/parameters/repo"
|
|
31536
|
+
},
|
|
31537
|
+
{
|
|
31538
|
+
"$ref": "#/components/parameters/environment-name"
|
|
31539
|
+
}
|
|
31540
|
+
],
|
|
31541
|
+
"requestBody": {
|
|
31542
|
+
"required": true,
|
|
31543
|
+
"content": {
|
|
31544
|
+
"application/json": {
|
|
31545
|
+
"schema": {
|
|
31546
|
+
"$ref": "#/components/schemas/deployment-branch-policy-name-pattern"
|
|
31547
|
+
},
|
|
31548
|
+
"examples": {
|
|
31549
|
+
"example-wildcard": {
|
|
31550
|
+
"summary": "Example of a wildcard name pattern",
|
|
31551
|
+
"value": {
|
|
31552
|
+
"name": "release/*"
|
|
31553
|
+
}
|
|
31554
|
+
},
|
|
31555
|
+
"example-single-branch": {
|
|
31556
|
+
"summary": "Example of a single branch name pattern",
|
|
31557
|
+
"value": {
|
|
31558
|
+
"name": "main"
|
|
31559
|
+
}
|
|
31560
|
+
}
|
|
31561
|
+
}
|
|
31562
|
+
}
|
|
31563
|
+
}
|
|
31564
|
+
},
|
|
31565
|
+
"responses": {
|
|
31566
|
+
"200": {
|
|
31567
|
+
"description": "Response",
|
|
31568
|
+
"content": {
|
|
31569
|
+
"application/json": {
|
|
31570
|
+
"schema": {
|
|
31571
|
+
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
31572
|
+
},
|
|
31573
|
+
"examples": {
|
|
31574
|
+
"example-wildcard": {
|
|
31575
|
+
"$ref": "#/components/examples/deployment-branch-policy-wildcard"
|
|
31576
|
+
},
|
|
31577
|
+
"example-single-branch": {
|
|
31578
|
+
"$ref": "#/components/examples/deployment-branch-policy-single-branch"
|
|
31579
|
+
}
|
|
31580
|
+
}
|
|
31581
|
+
}
|
|
31582
|
+
}
|
|
31583
|
+
},
|
|
31584
|
+
"303": {
|
|
31585
|
+
"description": "Response if the same branch name pattern already exists"
|
|
31586
|
+
},
|
|
31587
|
+
"404": {
|
|
31588
|
+
"description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
|
|
31589
|
+
}
|
|
31590
|
+
},
|
|
31591
|
+
"x-github": {
|
|
31592
|
+
"githubCloudOnly": false,
|
|
31593
|
+
"enabledForGitHubApps": true,
|
|
31594
|
+
"category": "deployments",
|
|
31595
|
+
"subcategory": "branch-policies"
|
|
31596
|
+
},
|
|
31597
|
+
"x-octokit": {}
|
|
31598
|
+
}
|
|
31599
|
+
},
|
|
31600
|
+
"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
|
|
31601
|
+
"get": {
|
|
31602
|
+
"summary": "Get a deployment branch policy",
|
|
31603
|
+
"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.",
|
|
31604
|
+
"tags": [
|
|
31605
|
+
"repos"
|
|
31606
|
+
],
|
|
31607
|
+
"operationId": "repos/get-deployment-branch-policy",
|
|
31608
|
+
"externalDocs": {
|
|
31609
|
+
"description": "API method documentation",
|
|
31610
|
+
"url": "https://docs.github.com/enterprise-server@3.5/rest/deployments/branch-policies#get-deployment-branch-policy"
|
|
31611
|
+
},
|
|
31612
|
+
"parameters": [
|
|
31613
|
+
{
|
|
31614
|
+
"$ref": "#/components/parameters/owner"
|
|
31615
|
+
},
|
|
31616
|
+
{
|
|
31617
|
+
"$ref": "#/components/parameters/repo"
|
|
31618
|
+
},
|
|
31619
|
+
{
|
|
31620
|
+
"$ref": "#/components/parameters/environment-name"
|
|
31621
|
+
},
|
|
31622
|
+
{
|
|
31623
|
+
"$ref": "#/components/parameters/branch-policy-id"
|
|
31624
|
+
}
|
|
31625
|
+
],
|
|
31626
|
+
"responses": {
|
|
31627
|
+
"200": {
|
|
31628
|
+
"description": "Response",
|
|
31629
|
+
"content": {
|
|
31630
|
+
"application/json": {
|
|
31631
|
+
"schema": {
|
|
31632
|
+
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
31633
|
+
},
|
|
31634
|
+
"examples": {
|
|
31635
|
+
"default": {
|
|
31636
|
+
"$ref": "#/components/examples/deployment-branch-policy-wildcard"
|
|
31637
|
+
}
|
|
31638
|
+
}
|
|
31639
|
+
}
|
|
31640
|
+
}
|
|
31641
|
+
}
|
|
31642
|
+
},
|
|
31643
|
+
"x-github": {
|
|
31644
|
+
"githubCloudOnly": false,
|
|
31645
|
+
"enabledForGitHubApps": true,
|
|
31646
|
+
"category": "deployments",
|
|
31647
|
+
"subcategory": "branch-policies"
|
|
31648
|
+
},
|
|
31649
|
+
"x-octokit": {}
|
|
31650
|
+
},
|
|
31651
|
+
"put": {
|
|
31652
|
+
"summary": "Update a deployment branch policy",
|
|
31653
|
+
"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.",
|
|
31654
|
+
"tags": [
|
|
31655
|
+
"repos"
|
|
31656
|
+
],
|
|
31657
|
+
"operationId": "repos/update-deployment-branch-policy",
|
|
31658
|
+
"externalDocs": {
|
|
31659
|
+
"description": "API method documentation",
|
|
31660
|
+
"url": "https://docs.github.com/enterprise-server@3.5/rest/deployments/branch-policies#update-deployment-branch-policy"
|
|
31661
|
+
},
|
|
31662
|
+
"parameters": [
|
|
31663
|
+
{
|
|
31664
|
+
"$ref": "#/components/parameters/owner"
|
|
31665
|
+
},
|
|
31666
|
+
{
|
|
31667
|
+
"$ref": "#/components/parameters/repo"
|
|
31668
|
+
},
|
|
31669
|
+
{
|
|
31670
|
+
"$ref": "#/components/parameters/environment-name"
|
|
31671
|
+
},
|
|
31672
|
+
{
|
|
31673
|
+
"$ref": "#/components/parameters/branch-policy-id"
|
|
31674
|
+
}
|
|
31675
|
+
],
|
|
31676
|
+
"requestBody": {
|
|
31677
|
+
"required": true,
|
|
31678
|
+
"content": {
|
|
31679
|
+
"application/json": {
|
|
31680
|
+
"schema": {
|
|
31681
|
+
"$ref": "#/components/schemas/deployment-branch-policy-name-pattern"
|
|
31682
|
+
},
|
|
31683
|
+
"examples": {
|
|
31684
|
+
"default": {
|
|
31685
|
+
"value": {
|
|
31686
|
+
"name": "release/*"
|
|
31687
|
+
}
|
|
31688
|
+
}
|
|
31689
|
+
}
|
|
31690
|
+
}
|
|
31691
|
+
}
|
|
31692
|
+
},
|
|
31693
|
+
"responses": {
|
|
31694
|
+
"200": {
|
|
31695
|
+
"description": "Response",
|
|
31696
|
+
"content": {
|
|
31697
|
+
"application/json": {
|
|
31698
|
+
"schema": {
|
|
31699
|
+
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
31700
|
+
},
|
|
31701
|
+
"examples": {
|
|
31702
|
+
"default": {
|
|
31703
|
+
"$ref": "#/components/examples/deployment-branch-policy-wildcard"
|
|
31704
|
+
}
|
|
31705
|
+
}
|
|
31706
|
+
}
|
|
31707
|
+
}
|
|
31708
|
+
}
|
|
31709
|
+
},
|
|
31710
|
+
"x-github": {
|
|
31711
|
+
"githubCloudOnly": false,
|
|
31712
|
+
"enabledForGitHubApps": true,
|
|
31713
|
+
"category": "deployments",
|
|
31714
|
+
"subcategory": "branch-policies"
|
|
31715
|
+
},
|
|
31716
|
+
"x-octokit": {}
|
|
31717
|
+
},
|
|
31718
|
+
"delete": {
|
|
31719
|
+
"summary": "Delete a deployment branch policy",
|
|
31720
|
+
"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.",
|
|
31721
|
+
"tags": [
|
|
31722
|
+
"repos"
|
|
31723
|
+
],
|
|
31724
|
+
"operationId": "repos/delete-deployment-branch-policy",
|
|
31725
|
+
"externalDocs": {
|
|
31726
|
+
"description": "API method documentation",
|
|
31727
|
+
"url": "https://docs.github.com/enterprise-server@3.5/rest/deployments/branch-policies#delete-deployment-branch-policy"
|
|
31728
|
+
},
|
|
31729
|
+
"parameters": [
|
|
31730
|
+
{
|
|
31731
|
+
"$ref": "#/components/parameters/owner"
|
|
31732
|
+
},
|
|
31733
|
+
{
|
|
31734
|
+
"$ref": "#/components/parameters/repo"
|
|
31735
|
+
},
|
|
31736
|
+
{
|
|
31737
|
+
"$ref": "#/components/parameters/environment-name"
|
|
31738
|
+
},
|
|
31739
|
+
{
|
|
31740
|
+
"$ref": "#/components/parameters/branch-policy-id"
|
|
31741
|
+
}
|
|
31742
|
+
],
|
|
31743
|
+
"responses": {
|
|
31744
|
+
"204": {
|
|
31745
|
+
"description": "Response"
|
|
31746
|
+
}
|
|
31747
|
+
},
|
|
31748
|
+
"x-github": {
|
|
31749
|
+
"githubCloudOnly": false,
|
|
31750
|
+
"enabledForGitHubApps": true,
|
|
31751
|
+
"category": "deployments",
|
|
31752
|
+
"subcategory": "branch-policies"
|
|
31753
|
+
},
|
|
31754
|
+
"x-octokit": {}
|
|
31755
|
+
}
|
|
31756
|
+
},
|
|
31441
31757
|
"/repos/{owner}/{repo}/events": {
|
|
31442
31758
|
"get": {
|
|
31443
31759
|
"summary": "List repository events",
|
|
@@ -52809,6 +53125,12 @@
|
|
|
52809
53125
|
"text/plain": {
|
|
52810
53126
|
"schema": {
|
|
52811
53127
|
"type": "string"
|
|
53128
|
+
},
|
|
53129
|
+
"examples": {
|
|
53130
|
+
"default": {
|
|
53131
|
+
"summary": "Example response",
|
|
53132
|
+
"value": "Responsive is better than fast"
|
|
53133
|
+
}
|
|
52812
53134
|
}
|
|
52813
53135
|
}
|
|
52814
53136
|
}
|
|
@@ -54002,6 +54324,14 @@
|
|
|
54002
54324
|
"write"
|
|
54003
54325
|
]
|
|
54004
54326
|
},
|
|
54327
|
+
"organization_custom_roles": {
|
|
54328
|
+
"type": "string",
|
|
54329
|
+
"description": "The level of permission to grant the access token for custom roles management.",
|
|
54330
|
+
"enum": [
|
|
54331
|
+
"read",
|
|
54332
|
+
"write"
|
|
54333
|
+
]
|
|
54334
|
+
},
|
|
54005
54335
|
"deployments": {
|
|
54006
54336
|
"type": "string",
|
|
54007
54337
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -68164,7 +68494,13 @@
|
|
|
68164
68494
|
"type": "object",
|
|
68165
68495
|
"properties": {
|
|
68166
68496
|
"type": {
|
|
68167
|
-
"type": "string"
|
|
68497
|
+
"type": "string",
|
|
68498
|
+
"enum": [
|
|
68499
|
+
"dir",
|
|
68500
|
+
"file",
|
|
68501
|
+
"submodule",
|
|
68502
|
+
"symlink"
|
|
68503
|
+
]
|
|
68168
68504
|
},
|
|
68169
68505
|
"size": {
|
|
68170
68506
|
"type": "integer"
|
|
@@ -68245,7 +68581,10 @@
|
|
|
68245
68581
|
"type": "object",
|
|
68246
68582
|
"properties": {
|
|
68247
68583
|
"type": {
|
|
68248
|
-
"type": "string"
|
|
68584
|
+
"type": "string",
|
|
68585
|
+
"enum": [
|
|
68586
|
+
"file"
|
|
68587
|
+
]
|
|
68249
68588
|
},
|
|
68250
68589
|
"encoding": {
|
|
68251
68590
|
"type": "string"
|
|
@@ -68338,7 +68677,10 @@
|
|
|
68338
68677
|
"type": "object",
|
|
68339
68678
|
"properties": {
|
|
68340
68679
|
"type": {
|
|
68341
|
-
"type": "string"
|
|
68680
|
+
"type": "string",
|
|
68681
|
+
"enum": [
|
|
68682
|
+
"symlink"
|
|
68683
|
+
]
|
|
68342
68684
|
},
|
|
68343
68685
|
"target": {
|
|
68344
68686
|
"type": "string"
|
|
@@ -68414,12 +68756,15 @@
|
|
|
68414
68756
|
]
|
|
68415
68757
|
},
|
|
68416
68758
|
"content-submodule": {
|
|
68417
|
-
"title": "
|
|
68418
|
-
"description": "An object describing a
|
|
68759
|
+
"title": "Submodule Content",
|
|
68760
|
+
"description": "An object describing a submodule",
|
|
68419
68761
|
"type": "object",
|
|
68420
68762
|
"properties": {
|
|
68421
68763
|
"type": {
|
|
68422
|
-
"type": "string"
|
|
68764
|
+
"type": "string",
|
|
68765
|
+
"enum": [
|
|
68766
|
+
"submodule"
|
|
68767
|
+
]
|
|
68423
68768
|
},
|
|
68424
68769
|
"submodule_git_url": {
|
|
68425
68770
|
"type": "string",
|
|
@@ -68868,7 +69213,7 @@
|
|
|
68868
69213
|
"example": 30,
|
|
68869
69214
|
"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)."
|
|
68870
69215
|
},
|
|
68871
|
-
"deployment-branch-policy": {
|
|
69216
|
+
"deployment-branch-policy-settings": {
|
|
68872
69217
|
"type": "object",
|
|
68873
69218
|
"description": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.",
|
|
68874
69219
|
"properties": {
|
|
@@ -69025,7 +69370,7 @@
|
|
|
69025
69370
|
}
|
|
69026
69371
|
},
|
|
69027
69372
|
"deployment_branch_policy": {
|
|
69028
|
-
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
69373
|
+
"$ref": "#/components/schemas/deployment-branch-policy-settings"
|
|
69029
69374
|
}
|
|
69030
69375
|
},
|
|
69031
69376
|
"required": [
|
|
@@ -69038,6 +69383,41 @@
|
|
|
69038
69383
|
"updated_at"
|
|
69039
69384
|
]
|
|
69040
69385
|
},
|
|
69386
|
+
"deployment-branch-policy": {
|
|
69387
|
+
"title": "Deployment branch policy",
|
|
69388
|
+
"description": "Details of a deployment branch policy.",
|
|
69389
|
+
"type": "object",
|
|
69390
|
+
"properties": {
|
|
69391
|
+
"id": {
|
|
69392
|
+
"description": "The unique identifier of the branch policy.",
|
|
69393
|
+
"type": "integer",
|
|
69394
|
+
"example": 361471
|
|
69395
|
+
},
|
|
69396
|
+
"node_id": {
|
|
69397
|
+
"type": "string",
|
|
69398
|
+
"example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
|
|
69399
|
+
},
|
|
69400
|
+
"name": {
|
|
69401
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.",
|
|
69402
|
+
"type": "string",
|
|
69403
|
+
"example": "release/*"
|
|
69404
|
+
}
|
|
69405
|
+
}
|
|
69406
|
+
},
|
|
69407
|
+
"deployment-branch-policy-name-pattern": {
|
|
69408
|
+
"title": "Deployment branch policy name pattern",
|
|
69409
|
+
"type": "object",
|
|
69410
|
+
"properties": {
|
|
69411
|
+
"name": {
|
|
69412
|
+
"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).",
|
|
69413
|
+
"type": "string",
|
|
69414
|
+
"example": "release/*"
|
|
69415
|
+
}
|
|
69416
|
+
},
|
|
69417
|
+
"required": [
|
|
69418
|
+
"name"
|
|
69419
|
+
]
|
|
69420
|
+
},
|
|
69041
69421
|
"short-blob": {
|
|
69042
69422
|
"title": "Short Blob",
|
|
69043
69423
|
"description": "Short Blob",
|
|
@@ -91454,6 +91834,37 @@
|
|
|
91454
91834
|
}
|
|
91455
91835
|
}
|
|
91456
91836
|
},
|
|
91837
|
+
"deployment-branch-policies-list": {
|
|
91838
|
+
"value": {
|
|
91839
|
+
"total_count": 2,
|
|
91840
|
+
"branch_policies": [
|
|
91841
|
+
{
|
|
91842
|
+
"id": 361471,
|
|
91843
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
|
|
91844
|
+
"name": "release/*"
|
|
91845
|
+
},
|
|
91846
|
+
{
|
|
91847
|
+
"id": 361472,
|
|
91848
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
|
|
91849
|
+
"name": "main"
|
|
91850
|
+
}
|
|
91851
|
+
]
|
|
91852
|
+
}
|
|
91853
|
+
},
|
|
91854
|
+
"deployment-branch-policy-wildcard": {
|
|
91855
|
+
"value": {
|
|
91856
|
+
"id": 364662,
|
|
91857
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
|
|
91858
|
+
"name": "release/*"
|
|
91859
|
+
}
|
|
91860
|
+
},
|
|
91861
|
+
"deployment-branch-policy-single-branch": {
|
|
91862
|
+
"value": {
|
|
91863
|
+
"id": 364663,
|
|
91864
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
|
|
91865
|
+
"name": "main"
|
|
91866
|
+
}
|
|
91867
|
+
},
|
|
91457
91868
|
"repo-events-items": {
|
|
91458
91869
|
"value": [
|
|
91459
91870
|
{
|
|
@@ -100365,11 +100776,20 @@
|
|
|
100365
100776
|
"name": "environment_name",
|
|
100366
100777
|
"in": "path",
|
|
100367
100778
|
"required": true,
|
|
100368
|
-
"description": "The name of the environment",
|
|
100779
|
+
"description": "The name of the environment.",
|
|
100369
100780
|
"schema": {
|
|
100370
100781
|
"type": "string"
|
|
100371
100782
|
}
|
|
100372
100783
|
},
|
|
100784
|
+
"branch-policy-id": {
|
|
100785
|
+
"name": "branch_policy_id",
|
|
100786
|
+
"in": "path",
|
|
100787
|
+
"required": true,
|
|
100788
|
+
"description": "The unique identifier of the branch policy.",
|
|
100789
|
+
"schema": {
|
|
100790
|
+
"type": "integer"
|
|
100791
|
+
}
|
|
100792
|
+
},
|
|
100373
100793
|
"invitation-id": {
|
|
100374
100794
|
"name": "invitation_id",
|
|
100375
100795
|
"description": "The unique identifier of the invitation.",
|