forked from the-distro/ofborg
eval/nixpkgs: automatically add cross-compilation label
This commit is contained in:
parent
a328bf8aeb
commit
33aaa40870
|
@ -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<String> {
|
||||
|
@ -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")]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue