From 55e869e539132116e37ce8a44a2963687c77fb4a Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Fri, 9 Feb 2018 21:22:34 -0500 Subject: [PATCH] Provide a list of attribute names which changed, closes #54 --- ofborg/src/tasks/massrebuilder.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ofborg/src/tasks/massrebuilder.rs b/ofborg/src/tasks/massrebuilder.rs index 3f7f18b..d38633a 100644 --- a/ofborg/src/tasks/massrebuilder.rs +++ b/ofborg/src/tasks/massrebuilder.rs @@ -466,8 +466,21 @@ impl worker::SimpleWorker for MassRebuildWorker { let mut rebuild_tags = RebuildTagger::new(); if let Some(attrs) = rebuildsniff.calculate_rebuild() { + let gist_url = make_gist( + &gists, + String::from("Changed Paths"), + None, + attrs + .iter() + .map(|attr| format!("{}\t{}", &attr.architecture, &attr.package)) + .collect::>() + .join("\n"), + ); + rebuild_tags.parse_attrs(attrs); + overall_status.set_url(gist_url); } + update_labels( &issue, rebuild_tags.tags_to_add(),