github_pr_info
Creates, updates, deletes, gets or lists a github_pr_info resource.
Overview​
| Name | github_pr_info |
| Type | Resource |
| Id | railway.integrations.github_pr_info |
Fields​
The following fields are returned by SELECT queries:
- get
One GitHubPRInfo row.
| Name | Datatype | Description |
|---|---|---|
additions | integer | |
author | string | |
body | string | |
changed_files | integer | |
checks | array | List of GitHubCheck objects |
deletions | integer | |
mergeable | boolean | |
state | string | |
title | string |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | pr_number, service_id | Get 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.
| Name | Datatype | Description |
|---|---|---|
pr_number | integer | |
service_id | string |
SELECT examples​
- get
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
;