From: Jeremy Harris Date: Tue, 1 Nov 2022 13:25:39 +0000 (+0000) Subject: git ref in status display X-Git-Url: https://git.exim.org/buildfarm-server.git/commitdiff_plain/28b11dc13f36ebe4e6835e5593dfb3e448142d5e git ref in status display --- diff --git a/cgi-bin/show_history.pl b/cgi-bin/show_history.pl index 50b1bf3..822ec8e 100755 --- a/cgi-bin/show_history.pl +++ b/cgi-bin/show_history.pl @@ -3,6 +3,7 @@ =comment Copyright (c) 2003-2010, Andrew Dunstan +Copyright (c) 2022, The Exim Maintainers See accompanying License file for license details @@ -58,7 +59,7 @@ my $statement = qq{ and branch = ? ) SELECT (now() at time zone 'GMT')::timestamp(0) - x.snapshot as when_ago, - x.sysname, x.snapshot, x.status, x.stage, s.log_text + x.sysname, x.snapshot, x.status, x.stage, s.log_text, x.git_head_ref FROM x LEFT JOIN build_status_log s ON x.snapshot = s.snapshot AND s.log_stage = 'test-results.log' diff --git a/templates/history.tt b/templates/history.tt index b365856..84451c9 100644 --- a/templates/history.tt +++ b/templates/history.tt @@ -1,6 +1,7 @@ [%# Copyright (c) 2003-2010, Andrew Dunstan +Copyright (c) 2022, The Exim Maintainers See accompanying License file for license details @@ -50,7 +51,8 @@ See accompanying License file for license details [% BLOCK stdet %] [%- row.when_ago | replace('\s',' ') %] ago  - [% row.stage -%] + [% row.stage -%] [[% row.git_head_ref.substr(0,7) %]] +