Skip to content

Commit 957b78a

Browse files
authored
feat: allow_forking property for repository components (#157)
1 parent df53a4a commit 957b78a

File tree

15 files changed

+135266
-138418
lines changed

15 files changed

+135266
-138418
lines changed

cache/api.github.com.json

Lines changed: 7 additions & 76352 deletions
Large diffs are not rendered by default.

cache/ghes-2.22.json

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "5.1.3",
4+
"version": "5.2.0",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
@@ -12825,6 +12825,11 @@
1282512825
"type": "boolean",
1282612826
"description": "`true` to archive this repository. **Note**: You cannot unarchive repositories through the API.",
1282712827
"default": false
12828+
},
12829+
"allow_forking": {
12830+
"type": "boolean",
12831+
"description": "Either `true` to allow private forks, or `false` to prevent private forks.",
12832+
"default": false
1282812833
}
1282912834
}
1283012835
},
@@ -19916,7 +19921,7 @@
1991619921
},
1991719922
"post": {
1991819923
"summary": "Create a fork",
19919-
"description": "Create a fork for the authenticated user.\n\n**Note**: Forking a Repository happens asynchronously. You may have to wait a short period of time before you can access the git objects. If this takes longer than 5 minutes, be sure to contact [GitHub Enterprise Server Support](https://support.github.com/contact?tags=rest-api).",
19924+
"description": "Create a fork for the authenticated user.\n\n**Note**: Forking a Repository happens asynchronously. You may have to wait a short period of time before you can access the git objects. If this takes longer than 5 minutes, be sure to contact [GitHub Enterprise Server Support](https://support.github.com/contact?tags=dotcom-rest-api).",
1992019925
"tags": ["repos"],
1992119926
"operationId": "repos/create-fork",
1992219927
"externalDocs": {
@@ -27482,7 +27487,7 @@
2748227487
},
2748327488
"post": {
2748427489
"summary": "Upload a release asset",
27485-
"description": "This endpoint makes use of [a Hypermedia relation](https://docs.github.com/enterprise-server@2.22/rest/overview/resources-in-the-rest-api#hypermedia) to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the `upload_url` returned in\nthe response of the [Create a release endpoint](https://docs.github.com/enterprise-server@2.22/rest/reference/repos#create-a-release) to upload a release asset.\n\nYou need to use an HTTP client which supports [SNI](http://en.wikipedia.org/wiki/Server_Name_Indication) to make calls to this endpoint.\n\nMost libraries will set the required `Content-Length` header automatically. Use the required `Content-Type` header to provide the media type of the asset. For a list of media types, see [Media Types](https://www.iana.org/assignments/media-types/media-types.xhtml). For example: \n\n`application/zip`\n\nGitHub Enterprise Server expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,\nyou'll still need to pass your authentication to be able to upload an asset.\n\nWhen an upstream failure occurs, you will receive a `502 Bad Gateway` status. This may leave an empty asset with a state of `starter`. It can be safely deleted.\n\n**Notes:**\n* GitHub Enterprise Server renames asset filenames that have special characters, non-alphanumeric characters, and leading or trailing periods. The \"[List assets for a release](https://docs.github.com/enterprise-server@2.22/rest/reference/repos#list-assets-for-a-release)\"\nendpoint lists the renamed filenames. For more information and help, contact [GitHub Enterprise Server Support](https://support.github.com/contact?tags=rest-api).\n* If you upload an asset with the same filename as another uploaded asset, you'll receive an error and must delete the old file before you can re-upload the new asset.",
27490+
"description": "This endpoint makes use of [a Hypermedia relation](https://docs.github.com/enterprise-server@2.22/rest/overview/resources-in-the-rest-api#hypermedia) to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the `upload_url` returned in\nthe response of the [Create a release endpoint](https://docs.github.com/enterprise-server@2.22/rest/reference/repos#create-a-release) to upload a release asset.\n\nYou need to use an HTTP client which supports [SNI](http://en.wikipedia.org/wiki/Server_Name_Indication) to make calls to this endpoint.\n\nMost libraries will set the required `Content-Length` header automatically. Use the required `Content-Type` header to provide the media type of the asset. For a list of media types, see [Media Types](https://www.iana.org/assignments/media-types/media-types.xhtml). For example: \n\n`application/zip`\n\nGitHub Enterprise Server expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,\nyou'll still need to pass your authentication to be able to upload an asset.\n\nWhen an upstream failure occurs, you will receive a `502 Bad Gateway` status. This may leave an empty asset with a state of `starter`. It can be safely deleted.\n\n**Notes:**\n* GitHub Enterprise Server renames asset filenames that have special characters, non-alphanumeric characters, and leading or trailing periods. The \"[List assets for a release](https://docs.github.com/enterprise-server@2.22/rest/reference/repos#list-assets-for-a-release)\"\nendpoint lists the renamed filenames. For more information and help, contact [GitHub Enterprise Server Support](https://support.github.com/contact?tags=dotcom-rest-api).\n* If you upload an asset with the same filename as another uploaded asset, you'll receive an error and must delete the old file before you can re-upload the new asset.",
2748627491
"tags": ["repos"],
2748727492
"operationId": "repos/upload-release-asset",
2748827493
"externalDocs": {
@@ -37068,6 +37073,10 @@
3706837073
"type": "boolean",
3706937074
"example": true
3707037075
},
37076+
"allow_forking": {
37077+
"description": "Whether to allow forking this repo",
37078+
"type": "boolean"
37079+
},
3707137080
"subscribers_count": { "type": "integer" },
3707237081
"network_count": { "type": "integer" },
3707337082
"open_issues": { "type": "integer" },
@@ -39302,6 +39311,10 @@
3930239311
"type": "boolean",
3930339312
"example": true
3930439313
},
39314+
"allow_forking": {
39315+
"description": "Whether to allow forking this repo",
39316+
"type": "boolean"
39317+
},
3930539318
"subscribers_count": { "type": "integer" },
3930639319
"network_count": { "type": "integer" },
3930739320
"open_issues": { "type": "integer" },
@@ -39648,7 +39661,8 @@
3964839661
},
3964939662
"forks": { "type": "integer", "example": 0 },
3965039663
"open_issues": { "type": "integer", "example": 0 },
39651-
"watchers": { "type": "integer", "example": 0 }
39664+
"watchers": { "type": "integer", "example": 0 },
39665+
"allow_forking": { "type": "boolean" }
3965239666
},
3965339667
"required": [
3965439668
"archive_url",
@@ -41107,6 +41121,12 @@
4110741121
"type": "boolean",
4110841122
"example": true
4110941123
},
41124+
"allow_forking": {
41125+
"description": "Whether to allow forking this repo",
41126+
"default": false,
41127+
"type": "boolean",
41128+
"example": false
41129+
},
4111041130
"subscribers_count": { "type": "integer" },
4111141131
"network_count": { "type": "integer" },
4111241132
"open_issues": { "type": "integer" },
@@ -41660,6 +41680,7 @@
4166041680
"allow_squash_merge": { "type": "boolean", "example": true },
4166141681
"delete_branch_on_merge": { "type": "boolean", "example": false },
4166241682
"allow_merge_commit": { "type": "boolean", "example": true },
41683+
"allow_forking": { "type": "boolean", "example": true },
4166341684
"subscribers_count": { "type": "integer", "example": 42 },
4166441685
"network_count": { "type": "integer", "example": 0 },
4166541686
"license": { "$ref": "#/components/schemas/nullable-license-simple" },
@@ -47307,7 +47328,8 @@
4730747328
"watchers": { "type": "integer" },
4730847329
"watchers_count": { "type": "integer" },
4730947330
"created_at": { "type": "string", "format": "date-time" },
47310-
"updated_at": { "type": "string", "format": "date-time" }
47331+
"updated_at": { "type": "string", "format": "date-time" },
47332+
"allow_forking": { "type": "boolean" }
4731147333
},
4731247334
"required": [
4731347335
"archive_url",
@@ -47590,7 +47612,8 @@
4759047612
"watchers": { "type": "integer" },
4759147613
"watchers_count": { "type": "integer" },
4759247614
"created_at": { "type": "string", "format": "date-time" },
47593-
"updated_at": { "type": "string", "format": "date-time" }
47615+
"updated_at": { "type": "string", "format": "date-time" },
47616+
"allow_forking": { "type": "boolean" }
4759447617
},
4759547618
"required": [
4759647619
"archive_url",
@@ -48686,7 +48709,8 @@
4868648709
"allow_merge_commit": { "type": "boolean" },
4868748710
"allow_squash_merge": { "type": "boolean" },
4868848711
"allow_rebase_merge": { "type": "boolean" },
48689-
"delete_branch_on_merge": { "type": "boolean" }
48712+
"delete_branch_on_merge": { "type": "boolean" },
48713+
"allow_forking": { "type": "boolean" }
4869048714
},
4869148715
"required": [
4869248716
"archive_url",
@@ -54850,6 +54874,7 @@
5485054874
"allow_squash_merge": true,
5485154875
"delete_branch_on_merge": true,
5485254876
"allow_merge_commit": true,
54877+
"allow_forking": true,
5485354878
"subscribers_count": 42,
5485454879
"network_count": 0,
5485554880
"organization": {
@@ -61432,6 +61457,7 @@
6143261457
"temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
6143361458
"allow_squash_merge": true,
6143461459
"allow_merge_commit": true,
61460+
"allow_forking": true,
6143561461
"forks": 123,
6143661462
"open_issues": 123,
6143761463
"license": {
@@ -63394,6 +63420,7 @@
6339463420
"allow_squash_merge": true,
6339563421
"delete_branch_on_merge": true,
6339663422
"allow_merge_commit": true,
63423+
"allow_forking": true,
6339763424
"subscribers_count": 42,
6339863425
"network_count": 0
6339963426
}

0 commit comments

Comments
 (0)