pare-down-functionality #7
|
@ -22,15 +22,15 @@ pub(crate) async fn run(
|
||||||
}
|
}
|
||||||
|
|
||||||
let desc = changelog::read(fname, tag.clone())?;
|
let desc = changelog::read(fname, tag.clone())?;
|
||||||
|
|
||||||
let cli = gitea::Client::new(common.server, common.token, crate::APP_USER_AGENT)?;
|
let cli = gitea::Client::new(common.server, common.token, crate::APP_USER_AGENT)?;
|
||||||
|
let vtag = format!("v{}", tag);
|
||||||
|
|
||||||
let cr = gitea::CreateRelease {
|
let cr = gitea::CreateRelease {
|
||||||
body: desc,
|
body: desc,
|
||||||
draft: rm.draft,
|
draft: rm.draft,
|
||||||
name: rm.name.or(Some(format!("Version {}", tag))).unwrap(),
|
name: rm.name.or(Some(format!("Version {}", tag))).unwrap(),
|
||||||
prerelease: rm.pre_release,
|
prerelease: rm.pre_release,
|
||||||
tag_name: tag.clone(),
|
tag_name: vtag,
|
||||||
target_commitish: "HEAD".into(),
|
target_commitish: "HEAD".into(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue