diff options
-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 | } | ||