diff options
author | Aleksey Kladov <[email protected]> | 2020-03-02 13:54:55 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-03-02 13:54:55 +0000 |
commit | 4eea4e1993e1f567a51c7c0f40e6f1d720566216 (patch) | |
tree | ad9f44a9a399bbed2841dbdbeaf9e0c4dc53fb95 /xtask | |
parent | dbd1698e02da46af308740aba193872e1f760490 (diff) |
Print log on release
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/lib.rs | 9 |
1 files changed, 9 insertions, 0 deletions
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:{}[] | |||
192 | 192 | ||
193 | fs2::copy(project_root().join("./docs/user/readme.adoc"), website_root.join("manual.adoc"))?; | 193 | fs2::copy(project_root().join("./docs/user/readme.adoc"), website_root.join("manual.adoc"))?; |
194 | 194 | ||
195 | let tags = run!("git tag --list"; echo = false)?; | ||
196 | let prev_tag = tags.lines().filter(|line| is_release_tag(line)).last().unwrap(); | ||
197 | |||
198 | println!("\n git log {}..HEAD --merges --reverse", prev_tag); | ||
199 | |||
195 | Ok(()) | 200 | Ok(()) |
196 | } | 201 | } |
202 | |||
203 | fn is_release_tag(tag: &str) -> bool { | ||
204 | tag.len() == "2020-02-24".len() && tag.starts_with(|c: char| c.is_ascii_digit()) | ||
205 | } | ||