Getting last commit hash for GitHub repository
This tutorial is part of package functions documentation in Iconify Tools.
Function getGitHubRepoHash() retrieves last commit hash from remote GitHub repository using GitHub API.
It is used by downloadGitHubRepo() to check if repository has been updated and to generate download link for archive.
Usage
Function has the following parameter:
- options, DownloadGitHubRepoOptions. Options, same as in downloadGitHubRepo() function (only properties relevant to accessing GitHub API are used).
Function returns last commit hash as string.
Function is asynchronous.