Skip to main content

page_build_latest

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

Overview

Namepage_build_latest
TypeResource
Idgithub.repos.page_build_latest

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
commitstring
created_atstring (date-time)
durationinteger
errorobject
pusherobjectA GitHub user. (title: Simple User)
statusstring
updated_atstring (date-time)
urlstring (uri)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_latest_pages_buildselectowner, repoGets information about the single most recent build of a GitHub Pages site.

OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.

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
ownerstringThe account owner of the repository. The name is not case sensitive.
repostringThe name of the repository without the .git extension. The name is not case sensitive.

SELECT examples

Gets information about the single most recent build of a GitHub Pages site.

OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.

SELECT
commit,
created_at,
duration,
error,
pusher,
status,
updated_at,
url
FROM github.repos.page_build_latest
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
;