diff options
author | Cyborus <cyborus@noreply.codeberg.org> | 2024-12-12 19:56:06 +0100 |
---|---|---|
committer | Cyborus <cyborus@noreply.codeberg.org> | 2024-12-12 19:56:06 +0100 |
commit | f5ca7dce79cc978e4146818cce784b8b76aafb93 (patch) | |
tree | 4b1032fa43c13c7e901dd4e0cfc875ec817ea0ac | |
parent | Merge pull request 'use `Repository::discover` instead of `open`' (#144) from... (diff) | |
parent | chore: update `forgejo-api` to 0.5.0 (diff) | |
download | forgejo-cli-f5ca7dce79cc978e4146818cce784b8b76aafb93.tar.xz forgejo-cli-f5ca7dce79cc978e4146818cce784b8b76aafb93.zip |
Merge pull request 'update forgejo-api' (#145) from update-api into main
Reviewed-on: https://codeberg.org/Cyborus/forgejo-cli/pulls/145
-rw-r--r-- | Cargo.lock | 4 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/release.rs | 6 |
3 files changed, 7 insertions, 5 deletions
@@ -580,9 +580,9 @@ checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" [[package]] name = "forgejo-api" -version = "0.4.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f682f4a0bd862be530f229a04ebca8b7a3842066b00cc7c0a915c5f1d2a8812d" +checksum = "4f8d2679a21200688ea04a8c79ecb70b91dcded60c9eded2549d8cee94859484" dependencies = [ "base64ct", "bytes", @@ -25,7 +25,7 @@ comrak = "0.26.0" crossterm = "0.27.0" directories = "5.0.1" eyre = "0.6.12" -forgejo-api = "0.4.1" +forgejo-api = "0.5.0" futures = "0.3.30" git2 = "0.19.0" hyper = "1.4.1" diff --git a/src/release.rs b/src/release.rs index 0b72533..60a1abf 100644 --- a/src/release.rs +++ b/src/release.rs @@ -267,7 +267,8 @@ async fn create_release( repo.owner(), repo.name(), id, - tokio::fs::read(file).await?, + Some(tokio::fs::read(file).await?), + None, query, ) .await?; @@ -473,7 +474,8 @@ async fn create_asset( repo.owner(), repo.name(), id, - tokio::fs::read(file).await?, + Some(tokio::fs::read(file).await?), + None, query, ) .await?; |