Skip to main content

workflow_run_reviews

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

Overview

Nameworkflow_run_reviews
TypeResource
Idgithub.actions.workflow_run_reviews

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
commentstringThe comment submitted with the deployment review (example: Ship it!)
environmentsarrayThe list of environments that were approved or rejected
statestringWhether deployment to the environment(s) was approved or rejected or pending (with comments) (approved, rejected, pending) (example: approved)
userobjectA GitHub user. (title: Simple User)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_reviews_for_runselectowner, repo, run_idAnyone with read access to the repository can use this endpoint.

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

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.
run_idintegerThe unique identifier of the workflow run.

SELECT examples

Anyone with read access to the repository can use this endpoint.

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

SELECT
comment,
environments,
state,
user
FROM github.actions.workflow_run_reviews
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
AND run_id = '{{ run_id }}' -- required
;