Skip to main content

last_release

Function last_release 

Source
pub fn last_release(root: &Path, objects: &[Object]) -> Option<LastRelease>
Expand description

The release analyze measures from when no --since is given, named without reading its surface — None when nothing was published.

use majordomus_cli::release::compat::last_release;
let dir = tempfile::tempdir().unwrap();
assert_eq!(last_release(dir.path(), &[]), None);