Skip to content

Commit fcc8f7b

Browse files
committed
3195 docs - generated
1 parent 496542a commit fcc8f7b

File tree

1 file changed

+86
-0
lines changed

1 file changed

+86
-0
lines changed

docs/content/docs/reference/components/github_v1.mdx

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,92 @@ Type: OBJECT
252252
```
253253

254254

255+
### Create Fork
256+
Name: createFork
257+
258+
`Create a fork of Github repository.`
259+
260+
#### Properties
261+
262+
| Name | Label | Type | Description | Required |
263+
|:---------------:|:--------------:|:------------:|:-------------------:|:--------:|
264+
| owner | User/Organization | STRING | The owner of the repository (user or organization). | true |
265+
| repository | Repository | STRING | Repository that will be forked. | true |
266+
| name | Name | STRING | A new name for the fork. | false |
267+
| organization | Organization | STRING | The organization name if forking into an organization. | false |
268+
| defaultBranchOnly | Default Branch Only | BOOLEAN <details> <summary> Options </summary> <span>true</span>, <span>false</span> </details> | When forking from an existing repository, fork with only the default branch. | false |
269+
270+
#### Example JSON Structure
271+
```json
272+
{
273+
"label" : "Create Fork",
274+
"name" : "createFork",
275+
"parameters" : {
276+
"owner" : "",
277+
"repository" : "",
278+
"name" : "",
279+
"organization" : "",
280+
"defaultBranchOnly" : false
281+
},
282+
"type" : "github/v1/createFork"
283+
}
284+
```
285+
286+
#### Output
287+
288+
289+
290+
Type: OBJECT
291+
292+
293+
#### Properties
294+
295+
| Name | Type | Description |
296+
|:------------:|:------------:|:-------------------:|
297+
| id | STRING | The unique identifier of the fork. |
298+
| node_id | STRING | The node ID of the fork. |
299+
| name | STRING | The name of the forked repository. |
300+
| full_name | STRING | The full name of the forked repository including owner. |
301+
| owner | OBJECT <details> <summary> Properties </summary> &#123;STRING\(login), STRING\(id), STRING\(node_id), STRING\(url)&#125; </details> | Owner information. |
302+
| private | BOOLEAN <details> <summary> Options </summary> <span>true</span>, <span>false</span> </details> | Indicates if the forked repository is private. |
303+
| html_url | STRING | HTML URL of the forked repository. |
304+
| url | STRING | API URL of the forked repository. |
305+
| description | STRING | Description of the repository. |
306+
| fork | STRING | Whether this repository is a fork. |
307+
| created_at | STRING | Creation timestamp. |
308+
| updated_at | STRING | Last update timestamp. |
309+
| pushed_at | STRING | Last push timestamp. |
310+
| default_branch | STRING | Default branch name. |
311+
312+
313+
314+
315+
#### Output Example
316+
```json
317+
{
318+
"id" : "",
319+
"node_id" : "",
320+
"name" : "",
321+
"full_name" : "",
322+
"owner" : {
323+
"login" : "",
324+
"id" : "",
325+
"node_id" : "",
326+
"url" : ""
327+
},
328+
"private" : false,
329+
"html_url" : "",
330+
"url" : "",
331+
"description" : "",
332+
"fork" : "",
333+
"created_at" : "",
334+
"updated_at" : "",
335+
"pushed_at" : "",
336+
"default_branch" : ""
337+
}
338+
```
339+
340+
255341
### Create Issue
256342
Name: createIssue
257343

0 commit comments

Comments
 (0)