Skip to main content

commits

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

Overview

Namecommits
TypeResource
Idgithub.gists.commits

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
change_statusobject
committed_atstring (date-time) (example: 2010-04-14T02:15:15Z)
urlstring (uri) (example: https://api.github.com/gists/aa5a315d61ae9438b18d/57a7f021a713b1c5a6a199b54cc514735d2d462f)
userobjectA GitHub user. (title: Simple User)
versionstring (example: 57a7f021a713b1c5a6a199b54cc514735d2d462f)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_commitsselectgist_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
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 }}'
;