Print log on release

This commit is contained in:
Aleksey Kladov 2020-03-02 14:54:55 +01:00
parent dbd1698e02
commit 4eea4e1993

View file

@ -192,5 +192,14 @@ Release: release:{}[]
fs2::copy(project_root().join("./docs/user/readme.adoc"), website_root.join("manual.adoc"))?; fs2::copy(project_root().join("./docs/user/readme.adoc"), website_root.join("manual.adoc"))?;
let tags = run!("git tag --list"; echo = false)?;
let prev_tag = tags.lines().filter(|line| is_release_tag(line)).last().unwrap();
println!("\n git log {}..HEAD --merges --reverse", prev_tag);
Ok(()) Ok(())
} }
fn is_release_tag(tag: &str) -> bool {
tag.len() == "2020-02-24".len() && tag.starts_with(|c: char| c.is_ascii_digit())
}