Post a link to the full log in the build result

This commit is contained in:
Graham Christensen 2018-01-27 14:41:00 -05:00
parent cf3bbbf6ca
commit b2e34d91d9
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -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,
));