summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock4
-rw-r--r--Cargo.toml2
-rw-r--r--src/release.rs6
3 files changed, 7 insertions, 5 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 08759eb..001a68e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -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",
diff --git a/Cargo.toml b/Cargo.toml
index c0815e5..cd117b9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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?;