branches: add python-updates
This commit is contained in:
parent
50bed4a4a9
commit
469532fe7c
|
@ -8,7 +8,8 @@ use std::collections::BTreeMap;
|
||||||
use once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
use regex::{Regex, RegexSet};
|
use regex::{Regex, RegexSet};
|
||||||
|
|
||||||
const NEXT_BRANCH_TABLE: [(&str, &str); 11] = [
|
const NEXT_BRANCH_TABLE: [(&str, &str); 12] = [
|
||||||
|
(r"\Apython-updates\z", "staging"),
|
||||||
(r"\Astaging\z", "staging-next"),
|
(r"\Astaging\z", "staging-next"),
|
||||||
(r"\Astaging-next\z", "master"),
|
(r"\Astaging-next\z", "master"),
|
||||||
(r"\Astaging-next-([\d.]+)\z", "release-$1"),
|
(r"\Astaging-next-([\d.]+)\z", "release-$1"),
|
||||||
|
@ -109,6 +110,12 @@ pub fn branch_hydra_link(branch: &str) -> Option<String> {
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn python_updates() {
|
||||||
|
let res = next_branches("python-updates");
|
||||||
|
assert_eq!(res, vec!["staging"]);
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn staging_18_03() {
|
fn staging_18_03() {
|
||||||
let branch = "staging-18.03";
|
let branch = "staging-18.03";
|
||||||
|
|
Loading…
Reference in a new issue