Skip to content

gitHubLatestTag owner-repo

gitHubLatestTag calls the GitHub API to retrieve the latest tag for the given owner-repo, returning structured data as defined by the GitHub Go API bindings.

Calls to gitHubLatestTag are cached the same as githubTags, so calling gitHubLatestTag with the same owner-repo will only result in one call to the GitHub API.


{{ (gitHubLatestTag "docker/compose").Name }}


The gitHubLatestTag returns the first tag returned by the list repository tags GitHub API endpoint. Although this seems to be the most recent tag, the GitHub API documentation does not specify the order of the returned tags.