commits
Creates, updates, deletes, gets or lists a commits resource.
Overview
| Name | commits |
| Type | Resource |
| Id | github.gists.commits |
Fields
The following fields are returned by SELECT queries:
- list_commits
Response
| Name | Datatype | Description |
|---|---|---|
change_status | object | |
committed_at | string (date-time) | (example: 2010-04-14T02:15:15Z) |
url | string (uri) | (example: https://api.github.com/gists/aa5a315d61ae9438b18d/57a7f021a713b1c5a6a199b54cc514735d2d462f) |
user | object | A GitHub user. (title: Simple User) |
version | string | (example: 57a7f021a713b1c5a6a199b54cc514735d2d462f) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_commits | 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_commits
Response
SELECT
change_status,
committed_at,
url,
user,
version
FROM github.gists.commits
WHERE gist_id = '{{ gist_id }}' -- required
AND per_page = '{{ per_page }}'
AND page = '{{ page }}'
;