From b2e34d91d99af5b93d98b40d441a45f57d66123f Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Sat, 27 Jan 2018 14:41:00 -0500 Subject: [PATCH] Post a link to the full log in the build result --- php/poster.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/php/poster.php b/php/poster.php index 6de42cf..3530b59 100644 --- a/php/poster.php +++ b/php/poster.php @@ -63,12 +63,14 @@ function reply_to_issue($body, $output, $success, $system) { echo $output; echo "\n\n"; + $fullloglink = strtolower("https://logs.nix.gsc.io/?key=$owner/$repo.$num"); + $client->api('pull_request')->reviews()->create( $owner, $repo, $num, array( - 'body' => "$passfail for system: $system\n\n```\n$output\n```", + 'body' => "$passfail for system: $system\n\n```\n$output\n```\nFull log: $fullloglink\n", 'event' => $event, 'commit_id' => $sha, ));