version 0.5.2
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Cadey Ratio 2020-08-08 16:16:43 -04:00
parent e1db8c4df4
commit 8c4017a3b3
5 changed files with 12 additions and 6 deletions

View File

@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased
## 0.5.2
Detect tags better.
## 0.5.1
Initialize `pretty_env_logger` on app boot. Oops.

2
Cargo.lock generated
View File

@ -348,7 +348,7 @@ dependencies = [
[[package]]
name = "gitea-release"
version = "0.5.1"
version = "0.5.2"
dependencies = [
"anyhow",
"comrak",

View File

@ -1,6 +1,6 @@
[package]
name = "gitea-release"
version = "0.5.1"
version = "0.5.2"
authors = ["Christine Dodrill <me@christine.website>"]
edition = "2018"

View File

@ -1 +1 @@
0.5.1
0.5.2

View File

@ -10,15 +10,17 @@ pub async fn run(
) -> Result<()> {
let repo = git2::Repository::open(".")?;
let tag = tag.unwrap_or(version::read_version("VERSION".into())?);
let vtag = format!("v{}", tag);
if git::has_tag(&repo, tag.clone())? {
if git::has_tag(&repo, vtag.clone())? {
return Err(anyhow::anyhow!("what"));
}
let desc = changelog::read(fname, tag.clone())?;
let cli = gitea::Client::new(common.server, common.token, crate::APP_USER_AGENT)?;
let vtag = format!("v{}", tag);
let repo = cli.get_repo(common.owner.clone(), common.repo.clone()).await?;
let repo = cli
.get_repo(common.owner.clone(), common.repo.clone())
.await?;
let cr = gitea::CreateRelease {
body: desc,