Skip to main content

forks

Overview

Nameforks
TypeResource
Idgithub.repos.forks

Fields

NameDatatypeDescription
idinteger
namestring
descriptionstring
subscribers_urlstring
contributors_urlstring
has_projectsboolean
deployments_urlstring
is_templateboolean
archivedboolean
urlstring
permissionsobject
events_urlstring
clone_urlstring
has_discussionsboolean
statuses_urlstring
merges_urlstring
watchers_countinteger
disabledboolean
mirror_urlstring
comments_urlstring
privateboolean
open_issues_countinteger
allow_forkingboolean
stargazers_countinteger
milestones_urlstring
subscription_urlstring
assignees_urlstring
default_branchstring
has_issuesboolean
git_urlstring
security_and_analysisobject
subscribers_countinteger
updated_atstring
visibilitystring
labels_urlstring
forks_countinteger
trees_urlstring
temp_clone_tokenstring
has_pagesboolean
html_urlstring
ownerobjectA GitHub user.
web_commit_signoff_requiredboolean
created_atstring
git_tags_urlstring
role_namestring
teams_urlstring
issues_urlstring
svn_urlstring
sizeintegerThe size of the repository. Size is calculated hourly. When a repository is initially created, the size is 0.
tags_urlstring
downloads_urlstring
git_refs_urlstring
forks_urlstring
compare_urlstring
watchersinteger
forksinteger
open_issuesinteger
delete_branch_on_mergeboolean
commits_urlstring
full_namestring
issue_comment_urlstring
node_idstring
licenseobject
network_countinteger
topicsarray
ssh_urlstring
pushed_atstring
stargazers_urlstring
languagestring
archive_urlstring
releases_urlstring
contents_urlstring
collaborators_urlstring
pulls_urlstring
has_downloadsboolean
code_of_conductobjectCode Of Conduct
issue_events_urlstring
forkboolean
git_commits_urlstring
has_wikiboolean
homepagestring
hooks_urlstring
languages_urlstring
notifications_urlstring
branches_urlstring
blobs_urlstring
keys_urlstring

Methods

NameAccessible byRequired ParamsDescription
list_forksSELECTowner, repo
create_forkINSERTowner, repoCreate a fork for the authenticated user.

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 Support.

Note: Although this endpoint works with GitHub Apps, the GitHub App must be installed on the destination account with access to all repositories and on the source account with access to the source repository.