POST
github_repos_create_fork.py
from charter.packs import github
result = await github.repos_create_fork.ainvoke({"owner": ..., "repo": ...})
Requires
repo, read:user.Path parameters
| Field | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the .git extension. The name is not case sensitive. |
Body
| Field | Type | Description |
|---|---|---|
organization | string | Optional parameter to specify the organization name if forking into an organization. Absent, the fork goes to the authenticated user. |
name | string | When forking from an existing repository, a new name for the fork. |
defaultBranchOnly | boolean | When forking from an existing repository, fork with only the default branch. |