forks
Creates, updates, deletes, gets or lists a forks resource.
Overview
| Name | forks |
| Type | Resource |
| Id | github.gists.forks |
Fields
The following fields are returned by SELECT queries:
- list_forks
Response
| Name | Datatype | Description |
|---|---|---|
id | string | |
node_id | string | |
comments | integer | |
comments_enabled | boolean | |
comments_url | string | |
commits_url | string | |
created_at | string | |
description | string | |
files | object | |
fork_of | object | Gist (title: Gist) |
forks | array | |
forks_url | string | |
git_pull_url | string | |
git_push_url | string | |
history | array | |
html_url | string | |
owner | object | A GitHub user. (title: Simple User) |
public | boolean | |
truncated | boolean | |
updated_at | string | |
url | string | |
user | string |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_forks | select | gist_id | per_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.
| Name | Datatype | Description |
|---|---|---|
gist_id | string | The unique identifier of the gist. |
page | integer | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
per_page | integer | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
SELECT examples
- list_forks
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 }}'
;