Skip to main content

github_pr_info

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

Overview​

Namegithub_pr_info
TypeResource
Idrailway.integrations.github_pr_info

Fields​

The following fields are returned by SELECT queries:

One GitHubPRInfo row.

NameDatatypeDescription
additionsinteger
authorstring
bodystring
changed_filesinteger
checksarrayList of GitHubCheck objects
deletionsinteger
mergeableboolean
statestring
titlestring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectpr_number, service_idGet info for a GitHub pull request. Backed by the Railway GraphQL query githubPRInfo.

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
pr_numberinteger
service_idstring

SELECT examples​

Get info for a GitHub pull request. Backed by the Railway GraphQL query githubPRInfo.

SELECT
additions,
author,
body,
changed_files,
checks,
deletions,
mergeable,
state,
title
FROM railway.integrations.github_pr_info
WHERE pr_number = '{{ pr_number }}' -- required
AND service_id = '{{ service_id }}' -- required
;