Skip to main content

forks

Creates, updates, deletes, gets or lists a forks resource.

Overview

Nameforks
TypeResource
Idgithub.gists.forks

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
idstring
node_idstring
commentsinteger
comments_enabledboolean
comments_urlstring
commits_urlstring
created_atstring
descriptionstring
filesobject
fork_ofobjectGist (title: Gist)
forksarray
forks_urlstring
git_pull_urlstring
git_push_urlstring
historyarray
html_urlstring
ownerobjectA GitHub user. (title: Simple User)
publicboolean
truncatedboolean
updated_atstring
urlstring
userstring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_forksselectgist_idper_page, page

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
gist_idstringThe unique identifier of the gist.
pageintegerThe page number of the results to fetch. For more information, see "Using pagination in the REST API."
per_pageintegerThe number of results per page (max 100). For more information, see "Using pagination in the REST API."

SELECT examples

Response

SELECT
id,
node_id,
comments,
comments_enabled,
comments_url,
commits_url,
created_at,
description,
files,
fork_of,
forks,
forks_url,
git_pull_url,
git_push_url,
history,
html_url,
owner,
public,
truncated,
updated_at,
url,
user
FROM github.gists.forks
WHERE gist_id = '{{ gist_id }}' -- required
AND per_page = '{{ per_page }}'
AND page = '{{ page }}'
;