From 4eea4e1993e1f567a51c7c0f40e6f1d720566216 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 2 Mar 2020 14:54:55 +0100 Subject: Print log on release --- xtask/src/lib.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'xtask') diff --git a/xtask/src/lib.rs b/xtask/src/lib.rs index e5da726ac..55cdee491 100644 --- a/xtask/src/lib.rs +++ b/xtask/src/lib.rs @@ -192,5 +192,14 @@ Release: release:{}[] 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(()) } + +fn is_release_tag(tag: &str) -> bool { + tag.len() == "2020-02-24".len() && tag.starts_with(|c: char| c.is_ascii_digit()) +} -- cgit v1.2.3