summaryrefslogtreecommitdiffstats
path: root/src/release.rs
diff options
context:
space:
mode:
authorCyborus <cyborus@noreply.codeberg.org>2024-01-02 00:46:44 +0100
committerCyborus <cyborus@noreply.codeberg.org>2024-01-02 00:46:44 +0100
commit9573940f61d3c7934fb29d2744f5de583c52d9bf (patch)
treee758222b8bc5d6cf78531e202f655f7f95705235 /src/release.rs
parentMerge pull request 'fix key including newline when read from stdin' (#34) fro... (diff)
parentupdate `forgejo-api` (diff)
downloadforgejo-cli-0.0.2.tar.xz
forgejo-cli-0.0.2.zip
Merge pull request 'update `forgejo-api`' (#35) from update-api into mainv0.0.2
Reviewed-on: https://codeberg.org/Cyborus/forgejo-cli/pulls/35
Diffstat (limited to 'src/release.rs')
-rw-r--r--src/release.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/release.rs b/src/release.rs
index bbd1225..9661fb5 100644
--- a/src/release.rs
+++ b/src/release.rs
@@ -400,11 +400,11 @@ async fn download_asset(
let release = find_release(repo, api, &release).await?;
let file = match &*asset {
"source.zip" => {
- api.download_release_zip(repo.owner(), repo.name(), release.id)
+ api.download_zip_archive(repo.owner(), repo.name(), &release.tag_name)
.await?
}
"source.tar.gz" => {
- api.download_release_tarball(repo.owner(), repo.name(), release.id)
+ api.download_tarball_archive(repo.owner(), repo.name(), &release.tag_name)
.await?
}
name => {