tags
Creates, updates, deletes, gets or lists a tags resource.
Overview
| Name | tags |
| Type | Resource |
| Id | github.repos.tags |
Fields
The following fields are returned by SELECT queries:
- list_tags
Response
| Name | Datatype | Description |
|---|---|---|
name | string | (example: v0.1) |
node_id | string | |
commit | object | |
tarball_url | string (uri) | (example: https://github.com/octocat/Hello-World/tarball/v0.1) |
zipball_url | string (uri) | (example: https://github.com/octocat/Hello-World/zipball/v0.1) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_tags | select | owner, repo | per_page, page |
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 | The account owner of the repository. The name is not case sensitive. |
repo | string | The name of the repository without the .git extension. The name is not case sensitive. |
page | integer | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
per_page | integer | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
SELECT examples
- list_tags
Response
SELECT
name,
node_id,
commit,
tarball_url,
zipball_url
FROM github.repos.tags
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
AND per_page = '{{ per_page }}'
AND page = '{{ page }}'
;