downloadGitHubRepo
Download a GitHub repository using the API.
Resolves the latest commit hash of the branch first and returns "not_modified" when it matches ifModifiedSince. target supports {hash}. The .zip archive is cached in target. Returns { downloadType: "github", rootDir, contentsDir, hash }.
Old directories are removed by default; set DownloadGitHubRepoOptions.cleanupOldDirectories to false to keep them. DownloadGitHubRepoOptions.cleanupOldFiles defaults to false.