diff --git a/ofborg/src/tasks/eval/nixpkgs.rs b/ofborg/src/tasks/eval/nixpkgs.rs index a3c4c4d..c2c7fbc 100644 --- a/ofborg/src/tasks/eval/nixpkgs.rs +++ b/ofborg/src/tasks/eval/nixpkgs.rs @@ -27,10 +27,11 @@ use uuid::Uuid; static MAINTAINER_REVIEW_MAX_CHANGED_PATHS: usize = 64; -const TITLE_LABELS: [(&str, &str); 3] = [ +const TITLE_LABELS: [(&str, &str); 4] = [ ("bsd", "6.topic: bsd"), ("darwin", "6.topic: darwin"), ("macos", "6.topic: darwin"), + ("cross", "6.topic: cross-compilation"), ]; fn label_from_title(title: &str) -> Vec { @@ -718,5 +719,13 @@ mod tests { ] .sort() ); + assert_eq!( + label_from_title("pkg: fix cross"), + vec![String::from("6.topic: cross-compilation")] + ); + assert_eq!( + label_from_title("pkg: fix cross-compilation"), + vec![String::from("6.topic: cross-compilation")] + ); } }