test response

This commit is contained in:
Naveenraj M
2020-03-29 18:01:13 +05:30
parent 932e1c461e
commit 596f60a09f

View File

@ -9,15 +9,27 @@ async function download_archive(owner, repo, ref ) {
const octokit = new Octokit(); const octokit = new Octokit();
const archive_format = "tarball"; const archive_format = "tarball";
const ref = "v1.0.0"
octokit.repos.getArchiveLink({ console.log("Calling API ...");
octokit.repos.getBranch({
owner, owner,
repo, repo,
archive_format,
ref ref
}).then(( { data }) => { }).then(( { data }) => {
console.log(data) console.log(data);
}); });
// octokit.repos.getArchiveLink({
// owner,
// repo,
// archive_format,
// ref
// }).then(( { data }) => {
// console.log(data)
// });
//console.log(`Download Location : ${downloadLocation}`); //console.log(`Download Location : ${downloadLocation}`);