Skip to main content

tags

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

Overview​

Nametags
TypeResource
Idgithub.repos.tags

Fields​

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
namestring (example: v0.1)
node_idstring
commitobject
tarball_urlstring (uri) (example: https://github.com/octocat/Hello-World/tarball/v0.1)
zipball_urlstring (uri) (example: https://github.com/octocat/Hello-World/zipball/v0.1)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tagsselectowner, repoper_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.

NameDatatypeDescription
ownerstringThe account owner of the repository. The name is not case sensitive.
repostringThe name of the repository without the .git extension. The name is not case sensitive.
pageintegerThe page number of the results to fetch. For more information, see "Using pagination in the REST API."
per_pageintegerThe number of results per page (max 100). For more information, see "Using pagination in the REST API."

SELECT examples​

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 }}'
;