diff --git a/CHANGELOG.md b/CHANGELOG.md index ade8418..e6e79b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## 0.1.1 + +### FIXED + +- Fixed 500 error when creating a new release + ## 0.1.0 This is the first release of `gitea-release`! diff --git a/Cargo.lock b/Cargo.lock index 2853be6..ee4bd94 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -326,7 +326,7 @@ dependencies = [ [[package]] name = "gitea-release" -version = "0.1.0" +version = "0.1.1" dependencies = [ "anyhow", "byte-unit", diff --git a/Cargo.toml b/Cargo.toml index d3d4ca3..5df99d0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gitea-release" -version = "0.1.0" +version = "0.1.1" authors = ["Christine Dodrill "] edition = "2018" diff --git a/VERSION b/VERSION index 6e8bf73..17e51c3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.0 +0.1.1 diff --git a/src/cmd/release.rs b/src/cmd/release.rs index 9141252..f2f9d6a 100644 --- a/src/cmd/release.rs +++ b/src/cmd/release.rs @@ -25,7 +25,7 @@ pub(crate) async fn run( name: rm.name.or(Some(format!("Version {}", tag))).unwrap(), prerelease: rm.pre_release, tag_name: tag.clone(), - target_commitish: tag, + target_commitish: "HEAD".into(), }; let resp = cli @@ -38,7 +38,7 @@ pub(crate) async fn run( .await?; if !resp.status().is_success() { - return Err(anyhow!("{:?}", resp.status())); + return Err(anyhow!("{:?} -> {}", resp.status(), resp.text().await?)); } Ok(())