@octokit/openapi 5.6.1 → 5.6.5
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 +3451 -2749
- package/generated/api.github.com.json +440 -1599
- package/generated/ghes-2.22-diff-to-ghes-3.0.deref.json +1 -1
- package/generated/ghes-2.22-diff-to-ghes-3.0.json +1 -1
- package/generated/ghes-2.22.deref.json +1 -1
- package/generated/ghes-2.22.json +1 -1
- package/generated/ghes-3.0-anicca-diff-to-ghes-3.1.deref.json +0 -145
- package/generated/ghes-3.0-diff-to-ghes-3.1.deref.json +8739 -19455
- package/generated/ghes-3.0-diff-to-ghes-3.1.json +245 -1527
- package/generated/ghes-3.0.deref.json +3494 -1920
- package/generated/ghes-3.0.json +420 -721
- package/generated/ghes-3.1-anicca-diff-to-ghes-3.2.deref.json +286 -1466
- package/generated/ghes-3.1-diff-to-ghes-3.2.deref.json +58842 -105018
- package/generated/ghes-3.1-diff-to-ghes-3.2.json +11129 -16701
- package/generated/ghes-3.1.deref.json +3545 -1951
- package/generated/ghes-3.1.json +467 -752
- package/generated/ghes-3.2-anicca-diff-to-api.github.com.deref.json +7 -136
- package/generated/ghes-3.2-diff-to-api.github.com.deref.json +333 -2109
- package/generated/ghes-3.2-diff-to-api.github.com.json +45 -742
- package/generated/ghes-3.2.deref.json +3597 -1953
- package/generated/ghes-3.2.json +474 -752
- package/generated/github.ae-anicca-diff-to-api.github.com.deref.json +3 -59
- package/generated/github.ae-diff-to-api.github.com.deref.json +4 -4963
- package/generated/github.ae-diff-to-api.github.com.json +109 -2784
- package/generated/github.ae.deref.json +2270 -2214
- package/generated/github.ae.json +337 -1464
- package/package.json +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "5.6.
|
|
4
|
+
"version": "5.6.5",
|
|
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": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
|
|
@@ -954,6 +954,7 @@
|
|
|
954
954
|
}
|
|
955
955
|
},
|
|
956
956
|
"requestBody": {
|
|
957
|
+
"required": true,
|
|
957
958
|
"content": {
|
|
958
959
|
"application/json": {
|
|
959
960
|
"schema": {
|
|
@@ -963,7 +964,8 @@
|
|
|
963
964
|
"type": "string",
|
|
964
965
|
"description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team."
|
|
965
966
|
}
|
|
966
|
-
}
|
|
967
|
+
},
|
|
968
|
+
"required": ["ldap_dn"]
|
|
967
969
|
},
|
|
968
970
|
"example": {
|
|
969
971
|
"ldap_dn": "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
|
|
@@ -1308,6 +1310,7 @@
|
|
|
1308
1310
|
}
|
|
1309
1311
|
},
|
|
1310
1312
|
"requestBody": {
|
|
1313
|
+
"required": true,
|
|
1311
1314
|
"content": {
|
|
1312
1315
|
"application/json": {
|
|
1313
1316
|
"schema": {
|
|
@@ -1317,7 +1320,8 @@
|
|
|
1317
1320
|
"type": "string",
|
|
1318
1321
|
"description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team."
|
|
1319
1322
|
}
|
|
1320
|
-
}
|
|
1323
|
+
},
|
|
1324
|
+
"required": ["ldap_dn"]
|
|
1321
1325
|
},
|
|
1322
1326
|
"example": { "ldap_dn": "uid=asdf,ou=users,dc=github,dc=com" }
|
|
1323
1327
|
}
|
|
@@ -1480,6 +1484,7 @@
|
|
|
1480
1484
|
}
|
|
1481
1485
|
},
|
|
1482
1486
|
"requestBody": {
|
|
1487
|
+
"required": true,
|
|
1483
1488
|
"content": {
|
|
1484
1489
|
"application/json": {
|
|
1485
1490
|
"schema": {
|
|
@@ -4295,6 +4300,7 @@
|
|
|
4295
4300
|
}
|
|
4296
4301
|
},
|
|
4297
4302
|
"requestBody": {
|
|
4303
|
+
"required": true,
|
|
4298
4304
|
"content": {
|
|
4299
4305
|
"application/json": {
|
|
4300
4306
|
"schema": {
|
|
@@ -5613,6 +5619,7 @@
|
|
|
5613
5619
|
"tags": ["enterprise-admin"],
|
|
5614
5620
|
"operationId": "enterprise-admin/set-announcement",
|
|
5615
5621
|
"requestBody": {
|
|
5622
|
+
"required": true,
|
|
5616
5623
|
"content": {
|
|
5617
5624
|
"application/json": {
|
|
5618
5625
|
"schema": {
|
|
@@ -6469,64 +6476,6 @@
|
|
|
6469
6476
|
"subcategory": "actions"
|
|
6470
6477
|
},
|
|
6471
6478
|
"x-octokit": { "diff": { "api.github.com": { "type": "changed" } } }
|
|
6472
|
-
},
|
|
6473
|
-
"put": {
|
|
6474
|
-
"summary": "Set allowed actions for an enterprise",
|
|
6475
|
-
"description": "Sets the actions that are allowed in an enterprise. To use this endpoint, the enterprise permission policy for `allowed_actions` must be configured to `selected`. For more information, see \"[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
|
|
6476
|
-
"operationId": "enterprise-admin/set-allowed-actions-enterprise",
|
|
6477
|
-
"tags": ["enterprise-admin"],
|
|
6478
|
-
"externalDocs": {
|
|
6479
|
-
"description": "API method documentation",
|
|
6480
|
-
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/enterprise-admin#set-allowed-actions-for-an-enterprise"
|
|
6481
|
-
},
|
|
6482
|
-
"parameters": [
|
|
6483
|
-
{
|
|
6484
|
-
"name": "enterprise",
|
|
6485
|
-
"description": "The slug version of the enterprise name. You can also substitute this value with the enterprise id.",
|
|
6486
|
-
"in": "path",
|
|
6487
|
-
"required": true,
|
|
6488
|
-
"schema": { "type": "string" }
|
|
6489
|
-
}
|
|
6490
|
-
],
|
|
6491
|
-
"responses": { "204": { "description": "Response" } },
|
|
6492
|
-
"requestBody": {
|
|
6493
|
-
"content": {
|
|
6494
|
-
"application/json": {
|
|
6495
|
-
"schema": {
|
|
6496
|
-
"type": "object",
|
|
6497
|
-
"properties": {
|
|
6498
|
-
"github_owned_allowed": {
|
|
6499
|
-
"type": "boolean",
|
|
6500
|
-
"description": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization."
|
|
6501
|
-
},
|
|
6502
|
-
"patterns_allowed": {
|
|
6503
|
-
"type": "array",
|
|
6504
|
-
"description": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\"",
|
|
6505
|
-
"items": { "type": "string" }
|
|
6506
|
-
}
|
|
6507
|
-
},
|
|
6508
|
-
"required": ["github_owned_allowed", "patterns_allowed"]
|
|
6509
|
-
},
|
|
6510
|
-
"examples": {
|
|
6511
|
-
"selected_actions": {
|
|
6512
|
-
"value": {
|
|
6513
|
-
"github_owned_allowed": true,
|
|
6514
|
-
"verified_allowed": false,
|
|
6515
|
-
"patterns_allowed": ["monalisa/octocat@*", "docker/*"]
|
|
6516
|
-
}
|
|
6517
|
-
}
|
|
6518
|
-
}
|
|
6519
|
-
}
|
|
6520
|
-
}
|
|
6521
|
-
},
|
|
6522
|
-
"x-github": {
|
|
6523
|
-
"enabledForGitHubApps": false,
|
|
6524
|
-
"githubCloudOnly": false,
|
|
6525
|
-
"previews": [],
|
|
6526
|
-
"category": "enterprise-admin",
|
|
6527
|
-
"subcategory": "actions"
|
|
6528
|
-
},
|
|
6529
|
-
"x-octokit": { "diff": { "api.github.com": { "type": "changed" } } }
|
|
6530
6479
|
}
|
|
6531
6480
|
},
|
|
6532
6481
|
"/meta": {
|
|
@@ -6600,15 +6549,15 @@
|
|
|
6600
6549
|
"x-octokit": { "diff": { "api.github.com": { "type": "changed" } } }
|
|
6601
6550
|
}
|
|
6602
6551
|
},
|
|
6603
|
-
"/orgs/{org}": {
|
|
6604
|
-
"
|
|
6605
|
-
"summary": "
|
|
6606
|
-
"description": "
|
|
6607
|
-
"
|
|
6608
|
-
"
|
|
6552
|
+
"/orgs/{org}/actions/permissions/selected-actions": {
|
|
6553
|
+
"get": {
|
|
6554
|
+
"summary": "Get allowed actions for an organization",
|
|
6555
|
+
"description": "Gets the selected actions that are allowed in an organization. To use this endpoint, the organization permission policy for `allowed_actions` must be configured to `selected`. For more information, see \"[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization).\"\"\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.",
|
|
6556
|
+
"operationId": "actions/get-allowed-actions-organization",
|
|
6557
|
+
"tags": ["actions"],
|
|
6609
6558
|
"externalDocs": {
|
|
6610
6559
|
"description": "API method documentation",
|
|
6611
|
-
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/
|
|
6560
|
+
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/actions#get-allowed-actions-for-an-organization"
|
|
6612
6561
|
},
|
|
6613
6562
|
"parameters": [
|
|
6614
6563
|
{
|
|
@@ -6618,460 +6567,131 @@
|
|
|
6618
6567
|
"schema": { "type": "string" }
|
|
6619
6568
|
}
|
|
6620
6569
|
],
|
|
6621
|
-
"
|
|
6622
|
-
"
|
|
6623
|
-
"
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
"
|
|
6627
|
-
"
|
|
6628
|
-
|
|
6629
|
-
"
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
"
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
},
|
|
6639
|
-
"twitter_username": {
|
|
6640
|
-
"type": "string",
|
|
6641
|
-
"description": "The Twitter username of the company."
|
|
6642
|
-
},
|
|
6643
|
-
"location": {
|
|
6644
|
-
"type": "string",
|
|
6645
|
-
"description": "The location."
|
|
6646
|
-
},
|
|
6647
|
-
"name": {
|
|
6648
|
-
"type": "string",
|
|
6649
|
-
"description": "The shorthand name of the company."
|
|
6650
|
-
},
|
|
6651
|
-
"description": {
|
|
6652
|
-
"type": "string",
|
|
6653
|
-
"description": "The description of the company."
|
|
6654
|
-
},
|
|
6655
|
-
"has_organization_projects": {
|
|
6656
|
-
"type": "boolean",
|
|
6657
|
-
"description": "Toggles whether an organization can use organization projects."
|
|
6658
|
-
},
|
|
6659
|
-
"has_repository_projects": {
|
|
6660
|
-
"type": "boolean",
|
|
6661
|
-
"description": "Toggles whether repositories that belong to the organization can use repository projects."
|
|
6662
|
-
},
|
|
6663
|
-
"default_repository_permission": {
|
|
6664
|
-
"type": "string",
|
|
6665
|
-
"description": "Default permission level members have for organization repositories: \n\\* `read` - can pull, but not push to or administer this repository. \n\\* `write` - can pull and push, but not administer this repository. \n\\* `admin` - can pull, push, and administer this repository. \n\\* `none` - no permissions granted by default.",
|
|
6666
|
-
"enum": ["read", "write", "admin", "none"],
|
|
6667
|
-
"default": "read"
|
|
6668
|
-
},
|
|
6669
|
-
"members_can_create_repositories": {
|
|
6670
|
-
"type": "boolean",
|
|
6671
|
-
"description": "Toggles the ability of non-admin organization members to create repositories. Can be one of: \n\\* `true` - all organization members can create repositories. \n\\* `false` - only organization owners can create repositories. \nDefault: `true` \n**Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.",
|
|
6672
|
-
"default": true
|
|
6673
|
-
},
|
|
6674
|
-
"members_can_create_internal_repositories": {
|
|
6675
|
-
"type": "boolean",
|
|
6676
|
-
"description": "Toggles whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. Can be one of: \n\\* `true` - all organization members can create internal repositories. \n\\* `false` - only organization owners can create internal repositories. \nDefault: `true`. For more information, see \"[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation."
|
|
6677
|
-
},
|
|
6678
|
-
"members_can_create_private_repositories": {
|
|
6679
|
-
"type": "boolean",
|
|
6680
|
-
"description": "Toggles whether organization members can create private repositories, which are visible to organization members with permission. Can be one of: \n\\* `true` - all organization members can create private repositories. \n\\* `false` - only organization owners can create private repositories. \nDefault: `true`. For more information, see \"[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation."
|
|
6681
|
-
},
|
|
6682
|
-
"members_can_create_public_repositories": {
|
|
6683
|
-
"type": "boolean",
|
|
6684
|
-
"description": "Toggles whether organization members can create public repositories, which are visible to anyone. Can be one of: \n\\* `true` - all organization members can create public repositories. \n\\* `false` - only organization owners can create public repositories. \nDefault: `true`. For more information, see \"[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation."
|
|
6685
|
-
},
|
|
6686
|
-
"members_allowed_repository_creation_type": {
|
|
6687
|
-
"type": "string",
|
|
6688
|
-
"description": "Specifies which types of repositories non-admin organization members can create. Can be one of: \n\\* `all` - all organization members can create public and private repositories. \n\\* `private` - members can create private repositories. This option is only available to repositories that are part of an organization on GitHub Enterprise Cloud. \n\\* `none` - only admin members can create repositories. \n**Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.",
|
|
6689
|
-
"enum": ["all", "private", "none"]
|
|
6690
|
-
},
|
|
6691
|
-
"members_can_create_pages": {
|
|
6692
|
-
"type": "boolean",
|
|
6693
|
-
"description": "Toggles whether organization members can create GitHub Pages sites. Can be one of: \n\\* `true` - all organization members can create GitHub Pages sites. \n\\* `false` - no organization members can create GitHub Pages sites. Existing published sites will not be impacted.",
|
|
6694
|
-
"default": true
|
|
6570
|
+
"responses": {
|
|
6571
|
+
"200": {
|
|
6572
|
+
"description": "Response",
|
|
6573
|
+
"content": {
|
|
6574
|
+
"application/json": {
|
|
6575
|
+
"schema": {
|
|
6576
|
+
"type": "object",
|
|
6577
|
+
"properties": {
|
|
6578
|
+
"github_owned_allowed": {
|
|
6579
|
+
"type": "boolean",
|
|
6580
|
+
"description": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization."
|
|
6581
|
+
},
|
|
6582
|
+
"patterns_allowed": {
|
|
6583
|
+
"type": "array",
|
|
6584
|
+
"description": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\"",
|
|
6585
|
+
"items": { "type": "string" }
|
|
6586
|
+
}
|
|
6695
6587
|
},
|
|
6696
|
-
"
|
|
6697
|
-
|
|
6698
|
-
|
|
6588
|
+
"required": ["github_owned_allowed", "patterns_allowed"]
|
|
6589
|
+
},
|
|
6590
|
+
"examples": {
|
|
6591
|
+
"default": {
|
|
6592
|
+
"value": {
|
|
6593
|
+
"github_owned_allowed": true,
|
|
6594
|
+
"verified_allowed": false,
|
|
6595
|
+
"patterns_allowed": ["monalisa/octocat@*", "docker/*"]
|
|
6596
|
+
}
|
|
6699
6597
|
}
|
|
6700
6598
|
}
|
|
6701
|
-
},
|
|
6702
|
-
"example": {
|
|
6703
|
-
"billing_email": "mona@github.com",
|
|
6704
|
-
"company": "GitHub",
|
|
6705
|
-
"email": "mona@github.com",
|
|
6706
|
-
"twitter_username": "github",
|
|
6707
|
-
"location": "San Francisco",
|
|
6708
|
-
"name": "github",
|
|
6709
|
-
"description": "GitHub, the company.",
|
|
6710
|
-
"default_repository_permission": "read",
|
|
6711
|
-
"members_can_create_repositories": true,
|
|
6712
|
-
"members_allowed_repository_creation_type": "all"
|
|
6713
6599
|
}
|
|
6714
6600
|
}
|
|
6715
6601
|
}
|
|
6716
6602
|
},
|
|
6603
|
+
"x-github": {
|
|
6604
|
+
"enabledForGitHubApps": true,
|
|
6605
|
+
"githubCloudOnly": false,
|
|
6606
|
+
"previews": [],
|
|
6607
|
+
"category": "actions",
|
|
6608
|
+
"subcategory": "permissions"
|
|
6609
|
+
},
|
|
6610
|
+
"x-octokit": { "diff": { "api.github.com": { "type": "changed" } } }
|
|
6611
|
+
}
|
|
6612
|
+
},
|
|
6613
|
+
"/orgs/{org}/pre-receive-hooks": {
|
|
6614
|
+
"get": {
|
|
6615
|
+
"summary": "List pre-receive hooks for an organization",
|
|
6616
|
+
"description": "List all pre-receive hooks that are enabled or testing for this organization as well as any disabled hooks that can be configured at the organization level. Globally disabled pre-receive hooks that do not allow downstream configuration are not listed.",
|
|
6617
|
+
"operationId": "enterprise-admin/list-pre-receive-hooks-for-org",
|
|
6618
|
+
"tags": ["enterprise-admin"],
|
|
6619
|
+
"externalDocs": {
|
|
6620
|
+
"description": "API method documentation",
|
|
6621
|
+
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/enterprise-admin#list-pre-receive-hooks-for-an-organization"
|
|
6622
|
+
},
|
|
6623
|
+
"parameters": [
|
|
6624
|
+
{
|
|
6625
|
+
"name": "org",
|
|
6626
|
+
"in": "path",
|
|
6627
|
+
"required": true,
|
|
6628
|
+
"schema": { "type": "string" }
|
|
6629
|
+
},
|
|
6630
|
+
{
|
|
6631
|
+
"name": "per_page",
|
|
6632
|
+
"description": "Results per page (max 100)",
|
|
6633
|
+
"in": "query",
|
|
6634
|
+
"schema": { "type": "integer", "default": 30 }
|
|
6635
|
+
},
|
|
6636
|
+
{
|
|
6637
|
+
"name": "page",
|
|
6638
|
+
"description": "Page number of the results to fetch.",
|
|
6639
|
+
"in": "query",
|
|
6640
|
+
"schema": { "type": "integer", "default": 1 }
|
|
6641
|
+
},
|
|
6642
|
+
{
|
|
6643
|
+
"name": "direction",
|
|
6644
|
+
"description": "One of `asc` (ascending) or `desc` (descending).",
|
|
6645
|
+
"in": "query",
|
|
6646
|
+
"required": false,
|
|
6647
|
+
"schema": {
|
|
6648
|
+
"type": "string",
|
|
6649
|
+
"enum": ["asc", "desc"],
|
|
6650
|
+
"default": "desc"
|
|
6651
|
+
}
|
|
6652
|
+
},
|
|
6653
|
+
{
|
|
6654
|
+
"name": "sort",
|
|
6655
|
+
"description": "The sort order for the response collection.",
|
|
6656
|
+
"in": "query",
|
|
6657
|
+
"required": false,
|
|
6658
|
+
"schema": {
|
|
6659
|
+
"type": "string",
|
|
6660
|
+
"enum": ["created", "updated", "name"],
|
|
6661
|
+
"default": "created"
|
|
6662
|
+
}
|
|
6663
|
+
}
|
|
6664
|
+
],
|
|
6717
6665
|
"responses": {
|
|
6718
6666
|
"200": {
|
|
6719
6667
|
"description": "Response",
|
|
6720
6668
|
"content": {
|
|
6721
6669
|
"application/json": {
|
|
6722
6670
|
"schema": {
|
|
6723
|
-
"
|
|
6724
|
-
"
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
"type": "string",
|
|
6731
|
-
"
|
|
6732
|
-
}
|
|
6733
|
-
|
|
6734
|
-
"type": "string",
|
|
6735
|
-
"format": "uri",
|
|
6736
|
-
"example": "https://api.github.com/orgs/github"
|
|
6737
|
-
},
|
|
6738
|
-
"repos_url": {
|
|
6739
|
-
"type": "string",
|
|
6740
|
-
"format": "uri",
|
|
6741
|
-
"example": "https://api.github.com/orgs/github/repos"
|
|
6742
|
-
},
|
|
6743
|
-
"events_url": {
|
|
6744
|
-
"type": "string",
|
|
6745
|
-
"format": "uri",
|
|
6746
|
-
"example": "https://api.github.com/orgs/github/events"
|
|
6747
|
-
},
|
|
6748
|
-
"hooks_url": {
|
|
6749
|
-
"type": "string",
|
|
6750
|
-
"example": "https://api.github.com/orgs/github/hooks"
|
|
6751
|
-
},
|
|
6752
|
-
"issues_url": {
|
|
6753
|
-
"type": "string",
|
|
6754
|
-
"example": "https://api.github.com/orgs/github/issues"
|
|
6755
|
-
},
|
|
6756
|
-
"members_url": {
|
|
6757
|
-
"type": "string",
|
|
6758
|
-
"example": "https://api.github.com/orgs/github/members{/member}"
|
|
6759
|
-
},
|
|
6760
|
-
"public_members_url": {
|
|
6761
|
-
"type": "string",
|
|
6762
|
-
"example": "https://api.github.com/orgs/github/public_members{/member}"
|
|
6763
|
-
},
|
|
6764
|
-
"avatar_url": {
|
|
6765
|
-
"type": "string",
|
|
6766
|
-
"example": "https://github.com/images/error/octocat_happy.gif"
|
|
6767
|
-
},
|
|
6768
|
-
"description": {
|
|
6769
|
-
"type": "string",
|
|
6770
|
-
"example": "A great organization",
|
|
6771
|
-
"nullable": true
|
|
6772
|
-
},
|
|
6773
|
-
"name": { "type": "string", "example": "github" },
|
|
6774
|
-
"company": { "type": "string", "example": "GitHub" },
|
|
6775
|
-
"blog": {
|
|
6776
|
-
"type": "string",
|
|
6777
|
-
"format": "uri",
|
|
6778
|
-
"example": "https://github.com/blog"
|
|
6779
|
-
},
|
|
6780
|
-
"location": {
|
|
6781
|
-
"type": "string",
|
|
6782
|
-
"example": "San Francisco"
|
|
6783
|
-
},
|
|
6784
|
-
"email": {
|
|
6785
|
-
"type": "string",
|
|
6786
|
-
"format": "email",
|
|
6787
|
-
"example": "octocat@github.com"
|
|
6788
|
-
},
|
|
6789
|
-
"twitter_username": {
|
|
6790
|
-
"type": "string",
|
|
6791
|
-
"example": "github",
|
|
6792
|
-
"nullable": true
|
|
6793
|
-
},
|
|
6794
|
-
"is_verified": { "type": "boolean", "example": true },
|
|
6795
|
-
"has_organization_projects": {
|
|
6796
|
-
"type": "boolean",
|
|
6797
|
-
"example": true
|
|
6798
|
-
},
|
|
6799
|
-
"has_repository_projects": {
|
|
6800
|
-
"type": "boolean",
|
|
6801
|
-
"example": true
|
|
6802
|
-
},
|
|
6803
|
-
"public_repos": { "type": "integer", "example": 2 },
|
|
6804
|
-
"public_gists": { "type": "integer", "example": 1 },
|
|
6805
|
-
"followers": { "type": "integer", "example": 20 },
|
|
6806
|
-
"following": { "type": "integer", "example": 0 },
|
|
6807
|
-
"html_url": {
|
|
6808
|
-
"type": "string",
|
|
6809
|
-
"format": "uri",
|
|
6810
|
-
"example": "https://github.com/octocat"
|
|
6811
|
-
},
|
|
6812
|
-
"created_at": {
|
|
6813
|
-
"type": "string",
|
|
6814
|
-
"format": "date-time",
|
|
6815
|
-
"example": "2008-01-14T04:33:35Z"
|
|
6816
|
-
},
|
|
6817
|
-
"type": { "type": "string", "example": "Organization" },
|
|
6818
|
-
"total_private_repos": {
|
|
6819
|
-
"type": "integer",
|
|
6820
|
-
"example": 100
|
|
6821
|
-
},
|
|
6822
|
-
"owned_private_repos": {
|
|
6823
|
-
"type": "integer",
|
|
6824
|
-
"example": 100
|
|
6825
|
-
},
|
|
6826
|
-
"private_gists": {
|
|
6827
|
-
"type": "integer",
|
|
6828
|
-
"example": 81,
|
|
6829
|
-
"nullable": true
|
|
6830
|
-
},
|
|
6831
|
-
"disk_usage": {
|
|
6832
|
-
"type": "integer",
|
|
6833
|
-
"example": 10000,
|
|
6834
|
-
"nullable": true
|
|
6835
|
-
},
|
|
6836
|
-
"collaborators": {
|
|
6837
|
-
"type": "integer",
|
|
6838
|
-
"example": 8,
|
|
6839
|
-
"nullable": true
|
|
6840
|
-
},
|
|
6841
|
-
"billing_email": {
|
|
6842
|
-
"type": "string",
|
|
6843
|
-
"format": "email",
|
|
6844
|
-
"example": "org@example.com",
|
|
6845
|
-
"nullable": true
|
|
6846
|
-
},
|
|
6847
|
-
"plan": {
|
|
6848
|
-
"type": "object",
|
|
6849
|
-
"properties": {
|
|
6850
|
-
"name": { "type": "string" },
|
|
6851
|
-
"space": { "type": "integer" },
|
|
6852
|
-
"private_repos": { "type": "integer" },
|
|
6853
|
-
"filled_seats": { "type": "integer" },
|
|
6854
|
-
"seats": { "type": "integer" }
|
|
6855
|
-
},
|
|
6856
|
-
"required": ["name", "space", "private_repos"]
|
|
6857
|
-
},
|
|
6858
|
-
"default_repository_permission": {
|
|
6859
|
-
"type": "string",
|
|
6860
|
-
"nullable": true
|
|
6861
|
-
},
|
|
6862
|
-
"members_can_create_repositories": {
|
|
6863
|
-
"type": "boolean",
|
|
6864
|
-
"example": true,
|
|
6865
|
-
"nullable": true
|
|
6866
|
-
},
|
|
6867
|
-
"two_factor_requirement_enabled": {
|
|
6868
|
-
"type": "boolean",
|
|
6869
|
-
"example": true,
|
|
6870
|
-
"nullable": true
|
|
6871
|
-
},
|
|
6872
|
-
"members_allowed_repository_creation_type": {
|
|
6873
|
-
"type": "string",
|
|
6874
|
-
"example": "all"
|
|
6875
|
-
},
|
|
6876
|
-
"members_can_create_public_repositories": {
|
|
6877
|
-
"type": "boolean",
|
|
6878
|
-
"example": true
|
|
6879
|
-
},
|
|
6880
|
-
"members_can_create_private_repositories": {
|
|
6881
|
-
"type": "boolean",
|
|
6882
|
-
"example": true
|
|
6883
|
-
},
|
|
6884
|
-
"members_can_create_internal_repositories": {
|
|
6885
|
-
"type": "boolean",
|
|
6886
|
-
"example": true
|
|
6887
|
-
},
|
|
6888
|
-
"members_can_create_pages": {
|
|
6889
|
-
"type": "boolean",
|
|
6890
|
-
"example": true
|
|
6891
|
-
},
|
|
6892
|
-
"members_can_create_public_pages": {
|
|
6893
|
-
"type": "boolean",
|
|
6894
|
-
"example": true
|
|
6895
|
-
},
|
|
6896
|
-
"members_can_create_private_pages": {
|
|
6897
|
-
"type": "boolean",
|
|
6898
|
-
"example": true
|
|
6899
|
-
},
|
|
6900
|
-
"updated_at": { "type": "string", "format": "date-time" }
|
|
6901
|
-
},
|
|
6902
|
-
"required": [
|
|
6903
|
-
"login",
|
|
6904
|
-
"url",
|
|
6905
|
-
"id",
|
|
6906
|
-
"node_id",
|
|
6907
|
-
"repos_url",
|
|
6908
|
-
"events_url",
|
|
6909
|
-
"hooks_url",
|
|
6910
|
-
"issues_url",
|
|
6911
|
-
"members_url",
|
|
6912
|
-
"public_members_url",
|
|
6913
|
-
"avatar_url",
|
|
6914
|
-
"description",
|
|
6915
|
-
"html_url",
|
|
6916
|
-
"has_organization_projects",
|
|
6917
|
-
"has_repository_projects",
|
|
6918
|
-
"public_repos",
|
|
6919
|
-
"public_gists",
|
|
6920
|
-
"followers",
|
|
6921
|
-
"following",
|
|
6922
|
-
"type",
|
|
6923
|
-
"created_at",
|
|
6924
|
-
"updated_at"
|
|
6925
|
-
]
|
|
6671
|
+
"type": "array",
|
|
6672
|
+
"items": {
|
|
6673
|
+
"type": "object",
|
|
6674
|
+
"properties": {
|
|
6675
|
+
"id": { "type": "integer" },
|
|
6676
|
+
"name": { "type": "string" },
|
|
6677
|
+
"enforcement": { "type": "string" },
|
|
6678
|
+
"configuration_url": { "type": "string" },
|
|
6679
|
+
"allow_downstream_configuration": { "type": "boolean" }
|
|
6680
|
+
}
|
|
6681
|
+
}
|
|
6926
6682
|
},
|
|
6927
6683
|
"examples": {
|
|
6928
6684
|
"default": {
|
|
6929
|
-
"value":
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
"hooks_url": "https://api.github.com/orgs/github/hooks",
|
|
6937
|
-
"issues_url": "https://api.github.com/orgs/github/issues",
|
|
6938
|
-
"members_url": "https://api.github.com/orgs/github/members{/member}",
|
|
6939
|
-
"public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
|
|
6940
|
-
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
6941
|
-
"description": "A great organization",
|
|
6942
|
-
"name": "github",
|
|
6943
|
-
"company": "GitHub",
|
|
6944
|
-
"blog": "https://github.com/blog",
|
|
6945
|
-
"location": "San Francisco",
|
|
6946
|
-
"email": "octocat@github.com",
|
|
6947
|
-
"twitter_username": "github",
|
|
6948
|
-
"is_verified": true,
|
|
6949
|
-
"has_organization_projects": true,
|
|
6950
|
-
"has_repository_projects": true,
|
|
6951
|
-
"public_repos": 2,
|
|
6952
|
-
"public_gists": 1,
|
|
6953
|
-
"followers": 20,
|
|
6954
|
-
"following": 0,
|
|
6955
|
-
"html_url": "https://github.com/octocat",
|
|
6956
|
-
"created_at": "2008-01-14T04:33:35Z",
|
|
6957
|
-
"type": "Organization",
|
|
6958
|
-
"total_private_repos": 100,
|
|
6959
|
-
"owned_private_repos": 100,
|
|
6960
|
-
"private_gists": 81,
|
|
6961
|
-
"disk_usage": 10000,
|
|
6962
|
-
"collaborators": 8,
|
|
6963
|
-
"billing_email": "mona@github.com",
|
|
6964
|
-
"plan": {
|
|
6965
|
-
"name": "Medium",
|
|
6966
|
-
"space": 400,
|
|
6967
|
-
"private_repos": 20
|
|
6968
|
-
},
|
|
6969
|
-
"default_repository_permission": "read",
|
|
6970
|
-
"members_can_create_repositories": true,
|
|
6971
|
-
"two_factor_requirement_enabled": true,
|
|
6972
|
-
"members_allowed_repository_creation_type": "all",
|
|
6973
|
-
"members_can_create_public_repositories": false,
|
|
6974
|
-
"members_can_create_private_repositories": false,
|
|
6975
|
-
"members_can_create_internal_repositories": false,
|
|
6976
|
-
"members_can_create_pages": true,
|
|
6977
|
-
"members_can_create_public_pages": true,
|
|
6978
|
-
"members_can_create_private_pages": true,
|
|
6979
|
-
"updated_at": "2014-03-03T18:58:10Z"
|
|
6980
|
-
}
|
|
6981
|
-
}
|
|
6982
|
-
}
|
|
6983
|
-
}
|
|
6984
|
-
}
|
|
6985
|
-
},
|
|
6986
|
-
"409": {
|
|
6987
|
-
"description": "Conflict",
|
|
6988
|
-
"content": {
|
|
6989
|
-
"application/json": {
|
|
6990
|
-
"schema": {
|
|
6991
|
-
"title": "Basic Error",
|
|
6992
|
-
"description": "Basic Error",
|
|
6993
|
-
"type": "object",
|
|
6994
|
-
"properties": {
|
|
6995
|
-
"message": { "type": "string" },
|
|
6996
|
-
"documentation_url": { "type": "string" },
|
|
6997
|
-
"url": { "type": "string" },
|
|
6998
|
-
"status": { "type": "string" }
|
|
6999
|
-
}
|
|
7000
|
-
}
|
|
7001
|
-
}
|
|
7002
|
-
}
|
|
7003
|
-
},
|
|
7004
|
-
"415": {
|
|
7005
|
-
"description": "Preview header missing",
|
|
7006
|
-
"content": {
|
|
7007
|
-
"application/json": {
|
|
7008
|
-
"schema": {
|
|
7009
|
-
"type": "object",
|
|
7010
|
-
"required": ["message", "documentation_url"],
|
|
7011
|
-
"properties": {
|
|
7012
|
-
"message": { "type": "string" },
|
|
7013
|
-
"documentation_url": { "type": "string" }
|
|
7014
|
-
}
|
|
7015
|
-
}
|
|
7016
|
-
}
|
|
7017
|
-
}
|
|
7018
|
-
},
|
|
7019
|
-
"422": {
|
|
7020
|
-
"description": "Validation failed",
|
|
7021
|
-
"content": {
|
|
7022
|
-
"application/json": {
|
|
7023
|
-
"schema": {
|
|
7024
|
-
"oneOf": [
|
|
7025
|
-
{
|
|
7026
|
-
"title": "Validation Error",
|
|
7027
|
-
"description": "Validation Error",
|
|
7028
|
-
"type": "object",
|
|
7029
|
-
"required": ["message", "documentation_url"],
|
|
7030
|
-
"properties": {
|
|
7031
|
-
"message": { "type": "string" },
|
|
7032
|
-
"documentation_url": { "type": "string" },
|
|
7033
|
-
"errors": {
|
|
7034
|
-
"type": "array",
|
|
7035
|
-
"items": {
|
|
7036
|
-
"type": "object",
|
|
7037
|
-
"required": ["code"],
|
|
7038
|
-
"properties": {
|
|
7039
|
-
"resource": { "type": "string" },
|
|
7040
|
-
"field": { "type": "string" },
|
|
7041
|
-
"message": { "type": "string" },
|
|
7042
|
-
"code": { "type": "string" },
|
|
7043
|
-
"index": { "type": "integer" },
|
|
7044
|
-
"value": {
|
|
7045
|
-
"oneOf": [
|
|
7046
|
-
{ "type": "string", "nullable": true },
|
|
7047
|
-
{ "type": "integer", "nullable": true },
|
|
7048
|
-
{
|
|
7049
|
-
"type": "array",
|
|
7050
|
-
"nullable": true,
|
|
7051
|
-
"items": { "type": "string" }
|
|
7052
|
-
}
|
|
7053
|
-
]
|
|
7054
|
-
}
|
|
7055
|
-
}
|
|
7056
|
-
}
|
|
7057
|
-
}
|
|
7058
|
-
}
|
|
7059
|
-
},
|
|
7060
|
-
{
|
|
7061
|
-
"title": "Validation Error Simple",
|
|
7062
|
-
"description": "Validation Error Simple",
|
|
7063
|
-
"type": "object",
|
|
7064
|
-
"required": ["message", "documentation_url"],
|
|
7065
|
-
"properties": {
|
|
7066
|
-
"message": { "type": "string" },
|
|
7067
|
-
"documentation_url": { "type": "string" },
|
|
7068
|
-
"errors": {
|
|
7069
|
-
"type": "array",
|
|
7070
|
-
"items": { "type": "string" }
|
|
7071
|
-
}
|
|
6685
|
+
"value": [
|
|
6686
|
+
{
|
|
6687
|
+
"id": 42,
|
|
6688
|
+
"name": "Check Commits",
|
|
6689
|
+
"enforcement": "disabled",
|
|
6690
|
+
"configuration_url": "https://github.example.com/api/v3/admin/pre-receive-hooks/42",
|
|
6691
|
+
"allow_downstream_configuration": true
|
|
7072
6692
|
}
|
|
7073
|
-
|
|
7074
|
-
|
|
6693
|
+
]
|
|
6694
|
+
}
|
|
7075
6695
|
}
|
|
7076
6696
|
}
|
|
7077
6697
|
}
|
|
@@ -7082,26 +6702,26 @@
|
|
|
7082
6702
|
"enabledForGitHubApps": true,
|
|
7083
6703
|
"previews": [
|
|
7084
6704
|
{
|
|
7085
|
-
"required":
|
|
7086
|
-
"name": "
|
|
7087
|
-
"note": "
|
|
6705
|
+
"required": true,
|
|
6706
|
+
"name": "eye-scream",
|
|
6707
|
+
"note": "APIs for managing pre-receive hooks are currently available for developers to preview. During the preview period, the APIs may change without advance notice.\n\nTo access the API you must provide a custom [media type](/rest/overview/media-types) in the `Accept` header:\n\n```shell\napplication/vnd.github.eye-scream-preview\n```"
|
|
7088
6708
|
}
|
|
7089
6709
|
],
|
|
7090
|
-
"category": "
|
|
7091
|
-
"subcategory":
|
|
6710
|
+
"category": "enterprise-admin",
|
|
6711
|
+
"subcategory": "org-pre-receive-hooks"
|
|
7092
6712
|
},
|
|
7093
|
-
"x-octokit": { "diff": { "api.github.com": { "type": "
|
|
6713
|
+
"x-octokit": { "diff": { "api.github.com": { "type": "added" } } }
|
|
7094
6714
|
}
|
|
7095
6715
|
},
|
|
7096
|
-
"/orgs/{org}/
|
|
6716
|
+
"/orgs/{org}/pre-receive-hooks/{pre_receive_hook_id}": {
|
|
7097
6717
|
"get": {
|
|
7098
|
-
"summary": "Get
|
|
7099
|
-
"description": "
|
|
7100
|
-
"operationId": "
|
|
7101
|
-
"tags": ["
|
|
6718
|
+
"summary": "Get a pre-receive hook for an organization",
|
|
6719
|
+
"description": "",
|
|
6720
|
+
"operationId": "enterprise-admin/get-pre-receive-hook-for-org",
|
|
6721
|
+
"tags": ["enterprise-admin"],
|
|
7102
6722
|
"externalDocs": {
|
|
7103
6723
|
"description": "API method documentation",
|
|
7104
|
-
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/
|
|
6724
|
+
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/enterprise-admin#get-a-pre-receive-hook-for-an-organization"
|
|
7105
6725
|
},
|
|
7106
6726
|
"parameters": [
|
|
7107
6727
|
{
|
|
@@ -7109,6 +6729,13 @@
|
|
|
7109
6729
|
"in": "path",
|
|
7110
6730
|
"required": true,
|
|
7111
6731
|
"schema": { "type": "string" }
|
|
6732
|
+
},
|
|
6733
|
+
{
|
|
6734
|
+
"name": "pre_receive_hook_id",
|
|
6735
|
+
"description": "pre_receive_hook_id parameter",
|
|
6736
|
+
"in": "path",
|
|
6737
|
+
"required": true,
|
|
6738
|
+
"schema": { "type": "integer" }
|
|
7112
6739
|
}
|
|
7113
6740
|
],
|
|
7114
6741
|
"responses": {
|
|
@@ -7119,249 +6746,21 @@
|
|
|
7119
6746
|
"schema": {
|
|
7120
6747
|
"type": "object",
|
|
7121
6748
|
"properties": {
|
|
7122
|
-
"
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
|
-
},
|
|
7126
|
-
"
|
|
7127
|
-
|
|
7128
|
-
"description": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\"",
|
|
7129
|
-
"items": { "type": "string" }
|
|
7130
|
-
}
|
|
7131
|
-
},
|
|
7132
|
-
"required": ["github_owned_allowed", "patterns_allowed"]
|
|
6749
|
+
"id": { "type": "integer" },
|
|
6750
|
+
"name": { "type": "string" },
|
|
6751
|
+
"enforcement": { "type": "string" },
|
|
6752
|
+
"configuration_url": { "type": "string" },
|
|
6753
|
+
"allow_downstream_configuration": { "type": "boolean" }
|
|
6754
|
+
}
|
|
7133
6755
|
},
|
|
7134
6756
|
"examples": {
|
|
7135
6757
|
"default": {
|
|
7136
6758
|
"value": {
|
|
7137
|
-
"
|
|
7138
|
-
"
|
|
7139
|
-
"
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
}
|
|
7143
|
-
}
|
|
7144
|
-
}
|
|
7145
|
-
}
|
|
7146
|
-
},
|
|
7147
|
-
"x-github": {
|
|
7148
|
-
"enabledForGitHubApps": true,
|
|
7149
|
-
"githubCloudOnly": false,
|
|
7150
|
-
"previews": [],
|
|
7151
|
-
"category": "actions",
|
|
7152
|
-
"subcategory": "permissions"
|
|
7153
|
-
},
|
|
7154
|
-
"x-octokit": { "diff": { "api.github.com": { "type": "changed" } } }
|
|
7155
|
-
},
|
|
7156
|
-
"put": {
|
|
7157
|
-
"summary": "Set allowed actions for an organization",
|
|
7158
|
-
"description": "Sets the actions that are allowed in an organization. To use this endpoint, the organization permission policy for `allowed_actions` must be configured to `selected`. For more information, see \"[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization).\"\n\nIf the organization belongs to an enterprise that has `selected` actions set at the enterprise level, then you cannot override any of the enterprise's allowed actions settings.\n\nTo use the `patterns_allowed` setting for private repositories, the organization must belong to an enterprise. If the organization does not belong to an enterprise, then the `patterns_allowed` setting only applies to public repositories in the organization.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.",
|
|
7159
|
-
"operationId": "actions/set-allowed-actions-organization",
|
|
7160
|
-
"tags": ["actions"],
|
|
7161
|
-
"externalDocs": {
|
|
7162
|
-
"description": "API method documentation",
|
|
7163
|
-
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/actions#set-allowed-actions-for-an-organization"
|
|
7164
|
-
},
|
|
7165
|
-
"parameters": [
|
|
7166
|
-
{
|
|
7167
|
-
"name": "org",
|
|
7168
|
-
"in": "path",
|
|
7169
|
-
"required": true,
|
|
7170
|
-
"schema": { "type": "string" }
|
|
7171
|
-
}
|
|
7172
|
-
],
|
|
7173
|
-
"responses": { "204": { "description": "Response" } },
|
|
7174
|
-
"requestBody": {
|
|
7175
|
-
"content": {
|
|
7176
|
-
"application/json": {
|
|
7177
|
-
"schema": {
|
|
7178
|
-
"type": "object",
|
|
7179
|
-
"properties": {
|
|
7180
|
-
"github_owned_allowed": {
|
|
7181
|
-
"type": "boolean",
|
|
7182
|
-
"description": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization."
|
|
7183
|
-
},
|
|
7184
|
-
"patterns_allowed": {
|
|
7185
|
-
"type": "array",
|
|
7186
|
-
"description": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\"",
|
|
7187
|
-
"items": { "type": "string" }
|
|
7188
|
-
}
|
|
7189
|
-
},
|
|
7190
|
-
"required": ["github_owned_allowed", "patterns_allowed"]
|
|
7191
|
-
},
|
|
7192
|
-
"examples": {
|
|
7193
|
-
"selected_actions": {
|
|
7194
|
-
"value": {
|
|
7195
|
-
"github_owned_allowed": true,
|
|
7196
|
-
"verified_allowed": false,
|
|
7197
|
-
"patterns_allowed": ["monalisa/octocat@*", "docker/*"]
|
|
7198
|
-
}
|
|
7199
|
-
}
|
|
7200
|
-
}
|
|
7201
|
-
}
|
|
7202
|
-
}
|
|
7203
|
-
},
|
|
7204
|
-
"x-github": {
|
|
7205
|
-
"enabledForGitHubApps": true,
|
|
7206
|
-
"githubCloudOnly": false,
|
|
7207
|
-
"previews": [],
|
|
7208
|
-
"category": "actions",
|
|
7209
|
-
"subcategory": "permissions"
|
|
7210
|
-
},
|
|
7211
|
-
"x-octokit": { "diff": { "api.github.com": { "type": "changed" } } }
|
|
7212
|
-
}
|
|
7213
|
-
},
|
|
7214
|
-
"/orgs/{org}/pre-receive-hooks": {
|
|
7215
|
-
"get": {
|
|
7216
|
-
"summary": "List pre-receive hooks for an organization",
|
|
7217
|
-
"description": "List all pre-receive hooks that are enabled or testing for this organization as well as any disabled hooks that can be configured at the organization level. Globally disabled pre-receive hooks that do not allow downstream configuration are not listed.",
|
|
7218
|
-
"operationId": "enterprise-admin/list-pre-receive-hooks-for-org",
|
|
7219
|
-
"tags": ["enterprise-admin"],
|
|
7220
|
-
"externalDocs": {
|
|
7221
|
-
"description": "API method documentation",
|
|
7222
|
-
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/enterprise-admin#list-pre-receive-hooks-for-an-organization"
|
|
7223
|
-
},
|
|
7224
|
-
"parameters": [
|
|
7225
|
-
{
|
|
7226
|
-
"name": "org",
|
|
7227
|
-
"in": "path",
|
|
7228
|
-
"required": true,
|
|
7229
|
-
"schema": { "type": "string" }
|
|
7230
|
-
},
|
|
7231
|
-
{
|
|
7232
|
-
"name": "per_page",
|
|
7233
|
-
"description": "Results per page (max 100)",
|
|
7234
|
-
"in": "query",
|
|
7235
|
-
"schema": { "type": "integer", "default": 30 }
|
|
7236
|
-
},
|
|
7237
|
-
{
|
|
7238
|
-
"name": "page",
|
|
7239
|
-
"description": "Page number of the results to fetch.",
|
|
7240
|
-
"in": "query",
|
|
7241
|
-
"schema": { "type": "integer", "default": 1 }
|
|
7242
|
-
},
|
|
7243
|
-
{
|
|
7244
|
-
"name": "direction",
|
|
7245
|
-
"description": "One of `asc` (ascending) or `desc` (descending).",
|
|
7246
|
-
"in": "query",
|
|
7247
|
-
"required": false,
|
|
7248
|
-
"schema": {
|
|
7249
|
-
"type": "string",
|
|
7250
|
-
"enum": ["asc", "desc"],
|
|
7251
|
-
"default": "desc"
|
|
7252
|
-
}
|
|
7253
|
-
},
|
|
7254
|
-
{
|
|
7255
|
-
"name": "sort",
|
|
7256
|
-
"description": "The sort order for the response collection.",
|
|
7257
|
-
"in": "query",
|
|
7258
|
-
"required": false,
|
|
7259
|
-
"schema": {
|
|
7260
|
-
"type": "string",
|
|
7261
|
-
"enum": ["created", "updated", "name"],
|
|
7262
|
-
"default": "created"
|
|
7263
|
-
}
|
|
7264
|
-
}
|
|
7265
|
-
],
|
|
7266
|
-
"responses": {
|
|
7267
|
-
"200": {
|
|
7268
|
-
"description": "Response",
|
|
7269
|
-
"content": {
|
|
7270
|
-
"application/json": {
|
|
7271
|
-
"schema": {
|
|
7272
|
-
"type": "array",
|
|
7273
|
-
"items": {
|
|
7274
|
-
"type": "object",
|
|
7275
|
-
"properties": {
|
|
7276
|
-
"id": { "type": "integer" },
|
|
7277
|
-
"name": { "type": "string" },
|
|
7278
|
-
"enforcement": { "type": "string" },
|
|
7279
|
-
"configuration_url": { "type": "string" },
|
|
7280
|
-
"allow_downstream_configuration": { "type": "boolean" }
|
|
7281
|
-
}
|
|
7282
|
-
}
|
|
7283
|
-
},
|
|
7284
|
-
"examples": {
|
|
7285
|
-
"default": {
|
|
7286
|
-
"value": [
|
|
7287
|
-
{
|
|
7288
|
-
"id": 42,
|
|
7289
|
-
"name": "Check Commits",
|
|
7290
|
-
"enforcement": "disabled",
|
|
7291
|
-
"configuration_url": "https://github.example.com/api/v3/admin/pre-receive-hooks/42",
|
|
7292
|
-
"allow_downstream_configuration": true
|
|
7293
|
-
}
|
|
7294
|
-
]
|
|
7295
|
-
}
|
|
7296
|
-
}
|
|
7297
|
-
}
|
|
7298
|
-
}
|
|
7299
|
-
}
|
|
7300
|
-
},
|
|
7301
|
-
"x-github": {
|
|
7302
|
-
"githubCloudOnly": false,
|
|
7303
|
-
"enabledForGitHubApps": true,
|
|
7304
|
-
"previews": [
|
|
7305
|
-
{
|
|
7306
|
-
"required": true,
|
|
7307
|
-
"name": "eye-scream",
|
|
7308
|
-
"note": "APIs for managing pre-receive hooks are currently available for developers to preview. During the preview period, the APIs may change without advance notice.\n\nTo access the API you must provide a custom [media type](/rest/overview/media-types) in the `Accept` header:\n\n```shell\napplication/vnd.github.eye-scream-preview\n```"
|
|
7309
|
-
}
|
|
7310
|
-
],
|
|
7311
|
-
"category": "enterprise-admin",
|
|
7312
|
-
"subcategory": "org-pre-receive-hooks"
|
|
7313
|
-
},
|
|
7314
|
-
"x-octokit": { "diff": { "api.github.com": { "type": "added" } } }
|
|
7315
|
-
}
|
|
7316
|
-
},
|
|
7317
|
-
"/orgs/{org}/pre-receive-hooks/{pre_receive_hook_id}": {
|
|
7318
|
-
"get": {
|
|
7319
|
-
"summary": "Get a pre-receive hook for an organization",
|
|
7320
|
-
"description": "",
|
|
7321
|
-
"operationId": "enterprise-admin/get-pre-receive-hook-for-org",
|
|
7322
|
-
"tags": ["enterprise-admin"],
|
|
7323
|
-
"externalDocs": {
|
|
7324
|
-
"description": "API method documentation",
|
|
7325
|
-
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/enterprise-admin#get-a-pre-receive-hook-for-an-organization"
|
|
7326
|
-
},
|
|
7327
|
-
"parameters": [
|
|
7328
|
-
{
|
|
7329
|
-
"name": "org",
|
|
7330
|
-
"in": "path",
|
|
7331
|
-
"required": true,
|
|
7332
|
-
"schema": { "type": "string" }
|
|
7333
|
-
},
|
|
7334
|
-
{
|
|
7335
|
-
"name": "pre_receive_hook_id",
|
|
7336
|
-
"description": "pre_receive_hook_id parameter",
|
|
7337
|
-
"in": "path",
|
|
7338
|
-
"required": true,
|
|
7339
|
-
"schema": { "type": "integer" }
|
|
7340
|
-
}
|
|
7341
|
-
],
|
|
7342
|
-
"responses": {
|
|
7343
|
-
"200": {
|
|
7344
|
-
"description": "Response",
|
|
7345
|
-
"content": {
|
|
7346
|
-
"application/json": {
|
|
7347
|
-
"schema": {
|
|
7348
|
-
"type": "object",
|
|
7349
|
-
"properties": {
|
|
7350
|
-
"id": { "type": "integer" },
|
|
7351
|
-
"name": { "type": "string" },
|
|
7352
|
-
"enforcement": { "type": "string" },
|
|
7353
|
-
"configuration_url": { "type": "string" },
|
|
7354
|
-
"allow_downstream_configuration": { "type": "boolean" }
|
|
7355
|
-
}
|
|
7356
|
-
},
|
|
7357
|
-
"examples": {
|
|
7358
|
-
"default": {
|
|
7359
|
-
"value": {
|
|
7360
|
-
"id": 42,
|
|
7361
|
-
"name": "Check Commits",
|
|
7362
|
-
"enforcement": "disabled",
|
|
7363
|
-
"configuration_url": "https://github.example.com/api/v3/admin/pre-receive-hooks/42",
|
|
7364
|
-
"allow_downstream_configuration": true
|
|
6759
|
+
"id": 42,
|
|
6760
|
+
"name": "Check Commits",
|
|
6761
|
+
"enforcement": "disabled",
|
|
6762
|
+
"configuration_url": "https://github.example.com/api/v3/admin/pre-receive-hooks/42",
|
|
6763
|
+
"allow_downstream_configuration": true
|
|
7365
6764
|
}
|
|
7366
6765
|
}
|
|
7367
6766
|
}
|
|
@@ -7611,15 +7010,17 @@
|
|
|
7611
7010
|
"subcategory": "permissions"
|
|
7612
7011
|
},
|
|
7613
7012
|
"x-octokit": { "diff": { "api.github.com": { "type": "changed" } } }
|
|
7614
|
-
}
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
"
|
|
7619
|
-
"
|
|
7013
|
+
}
|
|
7014
|
+
},
|
|
7015
|
+
"/repos/{owner}/{repo}/pre-receive-hooks": {
|
|
7016
|
+
"get": {
|
|
7017
|
+
"summary": "List pre-receive hooks for a repository",
|
|
7018
|
+
"description": "List all pre-receive hooks that are enabled or testing for this repository as well as any disabled hooks that are allowed to be enabled at the repository level. Pre-receive hooks that are disabled at a higher level and are not configurable will not be listed.",
|
|
7019
|
+
"operationId": "enterprise-admin/list-pre-receive-hooks-for-repo",
|
|
7020
|
+
"tags": ["enterprise-admin"],
|
|
7620
7021
|
"externalDocs": {
|
|
7621
7022
|
"description": "API method documentation",
|
|
7622
|
-
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/
|
|
7023
|
+
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/enterprise-admin#list-pre-receive-hooks-for-a-repository"
|
|
7623
7024
|
},
|
|
7624
7025
|
"parameters": [
|
|
7625
7026
|
{
|
|
@@ -7633,104 +7034,39 @@
|
|
|
7633
7034
|
"in": "path",
|
|
7634
7035
|
"required": true,
|
|
7635
7036
|
"schema": { "type": "string" }
|
|
7636
|
-
}
|
|
7637
|
-
|
|
7638
|
-
|
|
7639
|
-
|
|
7640
|
-
|
|
7641
|
-
"
|
|
7642
|
-
|
|
7643
|
-
|
|
7644
|
-
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
|
|
7648
|
-
|
|
7649
|
-
|
|
7650
|
-
|
|
7651
|
-
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
"
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
-
|
|
7661
|
-
|
|
7662
|
-
|
|
7663
|
-
|
|
7664
|
-
|
|
7665
|
-
|
|
7666
|
-
|
|
7667
|
-
|
|
7668
|
-
|
|
7669
|
-
"x-github": {
|
|
7670
|
-
"enabledForGitHubApps": true,
|
|
7671
|
-
"githubCloudOnly": false,
|
|
7672
|
-
"previews": [],
|
|
7673
|
-
"category": "actions",
|
|
7674
|
-
"subcategory": "permissions"
|
|
7675
|
-
},
|
|
7676
|
-
"x-octokit": { "diff": { "api.github.com": { "type": "changed" } } }
|
|
7677
|
-
}
|
|
7678
|
-
},
|
|
7679
|
-
"/repos/{owner}/{repo}/pre-receive-hooks": {
|
|
7680
|
-
"get": {
|
|
7681
|
-
"summary": "List pre-receive hooks for a repository",
|
|
7682
|
-
"description": "List all pre-receive hooks that are enabled or testing for this repository as well as any disabled hooks that are allowed to be enabled at the repository level. Pre-receive hooks that are disabled at a higher level and are not configurable will not be listed.",
|
|
7683
|
-
"operationId": "enterprise-admin/list-pre-receive-hooks-for-repo",
|
|
7684
|
-
"tags": ["enterprise-admin"],
|
|
7685
|
-
"externalDocs": {
|
|
7686
|
-
"description": "API method documentation",
|
|
7687
|
-
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/enterprise-admin#list-pre-receive-hooks-for-a-repository"
|
|
7688
|
-
},
|
|
7689
|
-
"parameters": [
|
|
7690
|
-
{
|
|
7691
|
-
"name": "owner",
|
|
7692
|
-
"in": "path",
|
|
7693
|
-
"required": true,
|
|
7694
|
-
"schema": { "type": "string" }
|
|
7695
|
-
},
|
|
7696
|
-
{
|
|
7697
|
-
"name": "repo",
|
|
7698
|
-
"in": "path",
|
|
7699
|
-
"required": true,
|
|
7700
|
-
"schema": { "type": "string" }
|
|
7701
|
-
},
|
|
7702
|
-
{
|
|
7703
|
-
"name": "per_page",
|
|
7704
|
-
"description": "Results per page (max 100)",
|
|
7705
|
-
"in": "query",
|
|
7706
|
-
"schema": { "type": "integer", "default": 30 }
|
|
7707
|
-
},
|
|
7708
|
-
{
|
|
7709
|
-
"name": "page",
|
|
7710
|
-
"description": "Page number of the results to fetch.",
|
|
7711
|
-
"in": "query",
|
|
7712
|
-
"schema": { "type": "integer", "default": 1 }
|
|
7713
|
-
},
|
|
7714
|
-
{
|
|
7715
|
-
"name": "direction",
|
|
7716
|
-
"description": "One of `asc` (ascending) or `desc` (descending).",
|
|
7717
|
-
"in": "query",
|
|
7718
|
-
"required": false,
|
|
7719
|
-
"schema": {
|
|
7720
|
-
"type": "string",
|
|
7721
|
-
"enum": ["asc", "desc"],
|
|
7722
|
-
"default": "desc"
|
|
7723
|
-
}
|
|
7724
|
-
},
|
|
7725
|
-
{
|
|
7726
|
-
"name": "sort",
|
|
7727
|
-
"in": "query",
|
|
7728
|
-
"required": false,
|
|
7729
|
-
"schema": {
|
|
7730
|
-
"type": "string",
|
|
7731
|
-
"enum": ["created", "updated", "name"],
|
|
7732
|
-
"default": "created"
|
|
7733
|
-
}
|
|
7037
|
+
},
|
|
7038
|
+
{
|
|
7039
|
+
"name": "per_page",
|
|
7040
|
+
"description": "Results per page (max 100)",
|
|
7041
|
+
"in": "query",
|
|
7042
|
+
"schema": { "type": "integer", "default": 30 }
|
|
7043
|
+
},
|
|
7044
|
+
{
|
|
7045
|
+
"name": "page",
|
|
7046
|
+
"description": "Page number of the results to fetch.",
|
|
7047
|
+
"in": "query",
|
|
7048
|
+
"schema": { "type": "integer", "default": 1 }
|
|
7049
|
+
},
|
|
7050
|
+
{
|
|
7051
|
+
"name": "direction",
|
|
7052
|
+
"description": "One of `asc` (ascending) or `desc` (descending).",
|
|
7053
|
+
"in": "query",
|
|
7054
|
+
"required": false,
|
|
7055
|
+
"schema": {
|
|
7056
|
+
"type": "string",
|
|
7057
|
+
"enum": ["asc", "desc"],
|
|
7058
|
+
"default": "desc"
|
|
7059
|
+
}
|
|
7060
|
+
},
|
|
7061
|
+
{
|
|
7062
|
+
"name": "sort",
|
|
7063
|
+
"in": "query",
|
|
7064
|
+
"required": false,
|
|
7065
|
+
"schema": {
|
|
7066
|
+
"type": "string",
|
|
7067
|
+
"enum": ["created", "updated", "name"],
|
|
7068
|
+
"default": "created"
|
|
7069
|
+
}
|
|
7734
7070
|
}
|
|
7735
7071
|
],
|
|
7736
7072
|
"responses": {
|
|
@@ -8431,1168 +7767,104 @@
|
|
|
8431
7767
|
"default": {
|
|
8432
7768
|
"value": [
|
|
8433
7769
|
{
|
|
8434
|
-
"url": "https://api.github.com/repos/octocat/Hello-World/releases/1",
|
|
8435
|
-
"html_url": "https://github.com/octocat/Hello-World/releases/v1.0.0",
|
|
8436
|
-
"assets_url": "https://api.github.com/repos/octocat/Hello-World/releases/1/assets",
|
|
8437
|
-
"upload_url": "https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}",
|
|
8438
|
-
"tarball_url": "https://api.github.com/repos/octocat/Hello-World/tarball/v1.0.0",
|
|
8439
|
-
"zipball_url": "https://api.github.com/repos/octocat/Hello-World/zipball/v1.0.0",
|
|
8440
|
-
"id": 1,
|
|
8441
|
-
"node_id": "MDc6UmVsZWFzZTE=",
|
|
8442
|
-
"tag_name": "v1.0.0",
|
|
8443
|
-
"target_commitish": "master",
|
|
8444
|
-
"name": "v1.0.0",
|
|
8445
|
-
"body": "Description of the release",
|
|
8446
|
-
"draft": false,
|
|
8447
|
-
"prerelease": false,
|
|
8448
|
-
"created_at": "2013-02-27T19:35:32Z",
|
|
8449
|
-
"published_at": "2013-02-27T19:35:32Z",
|
|
8450
|
-
"author": {
|
|
8451
|
-
"login": "octocat",
|
|
8452
|
-
"id": 1,
|
|
8453
|
-
"node_id": "MDQ6VXNlcjE=",
|
|
8454
|
-
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
8455
|
-
"gravatar_id": "",
|
|
8456
|
-
"url": "https://api.github.com/users/octocat",
|
|
8457
|
-
"html_url": "https://github.com/octocat",
|
|
8458
|
-
"followers_url": "https://api.github.com/users/octocat/followers",
|
|
8459
|
-
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
|
8460
|
-
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
|
8461
|
-
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
|
8462
|
-
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
|
8463
|
-
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
|
8464
|
-
"repos_url": "https://api.github.com/users/octocat/repos",
|
|
8465
|
-
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
|
8466
|
-
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
|
8467
|
-
"type": "User",
|
|
8468
|
-
"site_admin": false
|
|
8469
|
-
},
|
|
8470
|
-
"assets": [
|
|
8471
|
-
{
|
|
8472
|
-
"url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
|
|
8473
|
-
"browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
|
|
8474
|
-
"id": 1,
|
|
8475
|
-
"node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
|
|
8476
|
-
"name": "example.zip",
|
|
8477
|
-
"label": "short description",
|
|
8478
|
-
"state": "uploaded",
|
|
8479
|
-
"content_type": "application/zip",
|
|
8480
|
-
"size": 1024,
|
|
8481
|
-
"download_count": 42,
|
|
8482
|
-
"created_at": "2013-02-27T19:35:32Z",
|
|
8483
|
-
"updated_at": "2013-02-27T19:35:32Z",
|
|
8484
|
-
"uploader": {
|
|
8485
|
-
"login": "octocat",
|
|
8486
|
-
"id": 1,
|
|
8487
|
-
"node_id": "MDQ6VXNlcjE=",
|
|
8488
|
-
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
8489
|
-
"gravatar_id": "",
|
|
8490
|
-
"url": "https://api.github.com/users/octocat",
|
|
8491
|
-
"html_url": "https://github.com/octocat",
|
|
8492
|
-
"followers_url": "https://api.github.com/users/octocat/followers",
|
|
8493
|
-
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
|
8494
|
-
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
|
8495
|
-
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
|
8496
|
-
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
|
8497
|
-
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
|
8498
|
-
"repos_url": "https://api.github.com/users/octocat/repos",
|
|
8499
|
-
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
|
8500
|
-
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
|
8501
|
-
"type": "User",
|
|
8502
|
-
"site_admin": false
|
|
8503
|
-
}
|
|
8504
|
-
}
|
|
8505
|
-
]
|
|
8506
|
-
}
|
|
8507
|
-
]
|
|
8508
|
-
}
|
|
8509
|
-
}
|
|
8510
|
-
}
|
|
8511
|
-
},
|
|
8512
|
-
"headers": {
|
|
8513
|
-
"Link": {
|
|
8514
|
-
"example": "<https://api.github.com/resource?page=2>; rel=\"next\", <https://api.github.com/resource?page=5>; rel=\"last\"",
|
|
8515
|
-
"schema": { "type": "string" }
|
|
8516
|
-
}
|
|
8517
|
-
}
|
|
8518
|
-
},
|
|
8519
|
-
"404": {
|
|
8520
|
-
"description": "Resource not found",
|
|
8521
|
-
"content": {
|
|
8522
|
-
"application/json": {
|
|
8523
|
-
"schema": {
|
|
8524
|
-
"title": "Basic Error",
|
|
8525
|
-
"description": "Basic Error",
|
|
8526
|
-
"type": "object",
|
|
8527
|
-
"properties": {
|
|
8528
|
-
"message": { "type": "string" },
|
|
8529
|
-
"documentation_url": { "type": "string" },
|
|
8530
|
-
"url": { "type": "string" },
|
|
8531
|
-
"status": { "type": "string" }
|
|
8532
|
-
}
|
|
8533
|
-
}
|
|
8534
|
-
}
|
|
8535
|
-
}
|
|
8536
|
-
}
|
|
8537
|
-
},
|
|
8538
|
-
"x-github": {
|
|
8539
|
-
"githubCloudOnly": false,
|
|
8540
|
-
"enabledForGitHubApps": true,
|
|
8541
|
-
"previews": [],
|
|
8542
|
-
"category": "repos",
|
|
8543
|
-
"subcategory": "releases"
|
|
8544
|
-
},
|
|
8545
|
-
"x-octokit": { "diff": { "api.github.com": { "type": "changed" } } }
|
|
8546
|
-
},
|
|
8547
|
-
"post": {
|
|
8548
|
-
"summary": "Create a release",
|
|
8549
|
-
"description": "Users with push access to the repository can create a release.\n\nThis endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-server@3.2/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-server@3.2/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)\" for details.",
|
|
8550
|
-
"tags": ["repos"],
|
|
8551
|
-
"operationId": "repos/create-release",
|
|
8552
|
-
"externalDocs": {
|
|
8553
|
-
"description": "API method documentation",
|
|
8554
|
-
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/repos#create-a-release"
|
|
8555
|
-
},
|
|
8556
|
-
"parameters": [
|
|
8557
|
-
{
|
|
8558
|
-
"name": "owner",
|
|
8559
|
-
"in": "path",
|
|
8560
|
-
"required": true,
|
|
8561
|
-
"schema": { "type": "string" }
|
|
8562
|
-
},
|
|
8563
|
-
{
|
|
8564
|
-
"name": "repo",
|
|
8565
|
-
"in": "path",
|
|
8566
|
-
"required": true,
|
|
8567
|
-
"schema": { "type": "string" }
|
|
8568
|
-
}
|
|
8569
|
-
],
|
|
8570
|
-
"requestBody": {
|
|
8571
|
-
"required": true,
|
|
8572
|
-
"content": {
|
|
8573
|
-
"application/json": {
|
|
8574
|
-
"schema": {
|
|
8575
|
-
"type": "object",
|
|
8576
|
-
"properties": {
|
|
8577
|
-
"tag_name": {
|
|
8578
|
-
"type": "string",
|
|
8579
|
-
"description": "The name of the tag."
|
|
8580
|
-
},
|
|
8581
|
-
"target_commitish": {
|
|
8582
|
-
"type": "string",
|
|
8583
|
-
"description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`)."
|
|
8584
|
-
},
|
|
8585
|
-
"name": {
|
|
8586
|
-
"type": "string",
|
|
8587
|
-
"description": "The name of the release."
|
|
8588
|
-
},
|
|
8589
|
-
"body": {
|
|
8590
|
-
"type": "string",
|
|
8591
|
-
"description": "Text describing the contents of the tag."
|
|
8592
|
-
},
|
|
8593
|
-
"draft": {
|
|
8594
|
-
"type": "boolean",
|
|
8595
|
-
"description": "`true` to create a draft (unpublished) release, `false` to create a published one.",
|
|
8596
|
-
"default": false
|
|
8597
|
-
},
|
|
8598
|
-
"prerelease": {
|
|
8599
|
-
"type": "boolean",
|
|
8600
|
-
"description": "`true` to identify the release as a prerelease. `false` to identify the release as a full release.",
|
|
8601
|
-
"default": false
|
|
8602
|
-
}
|
|
8603
|
-
},
|
|
8604
|
-
"required": ["tag_name"]
|
|
8605
|
-
},
|
|
8606
|
-
"example": {
|
|
8607
|
-
"tag_name": "v1.0.0",
|
|
8608
|
-
"target_commitish": "master",
|
|
8609
|
-
"name": "v1.0.0",
|
|
8610
|
-
"body": "Description of the release",
|
|
8611
|
-
"draft": false,
|
|
8612
|
-
"prerelease": false
|
|
8613
|
-
}
|
|
8614
|
-
}
|
|
8615
|
-
}
|
|
8616
|
-
},
|
|
8617
|
-
"responses": {
|
|
8618
|
-
"201": {
|
|
8619
|
-
"description": "Response",
|
|
8620
|
-
"content": {
|
|
8621
|
-
"application/json": {
|
|
8622
|
-
"schema": {
|
|
8623
|
-
"title": "Release",
|
|
8624
|
-
"description": "A release.",
|
|
8625
|
-
"type": "object",
|
|
8626
|
-
"properties": {
|
|
8627
|
-
"url": { "type": "string", "format": "uri" },
|
|
8628
|
-
"html_url": { "type": "string", "format": "uri" },
|
|
8629
|
-
"assets_url": { "type": "string", "format": "uri" },
|
|
8630
|
-
"upload_url": { "type": "string" },
|
|
8631
|
-
"tarball_url": {
|
|
8632
|
-
"type": "string",
|
|
8633
|
-
"format": "uri",
|
|
8634
|
-
"nullable": true
|
|
8635
|
-
},
|
|
8636
|
-
"zipball_url": {
|
|
8637
|
-
"type": "string",
|
|
8638
|
-
"format": "uri",
|
|
8639
|
-
"nullable": true
|
|
8640
|
-
},
|
|
8641
|
-
"id": { "type": "integer" },
|
|
8642
|
-
"node_id": { "type": "string" },
|
|
8643
|
-
"tag_name": {
|
|
8644
|
-
"description": "The name of the tag.",
|
|
8645
|
-
"example": "v1.0.0",
|
|
8646
|
-
"type": "string"
|
|
8647
|
-
},
|
|
8648
|
-
"target_commitish": {
|
|
8649
|
-
"description": "Specifies the commitish value that determines where the Git tag is created from.",
|
|
8650
|
-
"example": "master",
|
|
8651
|
-
"type": "string"
|
|
8652
|
-
},
|
|
8653
|
-
"name": { "type": "string", "nullable": true },
|
|
8654
|
-
"body": { "type": "string", "nullable": true },
|
|
8655
|
-
"draft": {
|
|
8656
|
-
"description": "true to create a draft (unpublished) release, false to create a published one.",
|
|
8657
|
-
"example": false,
|
|
8658
|
-
"type": "boolean"
|
|
8659
|
-
},
|
|
8660
|
-
"prerelease": {
|
|
8661
|
-
"description": "Whether to identify the release as a prerelease or a full release.",
|
|
8662
|
-
"example": false,
|
|
8663
|
-
"type": "boolean"
|
|
8664
|
-
},
|
|
8665
|
-
"created_at": { "type": "string", "format": "date-time" },
|
|
8666
|
-
"published_at": {
|
|
8667
|
-
"type": "string",
|
|
8668
|
-
"format": "date-time",
|
|
8669
|
-
"nullable": true
|
|
8670
|
-
},
|
|
8671
|
-
"author": {
|
|
8672
|
-
"title": "Simple User",
|
|
8673
|
-
"description": "Simple User",
|
|
8674
|
-
"type": "object",
|
|
8675
|
-
"properties": {
|
|
8676
|
-
"name": { "nullable": true, "type": "string" },
|
|
8677
|
-
"email": { "nullable": true, "type": "string" },
|
|
8678
|
-
"login": { "type": "string", "example": "octocat" },
|
|
8679
|
-
"id": { "type": "integer", "example": 1 },
|
|
8680
|
-
"node_id": {
|
|
8681
|
-
"type": "string",
|
|
8682
|
-
"example": "MDQ6VXNlcjE="
|
|
8683
|
-
},
|
|
8684
|
-
"avatar_url": {
|
|
8685
|
-
"type": "string",
|
|
8686
|
-
"format": "uri",
|
|
8687
|
-
"example": "https://github.com/images/error/octocat_happy.gif"
|
|
8688
|
-
},
|
|
8689
|
-
"gravatar_id": {
|
|
8690
|
-
"type": "string",
|
|
8691
|
-
"example": "41d064eb2195891e12d0413f63227ea7",
|
|
8692
|
-
"nullable": true
|
|
8693
|
-
},
|
|
8694
|
-
"url": {
|
|
8695
|
-
"type": "string",
|
|
8696
|
-
"format": "uri",
|
|
8697
|
-
"example": "https://api.github.com/users/octocat"
|
|
8698
|
-
},
|
|
8699
|
-
"html_url": {
|
|
8700
|
-
"type": "string",
|
|
8701
|
-
"format": "uri",
|
|
8702
|
-
"example": "https://github.com/octocat"
|
|
8703
|
-
},
|
|
8704
|
-
"followers_url": {
|
|
8705
|
-
"type": "string",
|
|
8706
|
-
"format": "uri",
|
|
8707
|
-
"example": "https://api.github.com/users/octocat/followers"
|
|
8708
|
-
},
|
|
8709
|
-
"following_url": {
|
|
8710
|
-
"type": "string",
|
|
8711
|
-
"example": "https://api.github.com/users/octocat/following{/other_user}"
|
|
8712
|
-
},
|
|
8713
|
-
"gists_url": {
|
|
8714
|
-
"type": "string",
|
|
8715
|
-
"example": "https://api.github.com/users/octocat/gists{/gist_id}"
|
|
8716
|
-
},
|
|
8717
|
-
"starred_url": {
|
|
8718
|
-
"type": "string",
|
|
8719
|
-
"example": "https://api.github.com/users/octocat/starred{/owner}{/repo}"
|
|
8720
|
-
},
|
|
8721
|
-
"subscriptions_url": {
|
|
8722
|
-
"type": "string",
|
|
8723
|
-
"format": "uri",
|
|
8724
|
-
"example": "https://api.github.com/users/octocat/subscriptions"
|
|
8725
|
-
},
|
|
8726
|
-
"organizations_url": {
|
|
8727
|
-
"type": "string",
|
|
8728
|
-
"format": "uri",
|
|
8729
|
-
"example": "https://api.github.com/users/octocat/orgs"
|
|
8730
|
-
},
|
|
8731
|
-
"repos_url": {
|
|
8732
|
-
"type": "string",
|
|
8733
|
-
"format": "uri",
|
|
8734
|
-
"example": "https://api.github.com/users/octocat/repos"
|
|
8735
|
-
},
|
|
8736
|
-
"events_url": {
|
|
8737
|
-
"type": "string",
|
|
8738
|
-
"example": "https://api.github.com/users/octocat/events{/privacy}"
|
|
8739
|
-
},
|
|
8740
|
-
"received_events_url": {
|
|
8741
|
-
"type": "string",
|
|
8742
|
-
"format": "uri",
|
|
8743
|
-
"example": "https://api.github.com/users/octocat/received_events"
|
|
8744
|
-
},
|
|
8745
|
-
"type": { "type": "string", "example": "User" },
|
|
8746
|
-
"site_admin": { "type": "boolean" },
|
|
8747
|
-
"starred_at": {
|
|
8748
|
-
"type": "string",
|
|
8749
|
-
"example": "\"2020-07-09T00:17:55Z\""
|
|
8750
|
-
}
|
|
8751
|
-
},
|
|
8752
|
-
"required": [
|
|
8753
|
-
"avatar_url",
|
|
8754
|
-
"events_url",
|
|
8755
|
-
"followers_url",
|
|
8756
|
-
"following_url",
|
|
8757
|
-
"gists_url",
|
|
8758
|
-
"gravatar_id",
|
|
8759
|
-
"html_url",
|
|
8760
|
-
"id",
|
|
8761
|
-
"node_id",
|
|
8762
|
-
"login",
|
|
8763
|
-
"organizations_url",
|
|
8764
|
-
"received_events_url",
|
|
8765
|
-
"repos_url",
|
|
8766
|
-
"site_admin",
|
|
8767
|
-
"starred_url",
|
|
8768
|
-
"subscriptions_url",
|
|
8769
|
-
"type",
|
|
8770
|
-
"url"
|
|
8771
|
-
]
|
|
8772
|
-
},
|
|
8773
|
-
"assets": {
|
|
8774
|
-
"type": "array",
|
|
8775
|
-
"items": {
|
|
8776
|
-
"title": "Release Asset",
|
|
8777
|
-
"description": "Data related to a release.",
|
|
8778
|
-
"type": "object",
|
|
8779
|
-
"properties": {
|
|
8780
|
-
"url": { "type": "string", "format": "uri" },
|
|
8781
|
-
"browser_download_url": {
|
|
8782
|
-
"type": "string",
|
|
8783
|
-
"format": "uri"
|
|
8784
|
-
},
|
|
8785
|
-
"id": { "type": "integer" },
|
|
8786
|
-
"node_id": { "type": "string" },
|
|
8787
|
-
"name": {
|
|
8788
|
-
"description": "The file name of the asset.",
|
|
8789
|
-
"type": "string",
|
|
8790
|
-
"example": "Team Environment"
|
|
8791
|
-
},
|
|
8792
|
-
"label": { "type": "string", "nullable": true },
|
|
8793
|
-
"state": {
|
|
8794
|
-
"description": "State of the release asset.",
|
|
8795
|
-
"type": "string",
|
|
8796
|
-
"enum": ["uploaded", "open"]
|
|
8797
|
-
},
|
|
8798
|
-
"content_type": { "type": "string" },
|
|
8799
|
-
"size": { "type": "integer" },
|
|
8800
|
-
"download_count": { "type": "integer" },
|
|
8801
|
-
"created_at": {
|
|
8802
|
-
"type": "string",
|
|
8803
|
-
"format": "date-time"
|
|
8804
|
-
},
|
|
8805
|
-
"updated_at": {
|
|
8806
|
-
"type": "string",
|
|
8807
|
-
"format": "date-time"
|
|
8808
|
-
},
|
|
8809
|
-
"uploader": {
|
|
8810
|
-
"title": "Simple User",
|
|
8811
|
-
"description": "Simple User",
|
|
8812
|
-
"type": "object",
|
|
8813
|
-
"properties": {
|
|
8814
|
-
"name": { "nullable": true, "type": "string" },
|
|
8815
|
-
"email": { "nullable": true, "type": "string" },
|
|
8816
|
-
"login": {
|
|
8817
|
-
"type": "string",
|
|
8818
|
-
"example": "octocat"
|
|
8819
|
-
},
|
|
8820
|
-
"id": { "type": "integer", "example": 1 },
|
|
8821
|
-
"node_id": {
|
|
8822
|
-
"type": "string",
|
|
8823
|
-
"example": "MDQ6VXNlcjE="
|
|
8824
|
-
},
|
|
8825
|
-
"avatar_url": {
|
|
8826
|
-
"type": "string",
|
|
8827
|
-
"format": "uri",
|
|
8828
|
-
"example": "https://github.com/images/error/octocat_happy.gif"
|
|
8829
|
-
},
|
|
8830
|
-
"gravatar_id": {
|
|
8831
|
-
"type": "string",
|
|
8832
|
-
"example": "41d064eb2195891e12d0413f63227ea7",
|
|
8833
|
-
"nullable": true
|
|
8834
|
-
},
|
|
8835
|
-
"url": {
|
|
8836
|
-
"type": "string",
|
|
8837
|
-
"format": "uri",
|
|
8838
|
-
"example": "https://api.github.com/users/octocat"
|
|
8839
|
-
},
|
|
8840
|
-
"html_url": {
|
|
8841
|
-
"type": "string",
|
|
8842
|
-
"format": "uri",
|
|
8843
|
-
"example": "https://github.com/octocat"
|
|
8844
|
-
},
|
|
8845
|
-
"followers_url": {
|
|
8846
|
-
"type": "string",
|
|
8847
|
-
"format": "uri",
|
|
8848
|
-
"example": "https://api.github.com/users/octocat/followers"
|
|
8849
|
-
},
|
|
8850
|
-
"following_url": {
|
|
8851
|
-
"type": "string",
|
|
8852
|
-
"example": "https://api.github.com/users/octocat/following{/other_user}"
|
|
8853
|
-
},
|
|
8854
|
-
"gists_url": {
|
|
8855
|
-
"type": "string",
|
|
8856
|
-
"example": "https://api.github.com/users/octocat/gists{/gist_id}"
|
|
8857
|
-
},
|
|
8858
|
-
"starred_url": {
|
|
8859
|
-
"type": "string",
|
|
8860
|
-
"example": "https://api.github.com/users/octocat/starred{/owner}{/repo}"
|
|
8861
|
-
},
|
|
8862
|
-
"subscriptions_url": {
|
|
8863
|
-
"type": "string",
|
|
8864
|
-
"format": "uri",
|
|
8865
|
-
"example": "https://api.github.com/users/octocat/subscriptions"
|
|
8866
|
-
},
|
|
8867
|
-
"organizations_url": {
|
|
8868
|
-
"type": "string",
|
|
8869
|
-
"format": "uri",
|
|
8870
|
-
"example": "https://api.github.com/users/octocat/orgs"
|
|
8871
|
-
},
|
|
8872
|
-
"repos_url": {
|
|
8873
|
-
"type": "string",
|
|
8874
|
-
"format": "uri",
|
|
8875
|
-
"example": "https://api.github.com/users/octocat/repos"
|
|
8876
|
-
},
|
|
8877
|
-
"events_url": {
|
|
8878
|
-
"type": "string",
|
|
8879
|
-
"example": "https://api.github.com/users/octocat/events{/privacy}"
|
|
8880
|
-
},
|
|
8881
|
-
"received_events_url": {
|
|
8882
|
-
"type": "string",
|
|
8883
|
-
"format": "uri",
|
|
8884
|
-
"example": "https://api.github.com/users/octocat/received_events"
|
|
8885
|
-
},
|
|
8886
|
-
"type": { "type": "string", "example": "User" },
|
|
8887
|
-
"site_admin": { "type": "boolean" },
|
|
8888
|
-
"starred_at": {
|
|
8889
|
-
"type": "string",
|
|
8890
|
-
"example": "\"2020-07-09T00:17:55Z\""
|
|
8891
|
-
}
|
|
8892
|
-
},
|
|
8893
|
-
"required": [
|
|
8894
|
-
"avatar_url",
|
|
8895
|
-
"events_url",
|
|
8896
|
-
"followers_url",
|
|
8897
|
-
"following_url",
|
|
8898
|
-
"gists_url",
|
|
8899
|
-
"gravatar_id",
|
|
8900
|
-
"html_url",
|
|
8901
|
-
"id",
|
|
8902
|
-
"node_id",
|
|
8903
|
-
"login",
|
|
8904
|
-
"organizations_url",
|
|
8905
|
-
"received_events_url",
|
|
8906
|
-
"repos_url",
|
|
8907
|
-
"site_admin",
|
|
8908
|
-
"starred_url",
|
|
8909
|
-
"subscriptions_url",
|
|
8910
|
-
"type",
|
|
8911
|
-
"url"
|
|
8912
|
-
],
|
|
8913
|
-
"nullable": true
|
|
8914
|
-
}
|
|
8915
|
-
},
|
|
8916
|
-
"required": [
|
|
8917
|
-
"id",
|
|
8918
|
-
"name",
|
|
8919
|
-
"content_type",
|
|
8920
|
-
"size",
|
|
8921
|
-
"state",
|
|
8922
|
-
"url",
|
|
8923
|
-
"node_id",
|
|
8924
|
-
"download_count",
|
|
8925
|
-
"label",
|
|
8926
|
-
"uploader",
|
|
8927
|
-
"browser_download_url",
|
|
8928
|
-
"created_at",
|
|
8929
|
-
"updated_at"
|
|
8930
|
-
]
|
|
8931
|
-
}
|
|
8932
|
-
},
|
|
8933
|
-
"body_html": { "type": "string" },
|
|
8934
|
-
"body_text": { "type": "string" },
|
|
8935
|
-
"mentions_count": { "type": "integer" },
|
|
8936
|
-
"reactions": {
|
|
8937
|
-
"title": "Reaction Rollup",
|
|
8938
|
-
"type": "object",
|
|
8939
|
-
"properties": {
|
|
8940
|
-
"url": { "type": "string", "format": "uri" },
|
|
8941
|
-
"total_count": { "type": "integer" },
|
|
8942
|
-
"+1": { "type": "integer" },
|
|
8943
|
-
"-1": { "type": "integer" },
|
|
8944
|
-
"laugh": { "type": "integer" },
|
|
8945
|
-
"confused": { "type": "integer" },
|
|
8946
|
-
"heart": { "type": "integer" },
|
|
8947
|
-
"hooray": { "type": "integer" },
|
|
8948
|
-
"eyes": { "type": "integer" },
|
|
8949
|
-
"rocket": { "type": "integer" }
|
|
8950
|
-
},
|
|
8951
|
-
"required": [
|
|
8952
|
-
"url",
|
|
8953
|
-
"total_count",
|
|
8954
|
-
"+1",
|
|
8955
|
-
"-1",
|
|
8956
|
-
"laugh",
|
|
8957
|
-
"confused",
|
|
8958
|
-
"heart",
|
|
8959
|
-
"hooray",
|
|
8960
|
-
"eyes",
|
|
8961
|
-
"rocket"
|
|
8962
|
-
]
|
|
8963
|
-
}
|
|
8964
|
-
},
|
|
8965
|
-
"required": [
|
|
8966
|
-
"assets_url",
|
|
8967
|
-
"upload_url",
|
|
8968
|
-
"tarball_url",
|
|
8969
|
-
"zipball_url",
|
|
8970
|
-
"created_at",
|
|
8971
|
-
"published_at",
|
|
8972
|
-
"draft",
|
|
8973
|
-
"id",
|
|
8974
|
-
"node_id",
|
|
8975
|
-
"author",
|
|
8976
|
-
"html_url",
|
|
8977
|
-
"name",
|
|
8978
|
-
"prerelease",
|
|
8979
|
-
"tag_name",
|
|
8980
|
-
"target_commitish",
|
|
8981
|
-
"assets",
|
|
8982
|
-
"url"
|
|
8983
|
-
]
|
|
8984
|
-
},
|
|
8985
|
-
"examples": {
|
|
8986
|
-
"default": {
|
|
8987
|
-
"value": {
|
|
8988
|
-
"url": "https://api.github.com/repos/octocat/Hello-World/releases/1",
|
|
8989
|
-
"html_url": "https://github.com/octocat/Hello-World/releases/v1.0.0",
|
|
8990
|
-
"assets_url": "https://api.github.com/repos/octocat/Hello-World/releases/1/assets",
|
|
8991
|
-
"upload_url": "https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}",
|
|
8992
|
-
"tarball_url": "https://api.github.com/repos/octocat/Hello-World/tarball/v1.0.0",
|
|
8993
|
-
"zipball_url": "https://api.github.com/repos/octocat/Hello-World/zipball/v1.0.0",
|
|
8994
|
-
"discussion_url": "https://github.com/octocat/Hello-World/discussions/90",
|
|
8995
|
-
"id": 1,
|
|
8996
|
-
"node_id": "MDc6UmVsZWFzZTE=",
|
|
8997
|
-
"tag_name": "v1.0.0",
|
|
8998
|
-
"target_commitish": "master",
|
|
8999
|
-
"name": "v1.0.0",
|
|
9000
|
-
"body": "Description of the release",
|
|
9001
|
-
"draft": false,
|
|
9002
|
-
"prerelease": false,
|
|
9003
|
-
"created_at": "2013-02-27T19:35:32Z",
|
|
9004
|
-
"published_at": "2013-02-27T19:35:32Z",
|
|
9005
|
-
"author": {
|
|
9006
|
-
"login": "octocat",
|
|
9007
|
-
"id": 1,
|
|
9008
|
-
"node_id": "MDQ6VXNlcjE=",
|
|
9009
|
-
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
9010
|
-
"gravatar_id": "",
|
|
9011
|
-
"url": "https://api.github.com/users/octocat",
|
|
9012
|
-
"html_url": "https://github.com/octocat",
|
|
9013
|
-
"followers_url": "https://api.github.com/users/octocat/followers",
|
|
9014
|
-
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
|
9015
|
-
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
|
9016
|
-
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
|
9017
|
-
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
|
9018
|
-
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
|
9019
|
-
"repos_url": "https://api.github.com/users/octocat/repos",
|
|
9020
|
-
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
|
9021
|
-
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
|
9022
|
-
"type": "User",
|
|
9023
|
-
"site_admin": false
|
|
9024
|
-
},
|
|
9025
|
-
"assets": [
|
|
9026
|
-
{
|
|
9027
|
-
"url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
|
|
9028
|
-
"browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
|
|
9029
|
-
"id": 1,
|
|
9030
|
-
"node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
|
|
9031
|
-
"name": "example.zip",
|
|
9032
|
-
"label": "short description",
|
|
9033
|
-
"state": "uploaded",
|
|
9034
|
-
"content_type": "application/zip",
|
|
9035
|
-
"size": 1024,
|
|
9036
|
-
"download_count": 42,
|
|
9037
|
-
"created_at": "2013-02-27T19:35:32Z",
|
|
9038
|
-
"updated_at": "2013-02-27T19:35:32Z",
|
|
9039
|
-
"uploader": {
|
|
9040
|
-
"login": "octocat",
|
|
9041
|
-
"id": 1,
|
|
9042
|
-
"node_id": "MDQ6VXNlcjE=",
|
|
9043
|
-
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
9044
|
-
"gravatar_id": "",
|
|
9045
|
-
"url": "https://api.github.com/users/octocat",
|
|
9046
|
-
"html_url": "https://github.com/octocat",
|
|
9047
|
-
"followers_url": "https://api.github.com/users/octocat/followers",
|
|
9048
|
-
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
|
9049
|
-
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
|
9050
|
-
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
|
9051
|
-
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
|
9052
|
-
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
|
9053
|
-
"repos_url": "https://api.github.com/users/octocat/repos",
|
|
9054
|
-
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
|
9055
|
-
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
|
9056
|
-
"type": "User",
|
|
9057
|
-
"site_admin": false
|
|
9058
|
-
}
|
|
9059
|
-
}
|
|
9060
|
-
]
|
|
9061
|
-
}
|
|
9062
|
-
}
|
|
9063
|
-
}
|
|
9064
|
-
}
|
|
9065
|
-
},
|
|
9066
|
-
"headers": {
|
|
9067
|
-
"Location": {
|
|
9068
|
-
"example": "https://api.github.com/repos/octocat/Hello-World/releases/1",
|
|
9069
|
-
"schema": { "type": "string" }
|
|
9070
|
-
}
|
|
9071
|
-
}
|
|
9072
|
-
},
|
|
9073
|
-
"422": {
|
|
9074
|
-
"description": "Validation failed",
|
|
9075
|
-
"content": {
|
|
9076
|
-
"application/json": {
|
|
9077
|
-
"schema": {
|
|
9078
|
-
"title": "Validation Error",
|
|
9079
|
-
"description": "Validation Error",
|
|
9080
|
-
"type": "object",
|
|
9081
|
-
"required": ["message", "documentation_url"],
|
|
9082
|
-
"properties": {
|
|
9083
|
-
"message": { "type": "string" },
|
|
9084
|
-
"documentation_url": { "type": "string" },
|
|
9085
|
-
"errors": {
|
|
9086
|
-
"type": "array",
|
|
9087
|
-
"items": {
|
|
9088
|
-
"type": "object",
|
|
9089
|
-
"required": ["code"],
|
|
9090
|
-
"properties": {
|
|
9091
|
-
"resource": { "type": "string" },
|
|
9092
|
-
"field": { "type": "string" },
|
|
9093
|
-
"message": { "type": "string" },
|
|
9094
|
-
"code": { "type": "string" },
|
|
9095
|
-
"index": { "type": "integer" },
|
|
9096
|
-
"value": {
|
|
9097
|
-
"oneOf": [
|
|
9098
|
-
{ "type": "string", "nullable": true },
|
|
9099
|
-
{ "type": "integer", "nullable": true },
|
|
9100
|
-
{
|
|
9101
|
-
"type": "array",
|
|
9102
|
-
"nullable": true,
|
|
9103
|
-
"items": { "type": "string" }
|
|
9104
|
-
}
|
|
9105
|
-
]
|
|
9106
|
-
}
|
|
9107
|
-
}
|
|
9108
|
-
}
|
|
9109
|
-
}
|
|
9110
|
-
}
|
|
9111
|
-
}
|
|
9112
|
-
}
|
|
9113
|
-
}
|
|
9114
|
-
}
|
|
9115
|
-
},
|
|
9116
|
-
"x-github": {
|
|
9117
|
-
"triggersNotification": true,
|
|
9118
|
-
"githubCloudOnly": false,
|
|
9119
|
-
"enabledForGitHubApps": true,
|
|
9120
|
-
"previews": [],
|
|
9121
|
-
"category": "repos",
|
|
9122
|
-
"subcategory": "releases"
|
|
9123
|
-
},
|
|
9124
|
-
"x-octokit": { "diff": { "api.github.com": { "type": "changed" } } }
|
|
9125
|
-
}
|
|
9126
|
-
},
|
|
9127
|
-
"/repos/{owner}/{repo}/releases/latest": {
|
|
9128
|
-
"get": {
|
|
9129
|
-
"summary": "Get the latest release",
|
|
9130
|
-
"description": "View the latest published full release for the repository.\n\nThe latest release is the most recent non-prerelease, non-draft release, sorted by the `created_at` attribute. The `created_at` attribute is the date of the commit used for the release, and not the date when the release was drafted or published.",
|
|
9131
|
-
"tags": ["repos"],
|
|
9132
|
-
"operationId": "repos/get-latest-release",
|
|
9133
|
-
"externalDocs": {
|
|
9134
|
-
"description": "API method documentation",
|
|
9135
|
-
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/repos#get-the-latest-release"
|
|
9136
|
-
},
|
|
9137
|
-
"parameters": [
|
|
9138
|
-
{
|
|
9139
|
-
"name": "owner",
|
|
9140
|
-
"in": "path",
|
|
9141
|
-
"required": true,
|
|
9142
|
-
"schema": { "type": "string" }
|
|
9143
|
-
},
|
|
9144
|
-
{
|
|
9145
|
-
"name": "repo",
|
|
9146
|
-
"in": "path",
|
|
9147
|
-
"required": true,
|
|
9148
|
-
"schema": { "type": "string" }
|
|
9149
|
-
}
|
|
9150
|
-
],
|
|
9151
|
-
"responses": {
|
|
9152
|
-
"200": {
|
|
9153
|
-
"description": "Response",
|
|
9154
|
-
"content": {
|
|
9155
|
-
"application/json": {
|
|
9156
|
-
"schema": {
|
|
9157
|
-
"title": "Release",
|
|
9158
|
-
"description": "A release.",
|
|
9159
|
-
"type": "object",
|
|
9160
|
-
"properties": {
|
|
9161
|
-
"url": { "type": "string", "format": "uri" },
|
|
9162
|
-
"html_url": { "type": "string", "format": "uri" },
|
|
9163
|
-
"assets_url": { "type": "string", "format": "uri" },
|
|
9164
|
-
"upload_url": { "type": "string" },
|
|
9165
|
-
"tarball_url": {
|
|
9166
|
-
"type": "string",
|
|
9167
|
-
"format": "uri",
|
|
9168
|
-
"nullable": true
|
|
9169
|
-
},
|
|
9170
|
-
"zipball_url": {
|
|
9171
|
-
"type": "string",
|
|
9172
|
-
"format": "uri",
|
|
9173
|
-
"nullable": true
|
|
9174
|
-
},
|
|
9175
|
-
"id": { "type": "integer" },
|
|
9176
|
-
"node_id": { "type": "string" },
|
|
9177
|
-
"tag_name": {
|
|
9178
|
-
"description": "The name of the tag.",
|
|
9179
|
-
"example": "v1.0.0",
|
|
9180
|
-
"type": "string"
|
|
9181
|
-
},
|
|
9182
|
-
"target_commitish": {
|
|
9183
|
-
"description": "Specifies the commitish value that determines where the Git tag is created from.",
|
|
9184
|
-
"example": "master",
|
|
9185
|
-
"type": "string"
|
|
9186
|
-
},
|
|
9187
|
-
"name": { "type": "string", "nullable": true },
|
|
9188
|
-
"body": { "type": "string", "nullable": true },
|
|
9189
|
-
"draft": {
|
|
9190
|
-
"description": "true to create a draft (unpublished) release, false to create a published one.",
|
|
9191
|
-
"example": false,
|
|
9192
|
-
"type": "boolean"
|
|
9193
|
-
},
|
|
9194
|
-
"prerelease": {
|
|
9195
|
-
"description": "Whether to identify the release as a prerelease or a full release.",
|
|
9196
|
-
"example": false,
|
|
9197
|
-
"type": "boolean"
|
|
9198
|
-
},
|
|
9199
|
-
"created_at": { "type": "string", "format": "date-time" },
|
|
9200
|
-
"published_at": {
|
|
9201
|
-
"type": "string",
|
|
9202
|
-
"format": "date-time",
|
|
9203
|
-
"nullable": true
|
|
9204
|
-
},
|
|
9205
|
-
"author": {
|
|
9206
|
-
"title": "Simple User",
|
|
9207
|
-
"description": "Simple User",
|
|
9208
|
-
"type": "object",
|
|
9209
|
-
"properties": {
|
|
9210
|
-
"name": { "nullable": true, "type": "string" },
|
|
9211
|
-
"email": { "nullable": true, "type": "string" },
|
|
9212
|
-
"login": { "type": "string", "example": "octocat" },
|
|
9213
|
-
"id": { "type": "integer", "example": 1 },
|
|
9214
|
-
"node_id": {
|
|
9215
|
-
"type": "string",
|
|
9216
|
-
"example": "MDQ6VXNlcjE="
|
|
9217
|
-
},
|
|
9218
|
-
"avatar_url": {
|
|
9219
|
-
"type": "string",
|
|
9220
|
-
"format": "uri",
|
|
9221
|
-
"example": "https://github.com/images/error/octocat_happy.gif"
|
|
9222
|
-
},
|
|
9223
|
-
"gravatar_id": {
|
|
9224
|
-
"type": "string",
|
|
9225
|
-
"example": "41d064eb2195891e12d0413f63227ea7",
|
|
9226
|
-
"nullable": true
|
|
9227
|
-
},
|
|
9228
|
-
"url": {
|
|
9229
|
-
"type": "string",
|
|
9230
|
-
"format": "uri",
|
|
9231
|
-
"example": "https://api.github.com/users/octocat"
|
|
9232
|
-
},
|
|
9233
|
-
"html_url": {
|
|
9234
|
-
"type": "string",
|
|
9235
|
-
"format": "uri",
|
|
9236
|
-
"example": "https://github.com/octocat"
|
|
9237
|
-
},
|
|
9238
|
-
"followers_url": {
|
|
9239
|
-
"type": "string",
|
|
9240
|
-
"format": "uri",
|
|
9241
|
-
"example": "https://api.github.com/users/octocat/followers"
|
|
9242
|
-
},
|
|
9243
|
-
"following_url": {
|
|
9244
|
-
"type": "string",
|
|
9245
|
-
"example": "https://api.github.com/users/octocat/following{/other_user}"
|
|
9246
|
-
},
|
|
9247
|
-
"gists_url": {
|
|
9248
|
-
"type": "string",
|
|
9249
|
-
"example": "https://api.github.com/users/octocat/gists{/gist_id}"
|
|
9250
|
-
},
|
|
9251
|
-
"starred_url": {
|
|
9252
|
-
"type": "string",
|
|
9253
|
-
"example": "https://api.github.com/users/octocat/starred{/owner}{/repo}"
|
|
9254
|
-
},
|
|
9255
|
-
"subscriptions_url": {
|
|
9256
|
-
"type": "string",
|
|
9257
|
-
"format": "uri",
|
|
9258
|
-
"example": "https://api.github.com/users/octocat/subscriptions"
|
|
9259
|
-
},
|
|
9260
|
-
"organizations_url": {
|
|
9261
|
-
"type": "string",
|
|
9262
|
-
"format": "uri",
|
|
9263
|
-
"example": "https://api.github.com/users/octocat/orgs"
|
|
9264
|
-
},
|
|
9265
|
-
"repos_url": {
|
|
9266
|
-
"type": "string",
|
|
9267
|
-
"format": "uri",
|
|
9268
|
-
"example": "https://api.github.com/users/octocat/repos"
|
|
9269
|
-
},
|
|
9270
|
-
"events_url": {
|
|
9271
|
-
"type": "string",
|
|
9272
|
-
"example": "https://api.github.com/users/octocat/events{/privacy}"
|
|
9273
|
-
},
|
|
9274
|
-
"received_events_url": {
|
|
9275
|
-
"type": "string",
|
|
9276
|
-
"format": "uri",
|
|
9277
|
-
"example": "https://api.github.com/users/octocat/received_events"
|
|
9278
|
-
},
|
|
9279
|
-
"type": { "type": "string", "example": "User" },
|
|
9280
|
-
"site_admin": { "type": "boolean" },
|
|
9281
|
-
"starred_at": {
|
|
9282
|
-
"type": "string",
|
|
9283
|
-
"example": "\"2020-07-09T00:17:55Z\""
|
|
9284
|
-
}
|
|
9285
|
-
},
|
|
9286
|
-
"required": [
|
|
9287
|
-
"avatar_url",
|
|
9288
|
-
"events_url",
|
|
9289
|
-
"followers_url",
|
|
9290
|
-
"following_url",
|
|
9291
|
-
"gists_url",
|
|
9292
|
-
"gravatar_id",
|
|
9293
|
-
"html_url",
|
|
9294
|
-
"id",
|
|
9295
|
-
"node_id",
|
|
9296
|
-
"login",
|
|
9297
|
-
"organizations_url",
|
|
9298
|
-
"received_events_url",
|
|
9299
|
-
"repos_url",
|
|
9300
|
-
"site_admin",
|
|
9301
|
-
"starred_url",
|
|
9302
|
-
"subscriptions_url",
|
|
9303
|
-
"type",
|
|
9304
|
-
"url"
|
|
9305
|
-
]
|
|
9306
|
-
},
|
|
9307
|
-
"assets": {
|
|
9308
|
-
"type": "array",
|
|
9309
|
-
"items": {
|
|
9310
|
-
"title": "Release Asset",
|
|
9311
|
-
"description": "Data related to a release.",
|
|
9312
|
-
"type": "object",
|
|
9313
|
-
"properties": {
|
|
9314
|
-
"url": { "type": "string", "format": "uri" },
|
|
9315
|
-
"browser_download_url": {
|
|
9316
|
-
"type": "string",
|
|
9317
|
-
"format": "uri"
|
|
9318
|
-
},
|
|
9319
|
-
"id": { "type": "integer" },
|
|
9320
|
-
"node_id": { "type": "string" },
|
|
9321
|
-
"name": {
|
|
9322
|
-
"description": "The file name of the asset.",
|
|
9323
|
-
"type": "string",
|
|
9324
|
-
"example": "Team Environment"
|
|
9325
|
-
},
|
|
9326
|
-
"label": { "type": "string", "nullable": true },
|
|
9327
|
-
"state": {
|
|
9328
|
-
"description": "State of the release asset.",
|
|
9329
|
-
"type": "string",
|
|
9330
|
-
"enum": ["uploaded", "open"]
|
|
9331
|
-
},
|
|
9332
|
-
"content_type": { "type": "string" },
|
|
9333
|
-
"size": { "type": "integer" },
|
|
9334
|
-
"download_count": { "type": "integer" },
|
|
9335
|
-
"created_at": {
|
|
9336
|
-
"type": "string",
|
|
9337
|
-
"format": "date-time"
|
|
9338
|
-
},
|
|
9339
|
-
"updated_at": {
|
|
9340
|
-
"type": "string",
|
|
9341
|
-
"format": "date-time"
|
|
9342
|
-
},
|
|
9343
|
-
"uploader": {
|
|
9344
|
-
"title": "Simple User",
|
|
9345
|
-
"description": "Simple User",
|
|
9346
|
-
"type": "object",
|
|
9347
|
-
"properties": {
|
|
9348
|
-
"name": { "nullable": true, "type": "string" },
|
|
9349
|
-
"email": { "nullable": true, "type": "string" },
|
|
9350
|
-
"login": {
|
|
9351
|
-
"type": "string",
|
|
9352
|
-
"example": "octocat"
|
|
9353
|
-
},
|
|
9354
|
-
"id": { "type": "integer", "example": 1 },
|
|
9355
|
-
"node_id": {
|
|
9356
|
-
"type": "string",
|
|
9357
|
-
"example": "MDQ6VXNlcjE="
|
|
9358
|
-
},
|
|
9359
|
-
"avatar_url": {
|
|
9360
|
-
"type": "string",
|
|
9361
|
-
"format": "uri",
|
|
9362
|
-
"example": "https://github.com/images/error/octocat_happy.gif"
|
|
9363
|
-
},
|
|
9364
|
-
"gravatar_id": {
|
|
9365
|
-
"type": "string",
|
|
9366
|
-
"example": "41d064eb2195891e12d0413f63227ea7",
|
|
9367
|
-
"nullable": true
|
|
9368
|
-
},
|
|
9369
|
-
"url": {
|
|
9370
|
-
"type": "string",
|
|
9371
|
-
"format": "uri",
|
|
9372
|
-
"example": "https://api.github.com/users/octocat"
|
|
9373
|
-
},
|
|
9374
|
-
"html_url": {
|
|
9375
|
-
"type": "string",
|
|
9376
|
-
"format": "uri",
|
|
9377
|
-
"example": "https://github.com/octocat"
|
|
9378
|
-
},
|
|
9379
|
-
"followers_url": {
|
|
9380
|
-
"type": "string",
|
|
9381
|
-
"format": "uri",
|
|
9382
|
-
"example": "https://api.github.com/users/octocat/followers"
|
|
9383
|
-
},
|
|
9384
|
-
"following_url": {
|
|
9385
|
-
"type": "string",
|
|
9386
|
-
"example": "https://api.github.com/users/octocat/following{/other_user}"
|
|
9387
|
-
},
|
|
9388
|
-
"gists_url": {
|
|
9389
|
-
"type": "string",
|
|
9390
|
-
"example": "https://api.github.com/users/octocat/gists{/gist_id}"
|
|
9391
|
-
},
|
|
9392
|
-
"starred_url": {
|
|
9393
|
-
"type": "string",
|
|
9394
|
-
"example": "https://api.github.com/users/octocat/starred{/owner}{/repo}"
|
|
9395
|
-
},
|
|
9396
|
-
"subscriptions_url": {
|
|
9397
|
-
"type": "string",
|
|
9398
|
-
"format": "uri",
|
|
9399
|
-
"example": "https://api.github.com/users/octocat/subscriptions"
|
|
9400
|
-
},
|
|
9401
|
-
"organizations_url": {
|
|
9402
|
-
"type": "string",
|
|
9403
|
-
"format": "uri",
|
|
9404
|
-
"example": "https://api.github.com/users/octocat/orgs"
|
|
9405
|
-
},
|
|
9406
|
-
"repos_url": {
|
|
9407
|
-
"type": "string",
|
|
9408
|
-
"format": "uri",
|
|
9409
|
-
"example": "https://api.github.com/users/octocat/repos"
|
|
9410
|
-
},
|
|
9411
|
-
"events_url": {
|
|
9412
|
-
"type": "string",
|
|
9413
|
-
"example": "https://api.github.com/users/octocat/events{/privacy}"
|
|
9414
|
-
},
|
|
9415
|
-
"received_events_url": {
|
|
9416
|
-
"type": "string",
|
|
9417
|
-
"format": "uri",
|
|
9418
|
-
"example": "https://api.github.com/users/octocat/received_events"
|
|
9419
|
-
},
|
|
9420
|
-
"type": { "type": "string", "example": "User" },
|
|
9421
|
-
"site_admin": { "type": "boolean" },
|
|
9422
|
-
"starred_at": {
|
|
9423
|
-
"type": "string",
|
|
9424
|
-
"example": "\"2020-07-09T00:17:55Z\""
|
|
9425
|
-
}
|
|
9426
|
-
},
|
|
9427
|
-
"required": [
|
|
9428
|
-
"avatar_url",
|
|
9429
|
-
"events_url",
|
|
9430
|
-
"followers_url",
|
|
9431
|
-
"following_url",
|
|
9432
|
-
"gists_url",
|
|
9433
|
-
"gravatar_id",
|
|
9434
|
-
"html_url",
|
|
9435
|
-
"id",
|
|
9436
|
-
"node_id",
|
|
9437
|
-
"login",
|
|
9438
|
-
"organizations_url",
|
|
9439
|
-
"received_events_url",
|
|
9440
|
-
"repos_url",
|
|
9441
|
-
"site_admin",
|
|
9442
|
-
"starred_url",
|
|
9443
|
-
"subscriptions_url",
|
|
9444
|
-
"type",
|
|
9445
|
-
"url"
|
|
9446
|
-
],
|
|
9447
|
-
"nullable": true
|
|
9448
|
-
}
|
|
9449
|
-
},
|
|
9450
|
-
"required": [
|
|
9451
|
-
"id",
|
|
9452
|
-
"name",
|
|
9453
|
-
"content_type",
|
|
9454
|
-
"size",
|
|
9455
|
-
"state",
|
|
9456
|
-
"url",
|
|
9457
|
-
"node_id",
|
|
9458
|
-
"download_count",
|
|
9459
|
-
"label",
|
|
9460
|
-
"uploader",
|
|
9461
|
-
"browser_download_url",
|
|
9462
|
-
"created_at",
|
|
9463
|
-
"updated_at"
|
|
9464
|
-
]
|
|
9465
|
-
}
|
|
9466
|
-
},
|
|
9467
|
-
"body_html": { "type": "string" },
|
|
9468
|
-
"body_text": { "type": "string" },
|
|
9469
|
-
"mentions_count": { "type": "integer" },
|
|
9470
|
-
"reactions": {
|
|
9471
|
-
"title": "Reaction Rollup",
|
|
9472
|
-
"type": "object",
|
|
9473
|
-
"properties": {
|
|
9474
|
-
"url": { "type": "string", "format": "uri" },
|
|
9475
|
-
"total_count": { "type": "integer" },
|
|
9476
|
-
"+1": { "type": "integer" },
|
|
9477
|
-
"-1": { "type": "integer" },
|
|
9478
|
-
"laugh": { "type": "integer" },
|
|
9479
|
-
"confused": { "type": "integer" },
|
|
9480
|
-
"heart": { "type": "integer" },
|
|
9481
|
-
"hooray": { "type": "integer" },
|
|
9482
|
-
"eyes": { "type": "integer" },
|
|
9483
|
-
"rocket": { "type": "integer" }
|
|
9484
|
-
},
|
|
9485
|
-
"required": [
|
|
9486
|
-
"url",
|
|
9487
|
-
"total_count",
|
|
9488
|
-
"+1",
|
|
9489
|
-
"-1",
|
|
9490
|
-
"laugh",
|
|
9491
|
-
"confused",
|
|
9492
|
-
"heart",
|
|
9493
|
-
"hooray",
|
|
9494
|
-
"eyes",
|
|
9495
|
-
"rocket"
|
|
9496
|
-
]
|
|
9497
|
-
}
|
|
9498
|
-
},
|
|
9499
|
-
"required": [
|
|
9500
|
-
"assets_url",
|
|
9501
|
-
"upload_url",
|
|
9502
|
-
"tarball_url",
|
|
9503
|
-
"zipball_url",
|
|
9504
|
-
"created_at",
|
|
9505
|
-
"published_at",
|
|
9506
|
-
"draft",
|
|
9507
|
-
"id",
|
|
9508
|
-
"node_id",
|
|
9509
|
-
"author",
|
|
9510
|
-
"html_url",
|
|
9511
|
-
"name",
|
|
9512
|
-
"prerelease",
|
|
9513
|
-
"tag_name",
|
|
9514
|
-
"target_commitish",
|
|
9515
|
-
"assets",
|
|
9516
|
-
"url"
|
|
9517
|
-
]
|
|
9518
|
-
},
|
|
9519
|
-
"examples": {
|
|
9520
|
-
"default": {
|
|
9521
|
-
"value": {
|
|
9522
|
-
"url": "https://api.github.com/repos/octocat/Hello-World/releases/1",
|
|
9523
|
-
"html_url": "https://github.com/octocat/Hello-World/releases/v1.0.0",
|
|
9524
|
-
"assets_url": "https://api.github.com/repos/octocat/Hello-World/releases/1/assets",
|
|
9525
|
-
"upload_url": "https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}",
|
|
9526
|
-
"tarball_url": "https://api.github.com/repos/octocat/Hello-World/tarball/v1.0.0",
|
|
9527
|
-
"zipball_url": "https://api.github.com/repos/octocat/Hello-World/zipball/v1.0.0",
|
|
9528
|
-
"discussion_url": "https://github.com/octocat/Hello-World/discussions/90",
|
|
9529
|
-
"id": 1,
|
|
9530
|
-
"node_id": "MDc6UmVsZWFzZTE=",
|
|
9531
|
-
"tag_name": "v1.0.0",
|
|
9532
|
-
"target_commitish": "master",
|
|
9533
|
-
"name": "v1.0.0",
|
|
9534
|
-
"body": "Description of the release",
|
|
9535
|
-
"draft": false,
|
|
9536
|
-
"prerelease": false,
|
|
9537
|
-
"created_at": "2013-02-27T19:35:32Z",
|
|
9538
|
-
"published_at": "2013-02-27T19:35:32Z",
|
|
9539
|
-
"author": {
|
|
9540
|
-
"login": "octocat",
|
|
7770
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/releases/1",
|
|
7771
|
+
"html_url": "https://github.com/octocat/Hello-World/releases/v1.0.0",
|
|
7772
|
+
"assets_url": "https://api.github.com/repos/octocat/Hello-World/releases/1/assets",
|
|
7773
|
+
"upload_url": "https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}",
|
|
7774
|
+
"tarball_url": "https://api.github.com/repos/octocat/Hello-World/tarball/v1.0.0",
|
|
7775
|
+
"zipball_url": "https://api.github.com/repos/octocat/Hello-World/zipball/v1.0.0",
|
|
9541
7776
|
"id": 1,
|
|
9542
|
-
"node_id": "
|
|
9543
|
-
"
|
|
9544
|
-
"
|
|
9545
|
-
"
|
|
9546
|
-
"
|
|
9547
|
-
"
|
|
9548
|
-
"
|
|
9549
|
-
"
|
|
9550
|
-
"
|
|
9551
|
-
"
|
|
9552
|
-
|
|
9553
|
-
"repos_url": "https://api.github.com/users/octocat/repos",
|
|
9554
|
-
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
|
9555
|
-
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
|
9556
|
-
"type": "User",
|
|
9557
|
-
"site_admin": false
|
|
9558
|
-
},
|
|
9559
|
-
"assets": [
|
|
9560
|
-
{
|
|
9561
|
-
"url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
|
|
9562
|
-
"browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
|
|
7777
|
+
"node_id": "MDc6UmVsZWFzZTE=",
|
|
7778
|
+
"tag_name": "v1.0.0",
|
|
7779
|
+
"target_commitish": "master",
|
|
7780
|
+
"name": "v1.0.0",
|
|
7781
|
+
"body": "Description of the release",
|
|
7782
|
+
"draft": false,
|
|
7783
|
+
"prerelease": false,
|
|
7784
|
+
"created_at": "2013-02-27T19:35:32Z",
|
|
7785
|
+
"published_at": "2013-02-27T19:35:32Z",
|
|
7786
|
+
"author": {
|
|
7787
|
+
"login": "octocat",
|
|
9563
7788
|
"id": 1,
|
|
9564
|
-
"node_id": "
|
|
9565
|
-
"
|
|
9566
|
-
"
|
|
9567
|
-
"
|
|
9568
|
-
"
|
|
9569
|
-
"
|
|
9570
|
-
"
|
|
9571
|
-
"
|
|
9572
|
-
"
|
|
9573
|
-
"
|
|
9574
|
-
|
|
7789
|
+
"node_id": "MDQ6VXNlcjE=",
|
|
7790
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
7791
|
+
"gravatar_id": "",
|
|
7792
|
+
"url": "https://api.github.com/users/octocat",
|
|
7793
|
+
"html_url": "https://github.com/octocat",
|
|
7794
|
+
"followers_url": "https://api.github.com/users/octocat/followers",
|
|
7795
|
+
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
|
7796
|
+
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
|
7797
|
+
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
|
7798
|
+
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
|
7799
|
+
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
|
7800
|
+
"repos_url": "https://api.github.com/users/octocat/repos",
|
|
7801
|
+
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
|
7802
|
+
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
|
7803
|
+
"type": "User",
|
|
7804
|
+
"site_admin": false
|
|
7805
|
+
},
|
|
7806
|
+
"assets": [
|
|
7807
|
+
{
|
|
7808
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
|
|
7809
|
+
"browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
|
|
9575
7810
|
"id": 1,
|
|
9576
|
-
"node_id": "
|
|
9577
|
-
"
|
|
9578
|
-
"
|
|
9579
|
-
"
|
|
9580
|
-
"
|
|
9581
|
-
"
|
|
9582
|
-
"
|
|
9583
|
-
"
|
|
9584
|
-
"
|
|
9585
|
-
"
|
|
9586
|
-
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
7811
|
+
"node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
|
|
7812
|
+
"name": "example.zip",
|
|
7813
|
+
"label": "short description",
|
|
7814
|
+
"state": "uploaded",
|
|
7815
|
+
"content_type": "application/zip",
|
|
7816
|
+
"size": 1024,
|
|
7817
|
+
"download_count": 42,
|
|
7818
|
+
"created_at": "2013-02-27T19:35:32Z",
|
|
7819
|
+
"updated_at": "2013-02-27T19:35:32Z",
|
|
7820
|
+
"uploader": {
|
|
7821
|
+
"login": "octocat",
|
|
7822
|
+
"id": 1,
|
|
7823
|
+
"node_id": "MDQ6VXNlcjE=",
|
|
7824
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
7825
|
+
"gravatar_id": "",
|
|
7826
|
+
"url": "https://api.github.com/users/octocat",
|
|
7827
|
+
"html_url": "https://github.com/octocat",
|
|
7828
|
+
"followers_url": "https://api.github.com/users/octocat/followers",
|
|
7829
|
+
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
|
7830
|
+
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
|
7831
|
+
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
|
7832
|
+
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
|
7833
|
+
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
|
7834
|
+
"repos_url": "https://api.github.com/users/octocat/repos",
|
|
7835
|
+
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
|
7836
|
+
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
|
7837
|
+
"type": "User",
|
|
7838
|
+
"site_admin": false
|
|
7839
|
+
}
|
|
9592
7840
|
}
|
|
9593
|
-
|
|
9594
|
-
|
|
9595
|
-
|
|
7841
|
+
]
|
|
7842
|
+
}
|
|
7843
|
+
]
|
|
7844
|
+
}
|
|
7845
|
+
}
|
|
7846
|
+
}
|
|
7847
|
+
},
|
|
7848
|
+
"headers": {
|
|
7849
|
+
"Link": {
|
|
7850
|
+
"example": "<https://api.github.com/resource?page=2>; rel=\"next\", <https://api.github.com/resource?page=5>; rel=\"last\"",
|
|
7851
|
+
"schema": { "type": "string" }
|
|
7852
|
+
}
|
|
7853
|
+
}
|
|
7854
|
+
},
|
|
7855
|
+
"404": {
|
|
7856
|
+
"description": "Resource not found",
|
|
7857
|
+
"content": {
|
|
7858
|
+
"application/json": {
|
|
7859
|
+
"schema": {
|
|
7860
|
+
"title": "Basic Error",
|
|
7861
|
+
"description": "Basic Error",
|
|
7862
|
+
"type": "object",
|
|
7863
|
+
"properties": {
|
|
7864
|
+
"message": { "type": "string" },
|
|
7865
|
+
"documentation_url": { "type": "string" },
|
|
7866
|
+
"url": { "type": "string" },
|
|
7867
|
+
"status": { "type": "string" }
|
|
9596
7868
|
}
|
|
9597
7869
|
}
|
|
9598
7870
|
}
|
|
@@ -9609,15 +7881,15 @@
|
|
|
9609
7881
|
"x-octokit": { "diff": { "api.github.com": { "type": "changed" } } }
|
|
9610
7882
|
}
|
|
9611
7883
|
},
|
|
9612
|
-
"/repos/{owner}/{repo}/releases/
|
|
7884
|
+
"/repos/{owner}/{repo}/releases/latest": {
|
|
9613
7885
|
"get": {
|
|
9614
|
-
"summary": "Get
|
|
9615
|
-
"description": "
|
|
7886
|
+
"summary": "Get the latest release",
|
|
7887
|
+
"description": "View the latest published full release for the repository.\n\nThe latest release is the most recent non-prerelease, non-draft release, sorted by the `created_at` attribute. The `created_at` attribute is the date of the commit used for the release, and not the date when the release was drafted or published.",
|
|
9616
7888
|
"tags": ["repos"],
|
|
9617
|
-
"operationId": "repos/get-release
|
|
7889
|
+
"operationId": "repos/get-latest-release",
|
|
9618
7890
|
"externalDocs": {
|
|
9619
7891
|
"description": "API method documentation",
|
|
9620
|
-
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/repos#get-
|
|
7892
|
+
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/repos#get-the-latest-release"
|
|
9621
7893
|
},
|
|
9622
7894
|
"parameters": [
|
|
9623
7895
|
{
|
|
@@ -9631,14 +7903,6 @@
|
|
|
9631
7903
|
"in": "path",
|
|
9632
7904
|
"required": true,
|
|
9633
7905
|
"schema": { "type": "string" }
|
|
9634
|
-
},
|
|
9635
|
-
{
|
|
9636
|
-
"name": "tag",
|
|
9637
|
-
"description": "tag parameter",
|
|
9638
|
-
"in": "path",
|
|
9639
|
-
"required": true,
|
|
9640
|
-
"schema": { "type": "string" },
|
|
9641
|
-
"x-multi-segment": true
|
|
9642
7906
|
}
|
|
9643
7907
|
],
|
|
9644
7908
|
"responses": {
|
|
@@ -10090,24 +8354,6 @@
|
|
|
10090
8354
|
}
|
|
10091
8355
|
}
|
|
10092
8356
|
}
|
|
10093
|
-
},
|
|
10094
|
-
"404": {
|
|
10095
|
-
"description": "Resource not found",
|
|
10096
|
-
"content": {
|
|
10097
|
-
"application/json": {
|
|
10098
|
-
"schema": {
|
|
10099
|
-
"title": "Basic Error",
|
|
10100
|
-
"description": "Basic Error",
|
|
10101
|
-
"type": "object",
|
|
10102
|
-
"properties": {
|
|
10103
|
-
"message": { "type": "string" },
|
|
10104
|
-
"documentation_url": { "type": "string" },
|
|
10105
|
-
"url": { "type": "string" },
|
|
10106
|
-
"status": { "type": "string" }
|
|
10107
|
-
}
|
|
10108
|
-
}
|
|
10109
|
-
}
|
|
10110
|
-
}
|
|
10111
8357
|
}
|
|
10112
8358
|
},
|
|
10113
8359
|
"x-github": {
|
|
@@ -10120,15 +8366,15 @@
|
|
|
10120
8366
|
"x-octokit": { "diff": { "api.github.com": { "type": "changed" } } }
|
|
10121
8367
|
}
|
|
10122
8368
|
},
|
|
10123
|
-
"/repos/{owner}/{repo}/releases/{
|
|
8369
|
+
"/repos/{owner}/{repo}/releases/tags/{tag}": {
|
|
10124
8370
|
"get": {
|
|
10125
|
-
"summary": "Get a release",
|
|
10126
|
-
"description": "
|
|
8371
|
+
"summary": "Get a release by tag name",
|
|
8372
|
+
"description": "Get a published release with the specified tag.",
|
|
10127
8373
|
"tags": ["repos"],
|
|
10128
|
-
"operationId": "repos/get-release",
|
|
8374
|
+
"operationId": "repos/get-release-by-tag",
|
|
10129
8375
|
"externalDocs": {
|
|
10130
8376
|
"description": "API method documentation",
|
|
10131
|
-
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/repos#get-a-release"
|
|
8377
|
+
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/repos#get-a-release-by-tag-name"
|
|
10132
8378
|
},
|
|
10133
8379
|
"parameters": [
|
|
10134
8380
|
{
|
|
@@ -10144,16 +8390,17 @@
|
|
|
10144
8390
|
"schema": { "type": "string" }
|
|
10145
8391
|
},
|
|
10146
8392
|
{
|
|
10147
|
-
"name": "
|
|
10148
|
-
"description": "
|
|
8393
|
+
"name": "tag",
|
|
8394
|
+
"description": "tag parameter",
|
|
10149
8395
|
"in": "path",
|
|
10150
8396
|
"required": true,
|
|
10151
|
-
"schema": { "type": "
|
|
8397
|
+
"schema": { "type": "string" },
|
|
8398
|
+
"x-multi-segment": true
|
|
10152
8399
|
}
|
|
10153
8400
|
],
|
|
10154
8401
|
"responses": {
|
|
10155
8402
|
"200": {
|
|
10156
|
-
"description": "
|
|
8403
|
+
"description": "Response",
|
|
10157
8404
|
"content": {
|
|
10158
8405
|
"application/json": {
|
|
10159
8406
|
"schema": {
|
|
@@ -10628,15 +8875,17 @@
|
|
|
10628
8875
|
"subcategory": "releases"
|
|
10629
8876
|
},
|
|
10630
8877
|
"x-octokit": { "diff": { "api.github.com": { "type": "changed" } } }
|
|
10631
|
-
}
|
|
10632
|
-
|
|
10633
|
-
|
|
10634
|
-
|
|
8878
|
+
}
|
|
8879
|
+
},
|
|
8880
|
+
"/repos/{owner}/{repo}/releases/{release_id}": {
|
|
8881
|
+
"get": {
|
|
8882
|
+
"summary": "Get a release",
|
|
8883
|
+
"description": "**Note:** This returns an `upload_url` key corresponding to the endpoint for uploading release assets. This key is a [hypermedia resource](https://docs.github.com/enterprise-server@3.2/rest/overview/resources-in-the-rest-api#hypermedia).",
|
|
10635
8884
|
"tags": ["repos"],
|
|
10636
|
-
"operationId": "repos/
|
|
8885
|
+
"operationId": "repos/get-release",
|
|
10637
8886
|
"externalDocs": {
|
|
10638
8887
|
"description": "API method documentation",
|
|
10639
|
-
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/repos#
|
|
8888
|
+
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/repos#get-a-release"
|
|
10640
8889
|
},
|
|
10641
8890
|
"parameters": [
|
|
10642
8891
|
{
|
|
@@ -10659,52 +8908,9 @@
|
|
|
10659
8908
|
"schema": { "type": "integer" }
|
|
10660
8909
|
}
|
|
10661
8910
|
],
|
|
10662
|
-
"requestBody": {
|
|
10663
|
-
"content": {
|
|
10664
|
-
"application/json": {
|
|
10665
|
-
"schema": {
|
|
10666
|
-
"type": "object",
|
|
10667
|
-
"properties": {
|
|
10668
|
-
"tag_name": {
|
|
10669
|
-
"type": "string",
|
|
10670
|
-
"description": "The name of the tag."
|
|
10671
|
-
},
|
|
10672
|
-
"target_commitish": {
|
|
10673
|
-
"type": "string",
|
|
10674
|
-
"description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`)."
|
|
10675
|
-
},
|
|
10676
|
-
"name": {
|
|
10677
|
-
"type": "string",
|
|
10678
|
-
"description": "The name of the release."
|
|
10679
|
-
},
|
|
10680
|
-
"body": {
|
|
10681
|
-
"type": "string",
|
|
10682
|
-
"description": "Text describing the contents of the tag."
|
|
10683
|
-
},
|
|
10684
|
-
"draft": {
|
|
10685
|
-
"type": "boolean",
|
|
10686
|
-
"description": "`true` makes the release a draft, and `false` publishes the release."
|
|
10687
|
-
},
|
|
10688
|
-
"prerelease": {
|
|
10689
|
-
"type": "boolean",
|
|
10690
|
-
"description": "`true` to identify the release as a prerelease, `false` to identify the release as a full release."
|
|
10691
|
-
}
|
|
10692
|
-
}
|
|
10693
|
-
},
|
|
10694
|
-
"example": {
|
|
10695
|
-
"tag_name": "v1.0.0",
|
|
10696
|
-
"target_commitish": "master",
|
|
10697
|
-
"name": "v1.0.0",
|
|
10698
|
-
"body": "Description of the release",
|
|
10699
|
-
"draft": false,
|
|
10700
|
-
"prerelease": false
|
|
10701
|
-
}
|
|
10702
|
-
}
|
|
10703
|
-
}
|
|
10704
|
-
},
|
|
10705
8911
|
"responses": {
|
|
10706
8912
|
"200": {
|
|
10707
|
-
"description": "
|
|
8913
|
+
"description": "**Note:** This returns an `upload_url` key corresponding to the endpoint for uploading release assets. This key is a [hypermedia resource](https://docs.github.com/enterprise-server@3.2/rest/overview/resources-in-the-rest-api#hypermedia).",
|
|
10708
8914
|
"content": {
|
|
10709
8915
|
"application/json": {
|
|
10710
8916
|
"schema": {
|
|
@@ -11151,6 +9357,24 @@
|
|
|
11151
9357
|
}
|
|
11152
9358
|
}
|
|
11153
9359
|
}
|
|
9360
|
+
},
|
|
9361
|
+
"404": {
|
|
9362
|
+
"description": "Resource not found",
|
|
9363
|
+
"content": {
|
|
9364
|
+
"application/json": {
|
|
9365
|
+
"schema": {
|
|
9366
|
+
"title": "Basic Error",
|
|
9367
|
+
"description": "Basic Error",
|
|
9368
|
+
"type": "object",
|
|
9369
|
+
"properties": {
|
|
9370
|
+
"message": { "type": "string" },
|
|
9371
|
+
"documentation_url": { "type": "string" },
|
|
9372
|
+
"url": { "type": "string" },
|
|
9373
|
+
"status": { "type": "string" }
|
|
9374
|
+
}
|
|
9375
|
+
}
|
|
9376
|
+
}
|
|
9377
|
+
}
|
|
11154
9378
|
}
|
|
11155
9379
|
},
|
|
11156
9380
|
"x-github": {
|