Include git SHA with GitLab version

This commit is contained in:
Ash McKenzie 2018-04-12 13:33:38 +10:00
parent 947ed8b882
commit a3234f410e
3 changed files with 12 additions and 0 deletions

View File

@ -126,6 +126,7 @@
GitLab
%span.pull-right
= Gitlab::VERSION
= "(#{Gitlab::REVISION})"
%p
GitLab Shell
%span.pull-right

View File

@ -0,0 +1,5 @@
---
title: git SHA is now displayed alongside the GitLab version on the Admin Dashboard
merge_request:
author:
type: added

View File

@ -18,4 +18,10 @@ describe 'admin/dashboard/index.html.haml' do
expect(rendered).to have_content 'GitLab Workhorse'
expect(rendered).to have_content Gitlab::Workhorse.version
end
it "includes revision of GitLab" do
render
expect(rendered).to have_content "#{Gitlab::VERSION} (#{Gitlab::REVISION})"
end
end