diff options
author | Cyborus <cyborus@noreply.codeberg.org> | 2024-01-02 00:46:44 +0100 |
---|---|---|
committer | Cyborus <cyborus@noreply.codeberg.org> | 2024-01-02 00:46:44 +0100 |
commit | 9573940f61d3c7934fb29d2744f5de583c52d9bf (patch) | |
tree | e758222b8bc5d6cf78531e202f655f7f95705235 /src/release.rs | |
parent | Merge pull request 'fix key including newline when read from stdin' (#34) fro... (diff) | |
parent | update `forgejo-api` (diff) | |
download | forgejo-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.rs | 4 |
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 => { |