From 33aaa408707f3ce50738e2599cd101ac5ba3d297 Mon Sep 17 00:00:00 2001 From: Artturin Date: Mon, 7 Nov 2022 23:59:33 +0200 Subject: [PATCH] eval/nixpkgs: automatically add cross-compilation label --- ofborg/src/tasks/eval/nixpkgs.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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")] + ); } }