Skip to main content

repo_pages_deployments

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

Overview

Namerepo_pages_deployments
TypeResource
Idgithub.repos.repo_pages_deployments

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
statusstringThe current status of the deployment. (deployment_in_progress, syncing_files, finished_file_sync, updating_pages, purging_cdn, deployment_cancelled, deployment_failed, deployment_content_failed, deployment_attempt_error, deployment_lost, succeed)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_pages_deploymentselectowner, repo, pages_deployment_idGets the current status of a GitHub Pages deployment.

The authenticated user must have read permission for the GitHub Pages site.
cancel_pages_deploymentinsertowner, repo, pages_deployment_idCancels a GitHub Pages deployment.

The authenticated user must have write permissions for the GitHub Pages site.

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.
pages_deployment_idThe ID of the Pages deployment. You can also give the commit SHA of the deployment.
repostringThe name of the repository without the .git extension. The name is not case sensitive.

SELECT examples

Gets the current status of a GitHub Pages deployment.

The authenticated user must have read permission for the GitHub Pages site.

SELECT
status
FROM github.repos.repo_pages_deployments
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
AND pages_deployment_id = '{{ pages_deployment_id }}' -- required
;

INSERT examples

Cancels a GitHub Pages deployment.

The authenticated user must have write permissions for the GitHub Pages site.

INSERT INTO github.repos.repo_pages_deployments (
owner,
repo,
pages_deployment_id
)
SELECT
'{{ owner }}',
'{{ repo }}',
'{{ pages_deployment_id }}'
;