Skip to content

Getting last commit hash for GitLab repository

This tutorial is part of package functions documentation in Iconify Tools.

Function getGitLabRepoHash() retrieves last commit hash from remote GitLab repository using GitLab API.

It is used by downloadGitLabRepo() to check if repository has been updated and to generate download link for archive.

Usage

Function has the following parameter:

  • options, DownloadGitLabRepoOptions. Options, same as in downloadGitLabRepo() function (only properties relevant to accessing GitLab API are used).

Function returns last commit hash as string.

Function is asynchronous.

Released under the Apache 2.0 License.