From 020fd572b98b53eb82750cc148c42b68c6d0a315 Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Fri, 5 Nov 2021 23:16:50 -0700 Subject: [PATCH] eval-report: Linkify more package names Package names in the "problematic dependencies" section are hyperlinked to their corresponding hydra build URL --- lib/report/eval.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/report/eval.rb b/lib/report/eval.rb index 7d9335b..7df5ef0 100644 --- a/lib/report/eval.rb +++ b/lib/report/eval.rb @@ -69,11 +69,15 @@ def self.failure_propagation(evals) path = reduce_paths(step[:what]) md << "" md << "" - md << "
#{platform} #{path}" + md << if failures.first[:build_id] != "Aborted" then + "
#{platform} [#{path}](https://hydra.nixos.org/build/#{failures.first[:build_id]})" + else + "
#{platform} #{path}" + end md << "
    " md.concat (failures.map do |failure| propagates_to = failure[:propagates_to] - "
  • #{propagates_to[:name]}
  • " + "
  • [#{propagates_to[:name]}](#{propagates_to[:build_url]})
  • " end .uniq) md << "
"