RepositoryBranches
Lists information about branches in repositories.
View-Specific Information
Select
The driver uses the GitHub API to process WHERE clause conditions that are built with the following columns and operators.
- Name supports the =, IN comparison operators.
- RepositoryName supports the =, IN comparison operators. When querying RepositoryBranches, applying this filter is recommended to improve query efficiency.
- OwnerLogin supports the =, IN comparison operators.
For example, the following queries are processed server-side:
SELECT * FROM [RepositoryBranches]
SELECT * FROM [RepositoryBranches] WHERE [Name] = 'Val1'
SELECT * FROM [RepositoryBranches] WHERE [RepositoryName] = 'Val1'
SELECT * FROM [RepositoryBranches] WHERE [OwnerLogin] = 'Val1'
The driver processes other filters client-side within the driver.
Columns
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | String | True |
The ID of the branch. | |
| Name | String | True |
The branch name. | |
| Prefix | String | True |
The branch prefix. | |
| TargetId | String | True |
The ID of the object the ref points to. | |
| TargetOid | String | False |
The Git object ID of the object the ref points to. | |
| RepositoryId | String | True |
The ID of the repository. | |
| RepositoryName | String | True |
The name of the repository. | |
| OwnerLogin | String | True |
The login field of a user or organization. |
Pseudo-Columns
Pseudo column fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.
| Name | Type | Description |
| Force | Bool |
Permit updates of branch refs that are not fast-forwards. |