github_repo_branches
Creates, updates, deletes, gets or lists a github_repo_branches resource.
Overview​
| Name | github_repo_branches |
| Type | Resource |
| Id | railway.integrations.github_repo_branches |
Fields​
The following fields are returned by SELECT queries:
- list
One row per GitHubBranch.
| Name | Datatype | Description |
|---|---|---|
name | string |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | owner, repo | Get branches for a GitHub repo that the authenticated user has access to. Backed by the Railway GraphQL query githubRepoBranches. |
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 | |
repo | string |
SELECT examples​
- list
Get branches for a GitHub repo that the authenticated user has access to. Backed by the Railway GraphQL query githubRepoBranches.
SELECT
name
FROM railway.integrations.github_repo_branches
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
;