new: drive the forge hosts and tarball templates from data/forges.yml

This commit is contained in:
2026-09-18 13:30:42 +02:00
parent 7601524b7c
commit 12407c8eac
6 changed files with 182 additions and 78 deletions
+2 -8
View File
@@ -1295,10 +1295,7 @@ mod tests {
fn orig_origin_choices_preorder_by_detection() {
use crate::new::origin::Forge;
let tagged_forge = GitOrigin {
forge: Some(Forge::GitHub {
owner: "foo".into(),
repo: "bar".into(),
}),
forge: Some(Forge::parse("https://github.com/foo/bar").unwrap()),
head_tag: Some("v1.4.0".into()),
..Default::default()
};
@@ -1362,10 +1359,7 @@ mod tests {
let mut release = quilt.clone();
release.orig = Some(options::OrigOrigin::Release {
tag: "v0.14.0".to_string(),
forge: crate::new::origin::Forge::GitLab {
owner: "foo".into(),
repo: "bar".into(),
},
forge: crate::new::origin::Forge::parse("https://gitlab.com/foo/bar").unwrap(),
});
let text = summary_text(&release, None);
assert!(