Skip to main content

releases_latest

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

Overview

Namereleases_latest
TypeResource
Idgithub.repos.releases_latest

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
idinteger
namestring
node_idstring
tag_namestringThe name of the tag. (example: v1.0.0)
assetsarray
assets_urlstring (uri)
authorobjectA GitHub user. (title: Simple User)
bodystring
body_htmlstring
body_textstring
created_atstring (date-time)
discussion_urlstring (uri)The URL of the release discussion.
draftbooleantrue to create a draft (unpublished) release, false to create a published one.
html_urlstring (uri)
immutablebooleanWhether or not the release is immutable.
mentions_countinteger
prereleasebooleanWhether to identify the release as a prerelease or a full release.
published_atstring (date-time)
reactionsobject (title: Reaction Rollup)
tarball_urlstring (uri)
target_commitishstringSpecifies the commitish value that determines where the Git tag is created from. (example: master)
updated_atstring (date-time)
upload_urlstring
urlstring (uri)
zipball_urlstring (uri)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_latest_releaseselectowner, repoView the latest published full release for the repository.

The latest release is the most recent non-prerelease, non-draft release, sorted by the created_at attribute. The created_at attribute is the date of the commit used for the release, and not the date when the release was drafted or published.

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.

SELECT examples

View the latest published full release for the repository.

The latest release is the most recent non-prerelease, non-draft release, sorted by the created_at attribute. The created_at attribute is the date of the commit used for the release, and not the date when the release was drafted or published.

SELECT
id,
name,
node_id,
tag_name,
assets,
assets_url,
author,
body,
body_html,
body_text,
created_at,
discussion_url,
draft,
html_url,
immutable,
mentions_count,
prerelease,
published_at,
reactions,
tarball_url,
target_commitish,
updated_at,
upload_url,
url,
zipball_url
FROM github.repos.releases_latest
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
;