@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": {
|
|
@@ -101395,13 +101395,6 @@
|
|
|
101395
101395
|
"permission": {
|
|
101396
101396
|
"type": "string",
|
|
101397
101397
|
"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.",
|
|
101398
|
-
"enum": [
|
|
101399
|
-
"pull",
|
|
101400
|
-
"push",
|
|
101401
|
-
"admin",
|
|
101402
|
-
"maintain",
|
|
101403
|
-
"triage"
|
|
101404
|
-
],
|
|
101405
101398
|
"default": "push"
|
|
101406
101399
|
}
|
|
101407
101400
|
}
|
|
@@ -171820,13 +171813,6 @@
|
|
|
171820
171813
|
"permission": {
|
|
171821
171814
|
"type": "string",
|
|
171822
171815
|
"description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
|
|
171823
|
-
"enum": [
|
|
171824
|
-
"pull",
|
|
171825
|
-
"push",
|
|
171826
|
-
"admin",
|
|
171827
|
-
"maintain",
|
|
171828
|
-
"triage"
|
|
171829
|
-
],
|
|
171830
171816
|
"default": "push"
|
|
171831
171817
|
}
|
|
171832
171818
|
}
|
|
@@ -192143,7 +192129,13 @@
|
|
|
192143
192129
|
"type": "object",
|
|
192144
192130
|
"properties": {
|
|
192145
192131
|
"type": {
|
|
192146
|
-
"type": "string"
|
|
192132
|
+
"type": "string",
|
|
192133
|
+
"enum": [
|
|
192134
|
+
"dir",
|
|
192135
|
+
"file",
|
|
192136
|
+
"submodule",
|
|
192137
|
+
"symlink"
|
|
192138
|
+
]
|
|
192147
192139
|
},
|
|
192148
192140
|
"size": {
|
|
192149
192141
|
"type": "integer"
|
|
@@ -192224,7 +192216,10 @@
|
|
|
192224
192216
|
"type": "object",
|
|
192225
192217
|
"properties": {
|
|
192226
192218
|
"type": {
|
|
192227
|
-
"type": "string"
|
|
192219
|
+
"type": "string",
|
|
192220
|
+
"enum": [
|
|
192221
|
+
"file"
|
|
192222
|
+
]
|
|
192228
192223
|
},
|
|
192229
192224
|
"encoding": {
|
|
192230
192225
|
"type": "string"
|
|
@@ -192317,7 +192312,10 @@
|
|
|
192317
192312
|
"type": "object",
|
|
192318
192313
|
"properties": {
|
|
192319
192314
|
"type": {
|
|
192320
|
-
"type": "string"
|
|
192315
|
+
"type": "string",
|
|
192316
|
+
"enum": [
|
|
192317
|
+
"symlink"
|
|
192318
|
+
]
|
|
192321
192319
|
},
|
|
192322
192320
|
"target": {
|
|
192323
192321
|
"type": "string"
|
|
@@ -192393,12 +192391,15 @@
|
|
|
192393
192391
|
]
|
|
192394
192392
|
},
|
|
192395
192393
|
{
|
|
192396
|
-
"title": "
|
|
192397
|
-
"description": "An object describing a
|
|
192394
|
+
"title": "Submodule Content",
|
|
192395
|
+
"description": "An object describing a submodule",
|
|
192398
192396
|
"type": "object",
|
|
192399
192397
|
"properties": {
|
|
192400
192398
|
"type": {
|
|
192401
|
-
"type": "string"
|
|
192399
|
+
"type": "string",
|
|
192400
|
+
"enum": [
|
|
192401
|
+
"submodule"
|
|
192402
|
+
]
|
|
192402
192403
|
},
|
|
192403
192404
|
"submodule_git_url": {
|
|
192404
192405
|
"type": "string",
|
|
@@ -198244,15 +198245,15 @@
|
|
|
198244
198245
|
},
|
|
198245
198246
|
"/repos/{owner}/{repo}/environments": {
|
|
198246
198247
|
"get": {
|
|
198247
|
-
"summary": "
|
|
198248
|
-
"description": "
|
|
198248
|
+
"summary": "List environments",
|
|
198249
|
+
"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.",
|
|
198249
198250
|
"tags": [
|
|
198250
198251
|
"repos"
|
|
198251
198252
|
],
|
|
198252
198253
|
"operationId": "repos/get-all-environments",
|
|
198253
198254
|
"externalDocs": {
|
|
198254
198255
|
"description": "API method documentation",
|
|
198255
|
-
"url": "https://docs.github.com/enterprise-server@3.3/rest/
|
|
198256
|
+
"url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/environments#list-environments"
|
|
198256
198257
|
},
|
|
198257
198258
|
"parameters": [
|
|
198258
198259
|
{
|
|
@@ -198851,7 +198852,7 @@
|
|
|
198851
198852
|
"x-github": {
|
|
198852
198853
|
"githubCloudOnly": false,
|
|
198853
198854
|
"enabledForGitHubApps": true,
|
|
198854
|
-
"category": "
|
|
198855
|
+
"category": "deployments",
|
|
198855
198856
|
"subcategory": "environments"
|
|
198856
198857
|
},
|
|
198857
198858
|
"x-octokit": {}
|
|
@@ -198860,7 +198861,7 @@
|
|
|
198860
198861
|
"/repos/{owner}/{repo}/environments/{environment_name}": {
|
|
198861
198862
|
"get": {
|
|
198862
198863
|
"summary": "Get an environment",
|
|
198863
|
-
"description": "
|
|
198864
|
+
"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.",
|
|
198864
198865
|
"tags": [
|
|
198865
198866
|
"repos"
|
|
198866
198867
|
],
|
|
@@ -198892,7 +198893,7 @@
|
|
|
198892
198893
|
"name": "environment_name",
|
|
198893
198894
|
"in": "path",
|
|
198894
198895
|
"required": true,
|
|
198895
|
-
"description": "The name of the environment",
|
|
198896
|
+
"description": "The name of the environment.",
|
|
198896
198897
|
"schema": {
|
|
198897
198898
|
"type": "string"
|
|
198898
198899
|
}
|
|
@@ -199446,7 +199447,7 @@
|
|
|
199446
199447
|
},
|
|
199447
199448
|
"put": {
|
|
199448
199449
|
"summary": "Create or update an environment",
|
|
199449
|
-
"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:**
|
|
199450
|
+
"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.",
|
|
199450
199451
|
"tags": [
|
|
199451
199452
|
"repos"
|
|
199452
199453
|
],
|
|
@@ -199478,7 +199479,7 @@
|
|
|
199478
199479
|
"name": "environment_name",
|
|
199479
199480
|
"in": "path",
|
|
199480
199481
|
"required": true,
|
|
199481
|
-
"description": "The name of the environment",
|
|
199482
|
+
"description": "The name of the environment.",
|
|
199482
199483
|
"schema": {
|
|
199483
199484
|
"type": "string"
|
|
199484
199485
|
}
|
|
@@ -199542,6 +199543,27 @@
|
|
|
199542
199543
|
}
|
|
199543
199544
|
},
|
|
199544
199545
|
"additionalProperties": false
|
|
199546
|
+
},
|
|
199547
|
+
"examples": {
|
|
199548
|
+
"default": {
|
|
199549
|
+
"value": {
|
|
199550
|
+
"wait_timer": 30,
|
|
199551
|
+
"reviewers": [
|
|
199552
|
+
{
|
|
199553
|
+
"type": "User",
|
|
199554
|
+
"id": 1
|
|
199555
|
+
},
|
|
199556
|
+
{
|
|
199557
|
+
"type": "Team",
|
|
199558
|
+
"id": 1
|
|
199559
|
+
}
|
|
199560
|
+
],
|
|
199561
|
+
"deployment_branch_policy": {
|
|
199562
|
+
"protected_branches": false,
|
|
199563
|
+
"custom_branch_policies": true
|
|
199564
|
+
}
|
|
199565
|
+
}
|
|
199566
|
+
}
|
|
199545
199567
|
}
|
|
199546
199568
|
}
|
|
199547
199569
|
}
|
|
@@ -200152,7 +200174,7 @@
|
|
|
200152
200174
|
"name": "environment_name",
|
|
200153
200175
|
"in": "path",
|
|
200154
200176
|
"required": true,
|
|
200155
|
-
"description": "The name of the environment",
|
|
200177
|
+
"description": "The name of the environment.",
|
|
200156
200178
|
"schema": {
|
|
200157
200179
|
"type": "string"
|
|
200158
200180
|
}
|
|
@@ -200172,6 +200194,559 @@
|
|
|
200172
200194
|
"x-octokit": {}
|
|
200173
200195
|
}
|
|
200174
200196
|
},
|
|
200197
|
+
"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
|
|
200198
|
+
"get": {
|
|
200199
|
+
"summary": "List deployment branch policies",
|
|
200200
|
+
"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.",
|
|
200201
|
+
"tags": [
|
|
200202
|
+
"repos"
|
|
200203
|
+
],
|
|
200204
|
+
"operationId": "repos/list-deployment-branch-policies",
|
|
200205
|
+
"externalDocs": {
|
|
200206
|
+
"description": "API method documentation",
|
|
200207
|
+
"url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/branch-policies#list-deployment-branch-policies"
|
|
200208
|
+
},
|
|
200209
|
+
"parameters": [
|
|
200210
|
+
{
|
|
200211
|
+
"name": "owner",
|
|
200212
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
200213
|
+
"in": "path",
|
|
200214
|
+
"required": true,
|
|
200215
|
+
"schema": {
|
|
200216
|
+
"type": "string"
|
|
200217
|
+
}
|
|
200218
|
+
},
|
|
200219
|
+
{
|
|
200220
|
+
"name": "repo",
|
|
200221
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
200222
|
+
"in": "path",
|
|
200223
|
+
"required": true,
|
|
200224
|
+
"schema": {
|
|
200225
|
+
"type": "string"
|
|
200226
|
+
}
|
|
200227
|
+
},
|
|
200228
|
+
{
|
|
200229
|
+
"name": "environment_name",
|
|
200230
|
+
"in": "path",
|
|
200231
|
+
"required": true,
|
|
200232
|
+
"description": "The name of the environment.",
|
|
200233
|
+
"schema": {
|
|
200234
|
+
"type": "string"
|
|
200235
|
+
}
|
|
200236
|
+
},
|
|
200237
|
+
{
|
|
200238
|
+
"name": "per_page",
|
|
200239
|
+
"description": "The number of results per page (max 100).",
|
|
200240
|
+
"in": "query",
|
|
200241
|
+
"schema": {
|
|
200242
|
+
"type": "integer",
|
|
200243
|
+
"default": 30
|
|
200244
|
+
}
|
|
200245
|
+
},
|
|
200246
|
+
{
|
|
200247
|
+
"name": "page",
|
|
200248
|
+
"description": "Page number of the results to fetch.",
|
|
200249
|
+
"in": "query",
|
|
200250
|
+
"schema": {
|
|
200251
|
+
"type": "integer",
|
|
200252
|
+
"default": 1
|
|
200253
|
+
}
|
|
200254
|
+
}
|
|
200255
|
+
],
|
|
200256
|
+
"responses": {
|
|
200257
|
+
"200": {
|
|
200258
|
+
"description": "Response",
|
|
200259
|
+
"content": {
|
|
200260
|
+
"application/json": {
|
|
200261
|
+
"schema": {
|
|
200262
|
+
"type": "object",
|
|
200263
|
+
"properties": {
|
|
200264
|
+
"total_count": {
|
|
200265
|
+
"description": "The number of deployment branch policies for the environment.",
|
|
200266
|
+
"type": "integer",
|
|
200267
|
+
"example": 2
|
|
200268
|
+
},
|
|
200269
|
+
"branch_policies": {
|
|
200270
|
+
"type": "array",
|
|
200271
|
+
"items": {
|
|
200272
|
+
"title": "Deployment branch policy",
|
|
200273
|
+
"description": "Details of a deployment branch policy.",
|
|
200274
|
+
"type": "object",
|
|
200275
|
+
"properties": {
|
|
200276
|
+
"id": {
|
|
200277
|
+
"description": "The unique identifier of the branch policy.",
|
|
200278
|
+
"type": "integer",
|
|
200279
|
+
"example": 361471
|
|
200280
|
+
},
|
|
200281
|
+
"node_id": {
|
|
200282
|
+
"type": "string",
|
|
200283
|
+
"example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
|
|
200284
|
+
},
|
|
200285
|
+
"name": {
|
|
200286
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.",
|
|
200287
|
+
"type": "string",
|
|
200288
|
+
"example": "release/*"
|
|
200289
|
+
}
|
|
200290
|
+
}
|
|
200291
|
+
}
|
|
200292
|
+
}
|
|
200293
|
+
},
|
|
200294
|
+
"required": [
|
|
200295
|
+
"total_count",
|
|
200296
|
+
"branch_policies"
|
|
200297
|
+
]
|
|
200298
|
+
},
|
|
200299
|
+
"examples": {
|
|
200300
|
+
"default": {
|
|
200301
|
+
"value": {
|
|
200302
|
+
"total_count": 2,
|
|
200303
|
+
"branch_policies": [
|
|
200304
|
+
{
|
|
200305
|
+
"id": 361471,
|
|
200306
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
|
|
200307
|
+
"name": "release/*"
|
|
200308
|
+
},
|
|
200309
|
+
{
|
|
200310
|
+
"id": 361472,
|
|
200311
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
|
|
200312
|
+
"name": "main"
|
|
200313
|
+
}
|
|
200314
|
+
]
|
|
200315
|
+
}
|
|
200316
|
+
}
|
|
200317
|
+
}
|
|
200318
|
+
}
|
|
200319
|
+
}
|
|
200320
|
+
}
|
|
200321
|
+
},
|
|
200322
|
+
"x-github": {
|
|
200323
|
+
"githubCloudOnly": false,
|
|
200324
|
+
"enabledForGitHubApps": true,
|
|
200325
|
+
"category": "deployments",
|
|
200326
|
+
"subcategory": "branch-policies"
|
|
200327
|
+
},
|
|
200328
|
+
"x-octokit": {}
|
|
200329
|
+
},
|
|
200330
|
+
"post": {
|
|
200331
|
+
"summary": "Create a deployment branch policy",
|
|
200332
|
+
"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.",
|
|
200333
|
+
"tags": [
|
|
200334
|
+
"repos"
|
|
200335
|
+
],
|
|
200336
|
+
"operationId": "repos/create-deployment-branch-policy",
|
|
200337
|
+
"externalDocs": {
|
|
200338
|
+
"description": "API method documentation",
|
|
200339
|
+
"url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/branch-policies#create-deployment-branch-policy"
|
|
200340
|
+
},
|
|
200341
|
+
"parameters": [
|
|
200342
|
+
{
|
|
200343
|
+
"name": "owner",
|
|
200344
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
200345
|
+
"in": "path",
|
|
200346
|
+
"required": true,
|
|
200347
|
+
"schema": {
|
|
200348
|
+
"type": "string"
|
|
200349
|
+
}
|
|
200350
|
+
},
|
|
200351
|
+
{
|
|
200352
|
+
"name": "repo",
|
|
200353
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
200354
|
+
"in": "path",
|
|
200355
|
+
"required": true,
|
|
200356
|
+
"schema": {
|
|
200357
|
+
"type": "string"
|
|
200358
|
+
}
|
|
200359
|
+
},
|
|
200360
|
+
{
|
|
200361
|
+
"name": "environment_name",
|
|
200362
|
+
"in": "path",
|
|
200363
|
+
"required": true,
|
|
200364
|
+
"description": "The name of the environment.",
|
|
200365
|
+
"schema": {
|
|
200366
|
+
"type": "string"
|
|
200367
|
+
}
|
|
200368
|
+
}
|
|
200369
|
+
],
|
|
200370
|
+
"requestBody": {
|
|
200371
|
+
"required": true,
|
|
200372
|
+
"content": {
|
|
200373
|
+
"application/json": {
|
|
200374
|
+
"schema": {
|
|
200375
|
+
"title": "Deployment branch policy name pattern",
|
|
200376
|
+
"type": "object",
|
|
200377
|
+
"properties": {
|
|
200378
|
+
"name": {
|
|
200379
|
+
"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).",
|
|
200380
|
+
"type": "string",
|
|
200381
|
+
"example": "release/*"
|
|
200382
|
+
}
|
|
200383
|
+
},
|
|
200384
|
+
"required": [
|
|
200385
|
+
"name"
|
|
200386
|
+
]
|
|
200387
|
+
},
|
|
200388
|
+
"examples": {
|
|
200389
|
+
"example-wildcard": {
|
|
200390
|
+
"summary": "Example of a wildcard name pattern",
|
|
200391
|
+
"value": {
|
|
200392
|
+
"name": "release/*"
|
|
200393
|
+
}
|
|
200394
|
+
},
|
|
200395
|
+
"example-single-branch": {
|
|
200396
|
+
"summary": "Example of a single branch name pattern",
|
|
200397
|
+
"value": {
|
|
200398
|
+
"name": "main"
|
|
200399
|
+
}
|
|
200400
|
+
}
|
|
200401
|
+
}
|
|
200402
|
+
}
|
|
200403
|
+
}
|
|
200404
|
+
},
|
|
200405
|
+
"responses": {
|
|
200406
|
+
"200": {
|
|
200407
|
+
"description": "Response",
|
|
200408
|
+
"content": {
|
|
200409
|
+
"application/json": {
|
|
200410
|
+
"schema": {
|
|
200411
|
+
"title": "Deployment branch policy",
|
|
200412
|
+
"description": "Details of a deployment branch policy.",
|
|
200413
|
+
"type": "object",
|
|
200414
|
+
"properties": {
|
|
200415
|
+
"id": {
|
|
200416
|
+
"description": "The unique identifier of the branch policy.",
|
|
200417
|
+
"type": "integer",
|
|
200418
|
+
"example": 361471
|
|
200419
|
+
},
|
|
200420
|
+
"node_id": {
|
|
200421
|
+
"type": "string",
|
|
200422
|
+
"example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
|
|
200423
|
+
},
|
|
200424
|
+
"name": {
|
|
200425
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.",
|
|
200426
|
+
"type": "string",
|
|
200427
|
+
"example": "release/*"
|
|
200428
|
+
}
|
|
200429
|
+
}
|
|
200430
|
+
},
|
|
200431
|
+
"examples": {
|
|
200432
|
+
"example-wildcard": {
|
|
200433
|
+
"value": {
|
|
200434
|
+
"id": 364662,
|
|
200435
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
|
|
200436
|
+
"name": "release/*"
|
|
200437
|
+
}
|
|
200438
|
+
},
|
|
200439
|
+
"example-single-branch": {
|
|
200440
|
+
"value": {
|
|
200441
|
+
"id": 364663,
|
|
200442
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
|
|
200443
|
+
"name": "main"
|
|
200444
|
+
}
|
|
200445
|
+
}
|
|
200446
|
+
}
|
|
200447
|
+
}
|
|
200448
|
+
}
|
|
200449
|
+
},
|
|
200450
|
+
"303": {
|
|
200451
|
+
"description": "Response if the same branch name pattern already exists"
|
|
200452
|
+
},
|
|
200453
|
+
"404": {
|
|
200454
|
+
"description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
|
|
200455
|
+
}
|
|
200456
|
+
},
|
|
200457
|
+
"x-github": {
|
|
200458
|
+
"githubCloudOnly": false,
|
|
200459
|
+
"enabledForGitHubApps": true,
|
|
200460
|
+
"category": "deployments",
|
|
200461
|
+
"subcategory": "branch-policies"
|
|
200462
|
+
},
|
|
200463
|
+
"x-octokit": {}
|
|
200464
|
+
}
|
|
200465
|
+
},
|
|
200466
|
+
"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
|
|
200467
|
+
"get": {
|
|
200468
|
+
"summary": "Get a deployment branch policy",
|
|
200469
|
+
"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.",
|
|
200470
|
+
"tags": [
|
|
200471
|
+
"repos"
|
|
200472
|
+
],
|
|
200473
|
+
"operationId": "repos/get-deployment-branch-policy",
|
|
200474
|
+
"externalDocs": {
|
|
200475
|
+
"description": "API method documentation",
|
|
200476
|
+
"url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/branch-policies#get-deployment-branch-policy"
|
|
200477
|
+
},
|
|
200478
|
+
"parameters": [
|
|
200479
|
+
{
|
|
200480
|
+
"name": "owner",
|
|
200481
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
200482
|
+
"in": "path",
|
|
200483
|
+
"required": true,
|
|
200484
|
+
"schema": {
|
|
200485
|
+
"type": "string"
|
|
200486
|
+
}
|
|
200487
|
+
},
|
|
200488
|
+
{
|
|
200489
|
+
"name": "repo",
|
|
200490
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
200491
|
+
"in": "path",
|
|
200492
|
+
"required": true,
|
|
200493
|
+
"schema": {
|
|
200494
|
+
"type": "string"
|
|
200495
|
+
}
|
|
200496
|
+
},
|
|
200497
|
+
{
|
|
200498
|
+
"name": "environment_name",
|
|
200499
|
+
"in": "path",
|
|
200500
|
+
"required": true,
|
|
200501
|
+
"description": "The name of the environment.",
|
|
200502
|
+
"schema": {
|
|
200503
|
+
"type": "string"
|
|
200504
|
+
}
|
|
200505
|
+
},
|
|
200506
|
+
{
|
|
200507
|
+
"name": "branch_policy_id",
|
|
200508
|
+
"in": "path",
|
|
200509
|
+
"required": true,
|
|
200510
|
+
"description": "The unique identifier of the branch policy.",
|
|
200511
|
+
"schema": {
|
|
200512
|
+
"type": "integer"
|
|
200513
|
+
}
|
|
200514
|
+
}
|
|
200515
|
+
],
|
|
200516
|
+
"responses": {
|
|
200517
|
+
"200": {
|
|
200518
|
+
"description": "Response",
|
|
200519
|
+
"content": {
|
|
200520
|
+
"application/json": {
|
|
200521
|
+
"schema": {
|
|
200522
|
+
"title": "Deployment branch policy",
|
|
200523
|
+
"description": "Details of a deployment branch policy.",
|
|
200524
|
+
"type": "object",
|
|
200525
|
+
"properties": {
|
|
200526
|
+
"id": {
|
|
200527
|
+
"description": "The unique identifier of the branch policy.",
|
|
200528
|
+
"type": "integer",
|
|
200529
|
+
"example": 361471
|
|
200530
|
+
},
|
|
200531
|
+
"node_id": {
|
|
200532
|
+
"type": "string",
|
|
200533
|
+
"example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
|
|
200534
|
+
},
|
|
200535
|
+
"name": {
|
|
200536
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.",
|
|
200537
|
+
"type": "string",
|
|
200538
|
+
"example": "release/*"
|
|
200539
|
+
}
|
|
200540
|
+
}
|
|
200541
|
+
},
|
|
200542
|
+
"examples": {
|
|
200543
|
+
"default": {
|
|
200544
|
+
"value": {
|
|
200545
|
+
"id": 364662,
|
|
200546
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
|
|
200547
|
+
"name": "release/*"
|
|
200548
|
+
}
|
|
200549
|
+
}
|
|
200550
|
+
}
|
|
200551
|
+
}
|
|
200552
|
+
}
|
|
200553
|
+
}
|
|
200554
|
+
},
|
|
200555
|
+
"x-github": {
|
|
200556
|
+
"githubCloudOnly": false,
|
|
200557
|
+
"enabledForGitHubApps": true,
|
|
200558
|
+
"category": "deployments",
|
|
200559
|
+
"subcategory": "branch-policies"
|
|
200560
|
+
},
|
|
200561
|
+
"x-octokit": {}
|
|
200562
|
+
},
|
|
200563
|
+
"put": {
|
|
200564
|
+
"summary": "Update a deployment branch policy",
|
|
200565
|
+
"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.",
|
|
200566
|
+
"tags": [
|
|
200567
|
+
"repos"
|
|
200568
|
+
],
|
|
200569
|
+
"operationId": "repos/update-deployment-branch-policy",
|
|
200570
|
+
"externalDocs": {
|
|
200571
|
+
"description": "API method documentation",
|
|
200572
|
+
"url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/branch-policies#update-deployment-branch-policy"
|
|
200573
|
+
},
|
|
200574
|
+
"parameters": [
|
|
200575
|
+
{
|
|
200576
|
+
"name": "owner",
|
|
200577
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
200578
|
+
"in": "path",
|
|
200579
|
+
"required": true,
|
|
200580
|
+
"schema": {
|
|
200581
|
+
"type": "string"
|
|
200582
|
+
}
|
|
200583
|
+
},
|
|
200584
|
+
{
|
|
200585
|
+
"name": "repo",
|
|
200586
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
200587
|
+
"in": "path",
|
|
200588
|
+
"required": true,
|
|
200589
|
+
"schema": {
|
|
200590
|
+
"type": "string"
|
|
200591
|
+
}
|
|
200592
|
+
},
|
|
200593
|
+
{
|
|
200594
|
+
"name": "environment_name",
|
|
200595
|
+
"in": "path",
|
|
200596
|
+
"required": true,
|
|
200597
|
+
"description": "The name of the environment.",
|
|
200598
|
+
"schema": {
|
|
200599
|
+
"type": "string"
|
|
200600
|
+
}
|
|
200601
|
+
},
|
|
200602
|
+
{
|
|
200603
|
+
"name": "branch_policy_id",
|
|
200604
|
+
"in": "path",
|
|
200605
|
+
"required": true,
|
|
200606
|
+
"description": "The unique identifier of the branch policy.",
|
|
200607
|
+
"schema": {
|
|
200608
|
+
"type": "integer"
|
|
200609
|
+
}
|
|
200610
|
+
}
|
|
200611
|
+
],
|
|
200612
|
+
"requestBody": {
|
|
200613
|
+
"required": true,
|
|
200614
|
+
"content": {
|
|
200615
|
+
"application/json": {
|
|
200616
|
+
"schema": {
|
|
200617
|
+
"title": "Deployment branch policy name pattern",
|
|
200618
|
+
"type": "object",
|
|
200619
|
+
"properties": {
|
|
200620
|
+
"name": {
|
|
200621
|
+
"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).",
|
|
200622
|
+
"type": "string",
|
|
200623
|
+
"example": "release/*"
|
|
200624
|
+
}
|
|
200625
|
+
},
|
|
200626
|
+
"required": [
|
|
200627
|
+
"name"
|
|
200628
|
+
]
|
|
200629
|
+
},
|
|
200630
|
+
"examples": {
|
|
200631
|
+
"default": {
|
|
200632
|
+
"value": {
|
|
200633
|
+
"name": "release/*"
|
|
200634
|
+
}
|
|
200635
|
+
}
|
|
200636
|
+
}
|
|
200637
|
+
}
|
|
200638
|
+
}
|
|
200639
|
+
},
|
|
200640
|
+
"responses": {
|
|
200641
|
+
"200": {
|
|
200642
|
+
"description": "Response",
|
|
200643
|
+
"content": {
|
|
200644
|
+
"application/json": {
|
|
200645
|
+
"schema": {
|
|
200646
|
+
"title": "Deployment branch policy",
|
|
200647
|
+
"description": "Details of a deployment branch policy.",
|
|
200648
|
+
"type": "object",
|
|
200649
|
+
"properties": {
|
|
200650
|
+
"id": {
|
|
200651
|
+
"description": "The unique identifier of the branch policy.",
|
|
200652
|
+
"type": "integer",
|
|
200653
|
+
"example": 361471
|
|
200654
|
+
},
|
|
200655
|
+
"node_id": {
|
|
200656
|
+
"type": "string",
|
|
200657
|
+
"example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
|
|
200658
|
+
},
|
|
200659
|
+
"name": {
|
|
200660
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.",
|
|
200661
|
+
"type": "string",
|
|
200662
|
+
"example": "release/*"
|
|
200663
|
+
}
|
|
200664
|
+
}
|
|
200665
|
+
},
|
|
200666
|
+
"examples": {
|
|
200667
|
+
"default": {
|
|
200668
|
+
"value": {
|
|
200669
|
+
"id": 364662,
|
|
200670
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
|
|
200671
|
+
"name": "release/*"
|
|
200672
|
+
}
|
|
200673
|
+
}
|
|
200674
|
+
}
|
|
200675
|
+
}
|
|
200676
|
+
}
|
|
200677
|
+
}
|
|
200678
|
+
},
|
|
200679
|
+
"x-github": {
|
|
200680
|
+
"githubCloudOnly": false,
|
|
200681
|
+
"enabledForGitHubApps": true,
|
|
200682
|
+
"category": "deployments",
|
|
200683
|
+
"subcategory": "branch-policies"
|
|
200684
|
+
},
|
|
200685
|
+
"x-octokit": {}
|
|
200686
|
+
},
|
|
200687
|
+
"delete": {
|
|
200688
|
+
"summary": "Delete a deployment branch policy",
|
|
200689
|
+
"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.",
|
|
200690
|
+
"tags": [
|
|
200691
|
+
"repos"
|
|
200692
|
+
],
|
|
200693
|
+
"operationId": "repos/delete-deployment-branch-policy",
|
|
200694
|
+
"externalDocs": {
|
|
200695
|
+
"description": "API method documentation",
|
|
200696
|
+
"url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/branch-policies#delete-deployment-branch-policy"
|
|
200697
|
+
},
|
|
200698
|
+
"parameters": [
|
|
200699
|
+
{
|
|
200700
|
+
"name": "owner",
|
|
200701
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
200702
|
+
"in": "path",
|
|
200703
|
+
"required": true,
|
|
200704
|
+
"schema": {
|
|
200705
|
+
"type": "string"
|
|
200706
|
+
}
|
|
200707
|
+
},
|
|
200708
|
+
{
|
|
200709
|
+
"name": "repo",
|
|
200710
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
200711
|
+
"in": "path",
|
|
200712
|
+
"required": true,
|
|
200713
|
+
"schema": {
|
|
200714
|
+
"type": "string"
|
|
200715
|
+
}
|
|
200716
|
+
},
|
|
200717
|
+
{
|
|
200718
|
+
"name": "environment_name",
|
|
200719
|
+
"in": "path",
|
|
200720
|
+
"required": true,
|
|
200721
|
+
"description": "The name of the environment.",
|
|
200722
|
+
"schema": {
|
|
200723
|
+
"type": "string"
|
|
200724
|
+
}
|
|
200725
|
+
},
|
|
200726
|
+
{
|
|
200727
|
+
"name": "branch_policy_id",
|
|
200728
|
+
"in": "path",
|
|
200729
|
+
"required": true,
|
|
200730
|
+
"description": "The unique identifier of the branch policy.",
|
|
200731
|
+
"schema": {
|
|
200732
|
+
"type": "integer"
|
|
200733
|
+
}
|
|
200734
|
+
}
|
|
200735
|
+
],
|
|
200736
|
+
"responses": {
|
|
200737
|
+
"204": {
|
|
200738
|
+
"description": "Response"
|
|
200739
|
+
}
|
|
200740
|
+
},
|
|
200741
|
+
"x-github": {
|
|
200742
|
+
"githubCloudOnly": false,
|
|
200743
|
+
"enabledForGitHubApps": true,
|
|
200744
|
+
"category": "deployments",
|
|
200745
|
+
"subcategory": "branch-policies"
|
|
200746
|
+
},
|
|
200747
|
+
"x-octokit": {}
|
|
200748
|
+
}
|
|
200749
|
+
},
|
|
200175
200750
|
"/repos/{owner}/{repo}/events": {
|
|
200176
200751
|
"get": {
|
|
200177
200752
|
"summary": "List repository events",
|
|
@@ -315840,7 +316415,10 @@
|
|
|
315840
316415
|
"type": "object",
|
|
315841
316416
|
"properties": {
|
|
315842
316417
|
"type": {
|
|
315843
|
-
"type": "string"
|
|
316418
|
+
"type": "string",
|
|
316419
|
+
"enum": [
|
|
316420
|
+
"file"
|
|
316421
|
+
]
|
|
315844
316422
|
},
|
|
315845
316423
|
"encoding": {
|
|
315846
316424
|
"type": "string"
|
|
@@ -316119,7 +316697,10 @@
|
|
|
316119
316697
|
"type": "object",
|
|
316120
316698
|
"properties": {
|
|
316121
316699
|
"type": {
|
|
316122
|
-
"type": "string"
|
|
316700
|
+
"type": "string",
|
|
316701
|
+
"enum": [
|
|
316702
|
+
"file"
|
|
316703
|
+
]
|
|
316123
316704
|
},
|
|
316124
316705
|
"encoding": {
|
|
316125
316706
|
"type": "string"
|
|
@@ -332098,7 +332679,7 @@
|
|
|
332098
332679
|
"name": "environment_name",
|
|
332099
332680
|
"in": "path",
|
|
332100
332681
|
"required": true,
|
|
332101
|
-
"description": "The name of the environment",
|
|
332682
|
+
"description": "The name of the environment.",
|
|
332102
332683
|
"schema": {
|
|
332103
332684
|
"type": "string"
|
|
332104
332685
|
}
|
|
@@ -332233,7 +332814,7 @@
|
|
|
332233
332814
|
"name": "environment_name",
|
|
332234
332815
|
"in": "path",
|
|
332235
332816
|
"required": true,
|
|
332236
|
-
"description": "The name of the environment",
|
|
332817
|
+
"description": "The name of the environment.",
|
|
332237
332818
|
"schema": {
|
|
332238
332819
|
"type": "string"
|
|
332239
332820
|
}
|
|
@@ -332328,7 +332909,7 @@
|
|
|
332328
332909
|
"name": "environment_name",
|
|
332329
332910
|
"in": "path",
|
|
332330
332911
|
"required": true,
|
|
332331
|
-
"description": "The name of the environment",
|
|
332912
|
+
"description": "The name of the environment.",
|
|
332332
332913
|
"schema": {
|
|
332333
332914
|
"type": "string"
|
|
332334
332915
|
}
|
|
@@ -332419,7 +333000,7 @@
|
|
|
332419
333000
|
"name": "environment_name",
|
|
332420
333001
|
"in": "path",
|
|
332421
333002
|
"required": true,
|
|
332422
|
-
"description": "The name of the environment",
|
|
333003
|
+
"description": "The name of the environment.",
|
|
332423
333004
|
"schema": {
|
|
332424
333005
|
"type": "string"
|
|
332425
333006
|
}
|
|
@@ -332524,7 +333105,7 @@
|
|
|
332524
333105
|
"name": "environment_name",
|
|
332525
333106
|
"in": "path",
|
|
332526
333107
|
"required": true,
|
|
332527
|
-
"description": "The name of the environment",
|
|
333108
|
+
"description": "The name of the environment.",
|
|
332528
333109
|
"schema": {
|
|
332529
333110
|
"type": "string"
|
|
332530
333111
|
}
|