Skip to main content

github_repo_branches

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

Overview​

Namegithub_repo_branches
TypeResource
Idrailway.integrations.github_repo_branches

Fields​

The following fields are returned by SELECT queries:

One row per GitHubBranch.

NameDatatypeDescription
namestring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectowner, repoGet 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.

NameDatatypeDescription
ownerstring
repostring

SELECT examples​

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
;