page_build_latest
Creates, updates, deletes, gets or lists a page_build_latest resource.
Overview
| Name | page_build_latest |
| Type | Resource |
| Id | github.repos.page_build_latest |
Fields
The following fields are returned by SELECT queries:
- get_latest_pages_build
Response
| Name | Datatype | Description |
|---|---|---|
commit | string | |
created_at | string (date-time) | |
duration | integer | |
error | object | |
pusher | object | A GitHub user. (title: Simple User) |
status | string | |
updated_at | string (date-time) | |
url | string (uri) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_latest_pages_build | select | owner, repo | 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. |
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 |
|---|---|---|
owner | string | The account owner of the repository. The name is not case sensitive. |
repo | string | The name of the repository without the .git extension. The name is not case sensitive. |
SELECT examples
- get_latest_pages_build
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
;