diff options
-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?; |