summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock6
-rw-r--r--Cargo.toml4
-rw-r--r--flake.nix2
-rw-r--r--src/release.rs6
4 files changed, 10 insertions, 8 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 51cffcf..08e1d9c 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",
@@ -599,7 +599,7 @@ dependencies = [
[[package]]
name = "forgejo-cli"
-version = "0.1.1"
+version = "0.2.0"
dependencies = [
"auth-git2",
"base64ct",
diff --git a/Cargo.toml b/Cargo.toml
index aba4c63..15532e3 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "forgejo-cli"
-version = "0.1.1"
+version = "0.2.0"
edition = "2021"
license = "Apache-2.0 OR MIT"
repository = "https://codeberg.org/Cyborus/forgejo-cli/"
@@ -26,7 +26,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/flake.nix b/flake.nix
index bd2bef1..9a78e32 100644
--- a/flake.nix
+++ b/flake.nix
@@ -11,7 +11,7 @@
rec {
packages.forgejo-cli = pkgs.rustPlatform.buildRustPackage {
pname = "forgejo-cli";
- version = "0.1.1";
+ version = "0.2.0";
src = pkgs.lib.cleanSource ./.;
cargoLock.lockFile = ./Cargo.lock;
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?;