version 0.5.2
This commit is contained in:
parent
e1db8c4df4
commit
8c4017a3b3
|
@ -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.
|
||||
|
|
|
@ -348,7 +348,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "gitea-release"
|
||||
version = "0.5.1"
|
||||
version = "0.5.2"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"comrak",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "gitea-release"
|
||||
version = "0.5.1"
|
||||
version = "0.5.2"
|
||||
authors = ["Christine Dodrill <me@christine.website>"]
|
||||
edition = "2018"
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue