@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
|
@@ -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": {
|
|
@@ -110151,13 +110151,6 @@
|
|
|
110151
110151
|
"permission": {
|
|
110152
110152
|
"type": "string",
|
|
110153
110153
|
"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.",
|
|
110154
|
-
"enum": [
|
|
110155
|
-
"pull",
|
|
110156
|
-
"push",
|
|
110157
|
-
"admin",
|
|
110158
|
-
"maintain",
|
|
110159
|
-
"triage"
|
|
110160
|
-
],
|
|
110161
110154
|
"default": "push"
|
|
110162
110155
|
}
|
|
110163
110156
|
}
|
|
@@ -185617,13 +185610,6 @@
|
|
|
185617
185610
|
"permission": {
|
|
185618
185611
|
"type": "string",
|
|
185619
185612
|
"description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
|
|
185620
|
-
"enum": [
|
|
185621
|
-
"pull",
|
|
185622
|
-
"push",
|
|
185623
|
-
"admin",
|
|
185624
|
-
"maintain",
|
|
185625
|
-
"triage"
|
|
185626
|
-
],
|
|
185627
185613
|
"default": "push"
|
|
185628
185614
|
}
|
|
185629
185615
|
}
|
|
@@ -205650,7 +205636,13 @@
|
|
|
205650
205636
|
"type": "object",
|
|
205651
205637
|
"properties": {
|
|
205652
205638
|
"type": {
|
|
205653
|
-
"type": "string"
|
|
205639
|
+
"type": "string",
|
|
205640
|
+
"enum": [
|
|
205641
|
+
"dir",
|
|
205642
|
+
"file",
|
|
205643
|
+
"submodule",
|
|
205644
|
+
"symlink"
|
|
205645
|
+
]
|
|
205654
205646
|
},
|
|
205655
205647
|
"size": {
|
|
205656
205648
|
"type": "integer"
|
|
@@ -205731,7 +205723,10 @@
|
|
|
205731
205723
|
"type": "object",
|
|
205732
205724
|
"properties": {
|
|
205733
205725
|
"type": {
|
|
205734
|
-
"type": "string"
|
|
205726
|
+
"type": "string",
|
|
205727
|
+
"enum": [
|
|
205728
|
+
"file"
|
|
205729
|
+
]
|
|
205735
205730
|
},
|
|
205736
205731
|
"encoding": {
|
|
205737
205732
|
"type": "string"
|
|
@@ -205824,7 +205819,10 @@
|
|
|
205824
205819
|
"type": "object",
|
|
205825
205820
|
"properties": {
|
|
205826
205821
|
"type": {
|
|
205827
|
-
"type": "string"
|
|
205822
|
+
"type": "string",
|
|
205823
|
+
"enum": [
|
|
205824
|
+
"symlink"
|
|
205825
|
+
]
|
|
205828
205826
|
},
|
|
205829
205827
|
"target": {
|
|
205830
205828
|
"type": "string"
|
|
@@ -205900,12 +205898,15 @@
|
|
|
205900
205898
|
]
|
|
205901
205899
|
},
|
|
205902
205900
|
{
|
|
205903
|
-
"title": "
|
|
205904
|
-
"description": "An object describing a
|
|
205901
|
+
"title": "Submodule Content",
|
|
205902
|
+
"description": "An object describing a submodule",
|
|
205905
205903
|
"type": "object",
|
|
205906
205904
|
"properties": {
|
|
205907
205905
|
"type": {
|
|
205908
|
-
"type": "string"
|
|
205906
|
+
"type": "string",
|
|
205907
|
+
"enum": [
|
|
205908
|
+
"submodule"
|
|
205909
|
+
]
|
|
205909
205910
|
},
|
|
205910
205911
|
"submodule_git_url": {
|
|
205911
205912
|
"type": "string",
|
|
@@ -212212,15 +212213,15 @@
|
|
|
212212
212213
|
},
|
|
212213
212214
|
"/repos/{owner}/{repo}/environments": {
|
|
212214
212215
|
"get": {
|
|
212215
|
-
"summary": "
|
|
212216
|
-
"description": "
|
|
212216
|
+
"summary": "List environments",
|
|
212217
|
+
"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.",
|
|
212217
212218
|
"tags": [
|
|
212218
212219
|
"repos"
|
|
212219
212220
|
],
|
|
212220
212221
|
"operationId": "repos/get-all-environments",
|
|
212221
212222
|
"externalDocs": {
|
|
212222
212223
|
"description": "API method documentation",
|
|
212223
|
-
"url": "https://docs.github.com/enterprise-server@3.4/rest/
|
|
212224
|
+
"url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/environments#list-environments"
|
|
212224
212225
|
},
|
|
212225
212226
|
"parameters": [
|
|
212226
212227
|
{
|
|
@@ -212819,7 +212820,7 @@
|
|
|
212819
212820
|
"x-github": {
|
|
212820
212821
|
"githubCloudOnly": false,
|
|
212821
212822
|
"enabledForGitHubApps": true,
|
|
212822
|
-
"category": "
|
|
212823
|
+
"category": "deployments",
|
|
212823
212824
|
"subcategory": "environments"
|
|
212824
212825
|
},
|
|
212825
212826
|
"x-octokit": {}
|
|
@@ -212828,7 +212829,7 @@
|
|
|
212828
212829
|
"/repos/{owner}/{repo}/environments/{environment_name}": {
|
|
212829
212830
|
"get": {
|
|
212830
212831
|
"summary": "Get an environment",
|
|
212831
|
-
"description": "
|
|
212832
|
+
"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.",
|
|
212832
212833
|
"tags": [
|
|
212833
212834
|
"repos"
|
|
212834
212835
|
],
|
|
@@ -212860,7 +212861,7 @@
|
|
|
212860
212861
|
"name": "environment_name",
|
|
212861
212862
|
"in": "path",
|
|
212862
212863
|
"required": true,
|
|
212863
|
-
"description": "The name of the environment",
|
|
212864
|
+
"description": "The name of the environment.",
|
|
212864
212865
|
"schema": {
|
|
212865
212866
|
"type": "string"
|
|
212866
212867
|
}
|
|
@@ -213414,7 +213415,7 @@
|
|
|
213414
213415
|
},
|
|
213415
213416
|
"put": {
|
|
213416
213417
|
"summary": "Create or update an environment",
|
|
213417
|
-
"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:**
|
|
213418
|
+
"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.",
|
|
213418
213419
|
"tags": [
|
|
213419
213420
|
"repos"
|
|
213420
213421
|
],
|
|
@@ -213446,7 +213447,7 @@
|
|
|
213446
213447
|
"name": "environment_name",
|
|
213447
213448
|
"in": "path",
|
|
213448
213449
|
"required": true,
|
|
213449
|
-
"description": "The name of the environment",
|
|
213450
|
+
"description": "The name of the environment.",
|
|
213450
213451
|
"schema": {
|
|
213451
213452
|
"type": "string"
|
|
213452
213453
|
}
|
|
@@ -213510,6 +213511,27 @@
|
|
|
213510
213511
|
}
|
|
213511
213512
|
},
|
|
213512
213513
|
"additionalProperties": false
|
|
213514
|
+
},
|
|
213515
|
+
"examples": {
|
|
213516
|
+
"default": {
|
|
213517
|
+
"value": {
|
|
213518
|
+
"wait_timer": 30,
|
|
213519
|
+
"reviewers": [
|
|
213520
|
+
{
|
|
213521
|
+
"type": "User",
|
|
213522
|
+
"id": 1
|
|
213523
|
+
},
|
|
213524
|
+
{
|
|
213525
|
+
"type": "Team",
|
|
213526
|
+
"id": 1
|
|
213527
|
+
}
|
|
213528
|
+
],
|
|
213529
|
+
"deployment_branch_policy": {
|
|
213530
|
+
"protected_branches": false,
|
|
213531
|
+
"custom_branch_policies": true
|
|
213532
|
+
}
|
|
213533
|
+
}
|
|
213534
|
+
}
|
|
213513
213535
|
}
|
|
213514
213536
|
}
|
|
213515
213537
|
}
|
|
@@ -214120,7 +214142,7 @@
|
|
|
214120
214142
|
"name": "environment_name",
|
|
214121
214143
|
"in": "path",
|
|
214122
214144
|
"required": true,
|
|
214123
|
-
"description": "The name of the environment",
|
|
214145
|
+
"description": "The name of the environment.",
|
|
214124
214146
|
"schema": {
|
|
214125
214147
|
"type": "string"
|
|
214126
214148
|
}
|
|
@@ -214140,6 +214162,559 @@
|
|
|
214140
214162
|
"x-octokit": {}
|
|
214141
214163
|
}
|
|
214142
214164
|
},
|
|
214165
|
+
"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
|
|
214166
|
+
"get": {
|
|
214167
|
+
"summary": "List deployment branch policies",
|
|
214168
|
+
"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.",
|
|
214169
|
+
"tags": [
|
|
214170
|
+
"repos"
|
|
214171
|
+
],
|
|
214172
|
+
"operationId": "repos/list-deployment-branch-policies",
|
|
214173
|
+
"externalDocs": {
|
|
214174
|
+
"description": "API method documentation",
|
|
214175
|
+
"url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/branch-policies#list-deployment-branch-policies"
|
|
214176
|
+
},
|
|
214177
|
+
"parameters": [
|
|
214178
|
+
{
|
|
214179
|
+
"name": "owner",
|
|
214180
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
214181
|
+
"in": "path",
|
|
214182
|
+
"required": true,
|
|
214183
|
+
"schema": {
|
|
214184
|
+
"type": "string"
|
|
214185
|
+
}
|
|
214186
|
+
},
|
|
214187
|
+
{
|
|
214188
|
+
"name": "repo",
|
|
214189
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
214190
|
+
"in": "path",
|
|
214191
|
+
"required": true,
|
|
214192
|
+
"schema": {
|
|
214193
|
+
"type": "string"
|
|
214194
|
+
}
|
|
214195
|
+
},
|
|
214196
|
+
{
|
|
214197
|
+
"name": "environment_name",
|
|
214198
|
+
"in": "path",
|
|
214199
|
+
"required": true,
|
|
214200
|
+
"description": "The name of the environment.",
|
|
214201
|
+
"schema": {
|
|
214202
|
+
"type": "string"
|
|
214203
|
+
}
|
|
214204
|
+
},
|
|
214205
|
+
{
|
|
214206
|
+
"name": "per_page",
|
|
214207
|
+
"description": "The number of results per page (max 100).",
|
|
214208
|
+
"in": "query",
|
|
214209
|
+
"schema": {
|
|
214210
|
+
"type": "integer",
|
|
214211
|
+
"default": 30
|
|
214212
|
+
}
|
|
214213
|
+
},
|
|
214214
|
+
{
|
|
214215
|
+
"name": "page",
|
|
214216
|
+
"description": "Page number of the results to fetch.",
|
|
214217
|
+
"in": "query",
|
|
214218
|
+
"schema": {
|
|
214219
|
+
"type": "integer",
|
|
214220
|
+
"default": 1
|
|
214221
|
+
}
|
|
214222
|
+
}
|
|
214223
|
+
],
|
|
214224
|
+
"responses": {
|
|
214225
|
+
"200": {
|
|
214226
|
+
"description": "Response",
|
|
214227
|
+
"content": {
|
|
214228
|
+
"application/json": {
|
|
214229
|
+
"schema": {
|
|
214230
|
+
"type": "object",
|
|
214231
|
+
"properties": {
|
|
214232
|
+
"total_count": {
|
|
214233
|
+
"description": "The number of deployment branch policies for the environment.",
|
|
214234
|
+
"type": "integer",
|
|
214235
|
+
"example": 2
|
|
214236
|
+
},
|
|
214237
|
+
"branch_policies": {
|
|
214238
|
+
"type": "array",
|
|
214239
|
+
"items": {
|
|
214240
|
+
"title": "Deployment branch policy",
|
|
214241
|
+
"description": "Details of a deployment branch policy.",
|
|
214242
|
+
"type": "object",
|
|
214243
|
+
"properties": {
|
|
214244
|
+
"id": {
|
|
214245
|
+
"description": "The unique identifier of the branch policy.",
|
|
214246
|
+
"type": "integer",
|
|
214247
|
+
"example": 361471
|
|
214248
|
+
},
|
|
214249
|
+
"node_id": {
|
|
214250
|
+
"type": "string",
|
|
214251
|
+
"example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
|
|
214252
|
+
},
|
|
214253
|
+
"name": {
|
|
214254
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.",
|
|
214255
|
+
"type": "string",
|
|
214256
|
+
"example": "release/*"
|
|
214257
|
+
}
|
|
214258
|
+
}
|
|
214259
|
+
}
|
|
214260
|
+
}
|
|
214261
|
+
},
|
|
214262
|
+
"required": [
|
|
214263
|
+
"total_count",
|
|
214264
|
+
"branch_policies"
|
|
214265
|
+
]
|
|
214266
|
+
},
|
|
214267
|
+
"examples": {
|
|
214268
|
+
"default": {
|
|
214269
|
+
"value": {
|
|
214270
|
+
"total_count": 2,
|
|
214271
|
+
"branch_policies": [
|
|
214272
|
+
{
|
|
214273
|
+
"id": 361471,
|
|
214274
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
|
|
214275
|
+
"name": "release/*"
|
|
214276
|
+
},
|
|
214277
|
+
{
|
|
214278
|
+
"id": 361472,
|
|
214279
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
|
|
214280
|
+
"name": "main"
|
|
214281
|
+
}
|
|
214282
|
+
]
|
|
214283
|
+
}
|
|
214284
|
+
}
|
|
214285
|
+
}
|
|
214286
|
+
}
|
|
214287
|
+
}
|
|
214288
|
+
}
|
|
214289
|
+
},
|
|
214290
|
+
"x-github": {
|
|
214291
|
+
"githubCloudOnly": false,
|
|
214292
|
+
"enabledForGitHubApps": true,
|
|
214293
|
+
"category": "deployments",
|
|
214294
|
+
"subcategory": "branch-policies"
|
|
214295
|
+
},
|
|
214296
|
+
"x-octokit": {}
|
|
214297
|
+
},
|
|
214298
|
+
"post": {
|
|
214299
|
+
"summary": "Create a deployment branch policy",
|
|
214300
|
+
"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.",
|
|
214301
|
+
"tags": [
|
|
214302
|
+
"repos"
|
|
214303
|
+
],
|
|
214304
|
+
"operationId": "repos/create-deployment-branch-policy",
|
|
214305
|
+
"externalDocs": {
|
|
214306
|
+
"description": "API method documentation",
|
|
214307
|
+
"url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/branch-policies#create-deployment-branch-policy"
|
|
214308
|
+
},
|
|
214309
|
+
"parameters": [
|
|
214310
|
+
{
|
|
214311
|
+
"name": "owner",
|
|
214312
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
214313
|
+
"in": "path",
|
|
214314
|
+
"required": true,
|
|
214315
|
+
"schema": {
|
|
214316
|
+
"type": "string"
|
|
214317
|
+
}
|
|
214318
|
+
},
|
|
214319
|
+
{
|
|
214320
|
+
"name": "repo",
|
|
214321
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
214322
|
+
"in": "path",
|
|
214323
|
+
"required": true,
|
|
214324
|
+
"schema": {
|
|
214325
|
+
"type": "string"
|
|
214326
|
+
}
|
|
214327
|
+
},
|
|
214328
|
+
{
|
|
214329
|
+
"name": "environment_name",
|
|
214330
|
+
"in": "path",
|
|
214331
|
+
"required": true,
|
|
214332
|
+
"description": "The name of the environment.",
|
|
214333
|
+
"schema": {
|
|
214334
|
+
"type": "string"
|
|
214335
|
+
}
|
|
214336
|
+
}
|
|
214337
|
+
],
|
|
214338
|
+
"requestBody": {
|
|
214339
|
+
"required": true,
|
|
214340
|
+
"content": {
|
|
214341
|
+
"application/json": {
|
|
214342
|
+
"schema": {
|
|
214343
|
+
"title": "Deployment branch policy name pattern",
|
|
214344
|
+
"type": "object",
|
|
214345
|
+
"properties": {
|
|
214346
|
+
"name": {
|
|
214347
|
+
"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).",
|
|
214348
|
+
"type": "string",
|
|
214349
|
+
"example": "release/*"
|
|
214350
|
+
}
|
|
214351
|
+
},
|
|
214352
|
+
"required": [
|
|
214353
|
+
"name"
|
|
214354
|
+
]
|
|
214355
|
+
},
|
|
214356
|
+
"examples": {
|
|
214357
|
+
"example-wildcard": {
|
|
214358
|
+
"summary": "Example of a wildcard name pattern",
|
|
214359
|
+
"value": {
|
|
214360
|
+
"name": "release/*"
|
|
214361
|
+
}
|
|
214362
|
+
},
|
|
214363
|
+
"example-single-branch": {
|
|
214364
|
+
"summary": "Example of a single branch name pattern",
|
|
214365
|
+
"value": {
|
|
214366
|
+
"name": "main"
|
|
214367
|
+
}
|
|
214368
|
+
}
|
|
214369
|
+
}
|
|
214370
|
+
}
|
|
214371
|
+
}
|
|
214372
|
+
},
|
|
214373
|
+
"responses": {
|
|
214374
|
+
"200": {
|
|
214375
|
+
"description": "Response",
|
|
214376
|
+
"content": {
|
|
214377
|
+
"application/json": {
|
|
214378
|
+
"schema": {
|
|
214379
|
+
"title": "Deployment branch policy",
|
|
214380
|
+
"description": "Details of a deployment branch policy.",
|
|
214381
|
+
"type": "object",
|
|
214382
|
+
"properties": {
|
|
214383
|
+
"id": {
|
|
214384
|
+
"description": "The unique identifier of the branch policy.",
|
|
214385
|
+
"type": "integer",
|
|
214386
|
+
"example": 361471
|
|
214387
|
+
},
|
|
214388
|
+
"node_id": {
|
|
214389
|
+
"type": "string",
|
|
214390
|
+
"example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
|
|
214391
|
+
},
|
|
214392
|
+
"name": {
|
|
214393
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.",
|
|
214394
|
+
"type": "string",
|
|
214395
|
+
"example": "release/*"
|
|
214396
|
+
}
|
|
214397
|
+
}
|
|
214398
|
+
},
|
|
214399
|
+
"examples": {
|
|
214400
|
+
"example-wildcard": {
|
|
214401
|
+
"value": {
|
|
214402
|
+
"id": 364662,
|
|
214403
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
|
|
214404
|
+
"name": "release/*"
|
|
214405
|
+
}
|
|
214406
|
+
},
|
|
214407
|
+
"example-single-branch": {
|
|
214408
|
+
"value": {
|
|
214409
|
+
"id": 364663,
|
|
214410
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
|
|
214411
|
+
"name": "main"
|
|
214412
|
+
}
|
|
214413
|
+
}
|
|
214414
|
+
}
|
|
214415
|
+
}
|
|
214416
|
+
}
|
|
214417
|
+
},
|
|
214418
|
+
"303": {
|
|
214419
|
+
"description": "Response if the same branch name pattern already exists"
|
|
214420
|
+
},
|
|
214421
|
+
"404": {
|
|
214422
|
+
"description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
|
|
214423
|
+
}
|
|
214424
|
+
},
|
|
214425
|
+
"x-github": {
|
|
214426
|
+
"githubCloudOnly": false,
|
|
214427
|
+
"enabledForGitHubApps": true,
|
|
214428
|
+
"category": "deployments",
|
|
214429
|
+
"subcategory": "branch-policies"
|
|
214430
|
+
},
|
|
214431
|
+
"x-octokit": {}
|
|
214432
|
+
}
|
|
214433
|
+
},
|
|
214434
|
+
"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
|
|
214435
|
+
"get": {
|
|
214436
|
+
"summary": "Get a deployment branch policy",
|
|
214437
|
+
"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.",
|
|
214438
|
+
"tags": [
|
|
214439
|
+
"repos"
|
|
214440
|
+
],
|
|
214441
|
+
"operationId": "repos/get-deployment-branch-policy",
|
|
214442
|
+
"externalDocs": {
|
|
214443
|
+
"description": "API method documentation",
|
|
214444
|
+
"url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/branch-policies#get-deployment-branch-policy"
|
|
214445
|
+
},
|
|
214446
|
+
"parameters": [
|
|
214447
|
+
{
|
|
214448
|
+
"name": "owner",
|
|
214449
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
214450
|
+
"in": "path",
|
|
214451
|
+
"required": true,
|
|
214452
|
+
"schema": {
|
|
214453
|
+
"type": "string"
|
|
214454
|
+
}
|
|
214455
|
+
},
|
|
214456
|
+
{
|
|
214457
|
+
"name": "repo",
|
|
214458
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
214459
|
+
"in": "path",
|
|
214460
|
+
"required": true,
|
|
214461
|
+
"schema": {
|
|
214462
|
+
"type": "string"
|
|
214463
|
+
}
|
|
214464
|
+
},
|
|
214465
|
+
{
|
|
214466
|
+
"name": "environment_name",
|
|
214467
|
+
"in": "path",
|
|
214468
|
+
"required": true,
|
|
214469
|
+
"description": "The name of the environment.",
|
|
214470
|
+
"schema": {
|
|
214471
|
+
"type": "string"
|
|
214472
|
+
}
|
|
214473
|
+
},
|
|
214474
|
+
{
|
|
214475
|
+
"name": "branch_policy_id",
|
|
214476
|
+
"in": "path",
|
|
214477
|
+
"required": true,
|
|
214478
|
+
"description": "The unique identifier of the branch policy.",
|
|
214479
|
+
"schema": {
|
|
214480
|
+
"type": "integer"
|
|
214481
|
+
}
|
|
214482
|
+
}
|
|
214483
|
+
],
|
|
214484
|
+
"responses": {
|
|
214485
|
+
"200": {
|
|
214486
|
+
"description": "Response",
|
|
214487
|
+
"content": {
|
|
214488
|
+
"application/json": {
|
|
214489
|
+
"schema": {
|
|
214490
|
+
"title": "Deployment branch policy",
|
|
214491
|
+
"description": "Details of a deployment branch policy.",
|
|
214492
|
+
"type": "object",
|
|
214493
|
+
"properties": {
|
|
214494
|
+
"id": {
|
|
214495
|
+
"description": "The unique identifier of the branch policy.",
|
|
214496
|
+
"type": "integer",
|
|
214497
|
+
"example": 361471
|
|
214498
|
+
},
|
|
214499
|
+
"node_id": {
|
|
214500
|
+
"type": "string",
|
|
214501
|
+
"example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
|
|
214502
|
+
},
|
|
214503
|
+
"name": {
|
|
214504
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.",
|
|
214505
|
+
"type": "string",
|
|
214506
|
+
"example": "release/*"
|
|
214507
|
+
}
|
|
214508
|
+
}
|
|
214509
|
+
},
|
|
214510
|
+
"examples": {
|
|
214511
|
+
"default": {
|
|
214512
|
+
"value": {
|
|
214513
|
+
"id": 364662,
|
|
214514
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
|
|
214515
|
+
"name": "release/*"
|
|
214516
|
+
}
|
|
214517
|
+
}
|
|
214518
|
+
}
|
|
214519
|
+
}
|
|
214520
|
+
}
|
|
214521
|
+
}
|
|
214522
|
+
},
|
|
214523
|
+
"x-github": {
|
|
214524
|
+
"githubCloudOnly": false,
|
|
214525
|
+
"enabledForGitHubApps": true,
|
|
214526
|
+
"category": "deployments",
|
|
214527
|
+
"subcategory": "branch-policies"
|
|
214528
|
+
},
|
|
214529
|
+
"x-octokit": {}
|
|
214530
|
+
},
|
|
214531
|
+
"put": {
|
|
214532
|
+
"summary": "Update a deployment branch policy",
|
|
214533
|
+
"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.",
|
|
214534
|
+
"tags": [
|
|
214535
|
+
"repos"
|
|
214536
|
+
],
|
|
214537
|
+
"operationId": "repos/update-deployment-branch-policy",
|
|
214538
|
+
"externalDocs": {
|
|
214539
|
+
"description": "API method documentation",
|
|
214540
|
+
"url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/branch-policies#update-deployment-branch-policy"
|
|
214541
|
+
},
|
|
214542
|
+
"parameters": [
|
|
214543
|
+
{
|
|
214544
|
+
"name": "owner",
|
|
214545
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
214546
|
+
"in": "path",
|
|
214547
|
+
"required": true,
|
|
214548
|
+
"schema": {
|
|
214549
|
+
"type": "string"
|
|
214550
|
+
}
|
|
214551
|
+
},
|
|
214552
|
+
{
|
|
214553
|
+
"name": "repo",
|
|
214554
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
214555
|
+
"in": "path",
|
|
214556
|
+
"required": true,
|
|
214557
|
+
"schema": {
|
|
214558
|
+
"type": "string"
|
|
214559
|
+
}
|
|
214560
|
+
},
|
|
214561
|
+
{
|
|
214562
|
+
"name": "environment_name",
|
|
214563
|
+
"in": "path",
|
|
214564
|
+
"required": true,
|
|
214565
|
+
"description": "The name of the environment.",
|
|
214566
|
+
"schema": {
|
|
214567
|
+
"type": "string"
|
|
214568
|
+
}
|
|
214569
|
+
},
|
|
214570
|
+
{
|
|
214571
|
+
"name": "branch_policy_id",
|
|
214572
|
+
"in": "path",
|
|
214573
|
+
"required": true,
|
|
214574
|
+
"description": "The unique identifier of the branch policy.",
|
|
214575
|
+
"schema": {
|
|
214576
|
+
"type": "integer"
|
|
214577
|
+
}
|
|
214578
|
+
}
|
|
214579
|
+
],
|
|
214580
|
+
"requestBody": {
|
|
214581
|
+
"required": true,
|
|
214582
|
+
"content": {
|
|
214583
|
+
"application/json": {
|
|
214584
|
+
"schema": {
|
|
214585
|
+
"title": "Deployment branch policy name pattern",
|
|
214586
|
+
"type": "object",
|
|
214587
|
+
"properties": {
|
|
214588
|
+
"name": {
|
|
214589
|
+
"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).",
|
|
214590
|
+
"type": "string",
|
|
214591
|
+
"example": "release/*"
|
|
214592
|
+
}
|
|
214593
|
+
},
|
|
214594
|
+
"required": [
|
|
214595
|
+
"name"
|
|
214596
|
+
]
|
|
214597
|
+
},
|
|
214598
|
+
"examples": {
|
|
214599
|
+
"default": {
|
|
214600
|
+
"value": {
|
|
214601
|
+
"name": "release/*"
|
|
214602
|
+
}
|
|
214603
|
+
}
|
|
214604
|
+
}
|
|
214605
|
+
}
|
|
214606
|
+
}
|
|
214607
|
+
},
|
|
214608
|
+
"responses": {
|
|
214609
|
+
"200": {
|
|
214610
|
+
"description": "Response",
|
|
214611
|
+
"content": {
|
|
214612
|
+
"application/json": {
|
|
214613
|
+
"schema": {
|
|
214614
|
+
"title": "Deployment branch policy",
|
|
214615
|
+
"description": "Details of a deployment branch policy.",
|
|
214616
|
+
"type": "object",
|
|
214617
|
+
"properties": {
|
|
214618
|
+
"id": {
|
|
214619
|
+
"description": "The unique identifier of the branch policy.",
|
|
214620
|
+
"type": "integer",
|
|
214621
|
+
"example": 361471
|
|
214622
|
+
},
|
|
214623
|
+
"node_id": {
|
|
214624
|
+
"type": "string",
|
|
214625
|
+
"example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
|
|
214626
|
+
},
|
|
214627
|
+
"name": {
|
|
214628
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.",
|
|
214629
|
+
"type": "string",
|
|
214630
|
+
"example": "release/*"
|
|
214631
|
+
}
|
|
214632
|
+
}
|
|
214633
|
+
},
|
|
214634
|
+
"examples": {
|
|
214635
|
+
"default": {
|
|
214636
|
+
"value": {
|
|
214637
|
+
"id": 364662,
|
|
214638
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
|
|
214639
|
+
"name": "release/*"
|
|
214640
|
+
}
|
|
214641
|
+
}
|
|
214642
|
+
}
|
|
214643
|
+
}
|
|
214644
|
+
}
|
|
214645
|
+
}
|
|
214646
|
+
},
|
|
214647
|
+
"x-github": {
|
|
214648
|
+
"githubCloudOnly": false,
|
|
214649
|
+
"enabledForGitHubApps": true,
|
|
214650
|
+
"category": "deployments",
|
|
214651
|
+
"subcategory": "branch-policies"
|
|
214652
|
+
},
|
|
214653
|
+
"x-octokit": {}
|
|
214654
|
+
},
|
|
214655
|
+
"delete": {
|
|
214656
|
+
"summary": "Delete a deployment branch policy",
|
|
214657
|
+
"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.",
|
|
214658
|
+
"tags": [
|
|
214659
|
+
"repos"
|
|
214660
|
+
],
|
|
214661
|
+
"operationId": "repos/delete-deployment-branch-policy",
|
|
214662
|
+
"externalDocs": {
|
|
214663
|
+
"description": "API method documentation",
|
|
214664
|
+
"url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/branch-policies#delete-deployment-branch-policy"
|
|
214665
|
+
},
|
|
214666
|
+
"parameters": [
|
|
214667
|
+
{
|
|
214668
|
+
"name": "owner",
|
|
214669
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
214670
|
+
"in": "path",
|
|
214671
|
+
"required": true,
|
|
214672
|
+
"schema": {
|
|
214673
|
+
"type": "string"
|
|
214674
|
+
}
|
|
214675
|
+
},
|
|
214676
|
+
{
|
|
214677
|
+
"name": "repo",
|
|
214678
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
214679
|
+
"in": "path",
|
|
214680
|
+
"required": true,
|
|
214681
|
+
"schema": {
|
|
214682
|
+
"type": "string"
|
|
214683
|
+
}
|
|
214684
|
+
},
|
|
214685
|
+
{
|
|
214686
|
+
"name": "environment_name",
|
|
214687
|
+
"in": "path",
|
|
214688
|
+
"required": true,
|
|
214689
|
+
"description": "The name of the environment.",
|
|
214690
|
+
"schema": {
|
|
214691
|
+
"type": "string"
|
|
214692
|
+
}
|
|
214693
|
+
},
|
|
214694
|
+
{
|
|
214695
|
+
"name": "branch_policy_id",
|
|
214696
|
+
"in": "path",
|
|
214697
|
+
"required": true,
|
|
214698
|
+
"description": "The unique identifier of the branch policy.",
|
|
214699
|
+
"schema": {
|
|
214700
|
+
"type": "integer"
|
|
214701
|
+
}
|
|
214702
|
+
}
|
|
214703
|
+
],
|
|
214704
|
+
"responses": {
|
|
214705
|
+
"204": {
|
|
214706
|
+
"description": "Response"
|
|
214707
|
+
}
|
|
214708
|
+
},
|
|
214709
|
+
"x-github": {
|
|
214710
|
+
"githubCloudOnly": false,
|
|
214711
|
+
"enabledForGitHubApps": true,
|
|
214712
|
+
"category": "deployments",
|
|
214713
|
+
"subcategory": "branch-policies"
|
|
214714
|
+
},
|
|
214715
|
+
"x-octokit": {}
|
|
214716
|
+
}
|
|
214717
|
+
},
|
|
214143
214718
|
"/repos/{owner}/{repo}/events": {
|
|
214144
214719
|
"get": {
|
|
214145
214720
|
"summary": "List repository events",
|
|
@@ -329818,7 +330393,10 @@
|
|
|
329818
330393
|
"type": "object",
|
|
329819
330394
|
"properties": {
|
|
329820
330395
|
"type": {
|
|
329821
|
-
"type": "string"
|
|
330396
|
+
"type": "string",
|
|
330397
|
+
"enum": [
|
|
330398
|
+
"file"
|
|
330399
|
+
]
|
|
329822
330400
|
},
|
|
329823
330401
|
"encoding": {
|
|
329824
330402
|
"type": "string"
|
|
@@ -330097,7 +330675,10 @@
|
|
|
330097
330675
|
"type": "object",
|
|
330098
330676
|
"properties": {
|
|
330099
330677
|
"type": {
|
|
330100
|
-
"type": "string"
|
|
330678
|
+
"type": "string",
|
|
330679
|
+
"enum": [
|
|
330680
|
+
"file"
|
|
330681
|
+
]
|
|
330101
330682
|
},
|
|
330102
330683
|
"encoding": {
|
|
330103
330684
|
"type": "string"
|
|
@@ -346306,7 +346887,7 @@
|
|
|
346306
346887
|
"name": "environment_name",
|
|
346307
346888
|
"in": "path",
|
|
346308
346889
|
"required": true,
|
|
346309
|
-
"description": "The name of the environment",
|
|
346890
|
+
"description": "The name of the environment.",
|
|
346310
346891
|
"schema": {
|
|
346311
346892
|
"type": "string"
|
|
346312
346893
|
}
|
|
@@ -346441,7 +347022,7 @@
|
|
|
346441
347022
|
"name": "environment_name",
|
|
346442
347023
|
"in": "path",
|
|
346443
347024
|
"required": true,
|
|
346444
|
-
"description": "The name of the environment",
|
|
347025
|
+
"description": "The name of the environment.",
|
|
346445
347026
|
"schema": {
|
|
346446
347027
|
"type": "string"
|
|
346447
347028
|
}
|
|
@@ -346536,7 +347117,7 @@
|
|
|
346536
347117
|
"name": "environment_name",
|
|
346537
347118
|
"in": "path",
|
|
346538
347119
|
"required": true,
|
|
346539
|
-
"description": "The name of the environment",
|
|
347120
|
+
"description": "The name of the environment.",
|
|
346540
347121
|
"schema": {
|
|
346541
347122
|
"type": "string"
|
|
346542
347123
|
}
|
|
@@ -346627,7 +347208,7 @@
|
|
|
346627
347208
|
"name": "environment_name",
|
|
346628
347209
|
"in": "path",
|
|
346629
347210
|
"required": true,
|
|
346630
|
-
"description": "The name of the environment",
|
|
347211
|
+
"description": "The name of the environment.",
|
|
346631
347212
|
"schema": {
|
|
346632
347213
|
"type": "string"
|
|
346633
347214
|
}
|
|
@@ -346732,7 +347313,7 @@
|
|
|
346732
347313
|
"name": "environment_name",
|
|
346733
347314
|
"in": "path",
|
|
346734
347315
|
"required": true,
|
|
346735
|
-
"description": "The name of the environment",
|
|
347316
|
+
"description": "The name of the environment.",
|
|
346736
347317
|
"schema": {
|
|
346737
347318
|
"type": "string"
|
|
346738
347319
|
}
|