mirror of
https://github.com/naveenrajm7/rpmbuild.git
synced 2025-07-12 04:13:50 +00:00
test response
This commit is contained in:
@ -9,15 +9,27 @@ async function download_archive(owner, repo, ref ) {
|
||||
const octokit = new Octokit();
|
||||
|
||||
const archive_format = "tarball";
|
||||
const ref = "v1.0.0"
|
||||
|
||||
octokit.repos.getArchiveLink({
|
||||
console.log("Calling API ...");
|
||||
|
||||
octokit.repos.getBranch({
|
||||
owner,
|
||||
repo,
|
||||
archive_format,
|
||||
ref
|
||||
}).then(( { data }) => {
|
||||
console.log(data)
|
||||
});
|
||||
}).then(( { data }) => {
|
||||
console.log(data);
|
||||
});
|
||||
|
||||
|
||||
// octokit.repos.getArchiveLink({
|
||||
// owner,
|
||||
// repo,
|
||||
// archive_format,
|
||||
// ref
|
||||
// }).then(( { data }) => {
|
||||
// console.log(data)
|
||||
// });
|
||||
|
||||
//console.log(`Download Location : ${downloadLocation}`);
|
||||
|
||||
|
Reference in New Issue
Block a user