RepositoryLabels
Lists information about labels 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 '=' comparison operator.
- RepositoryName supports the '=' comparison operator.
- OwnerLogin supports the '=' comparison operator.
For example, the following queries are processed server-side:
SELECT * FROM [RepositoryLabels]
SELECT * FROM [RepositoryLabels] WHERE [Name] = 'Val1'
SELECT * FROM [RepositoryLabels] WHERE [RepositoryName] = 'Val1'
SELECT * FROM [RepositoryLabels] WHERE [OwnerLogin] = 'Val1'
The driver processes other filters client-side within the driver.
The driver uses the GitHub API to process ORDER BY clause conditions that are built with the following columns:
- Name
- CreatedAt
ORDER BY is processed server-side only when the query is scoped to a single parent, as shown below. Otherwise the driver processes the ordering client-side.
SELECT * FROM [RepositoryLabels] WHERE [RepositoryName] = 'Val1' AND [OwnerLogin] = 'Val1' ORDER BY [Name]
SELECT * FROM [RepositoryLabels] WHERE [RepositoryName] = 'Val1' AND [OwnerLogin] = 'Val1' ORDER BY [CreatedAt]
The driver uses client-side processing when ordering by any other columns. This impacts performance.
Columns
| Name | Type | References | OrderBySupport | Description |
| Id [KEY] | String | The ID of the label. | ||
| Name | String | The name of the label. | ||
| Description | String | A brief description of this label. | ||
| Color | String | Identifies the label color. | ||
| IsDefault | Bool | Indicates whether or not this is a default label. | ||
| ResourcePath | String | The HTTP path for this label. | ||
| Url | String | The HTTP URL for this label. | ||
| UpdatedAt | Datetime | Identifies the date and time when the label was last updated. | ||
| CreatedAt | Datetime | Identifies the date and time when the label was created. | ||
| RepositoryId | String | The ID of the repository. | ||
| RepositoryName | String | The name of the repository. | ||
| OwnerLogin | String | The login field of a user or organization. |