Skip to content

Commit b711e28

Browse files
committed
Also show git message
1 parent 8aa1f7c commit b711e28

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

StyleCop.Analyzers.Status.Web/Models/MainViewModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ public class GitInformation
1616
{
1717
public string Sha { get; set; }
1818

19+
public string Message { get; set; }
20+
1921
public Signature Author { get; set; }
2022

2123
public Signature Committer { get; set; }

StyleCop.Analyzers.Status.Web/Views/Home/Index.cshtml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
@helper GetDiagnosticColorClass(StyleCopDiagnostic diagnostic)
77
{
8-
if (diagnostic.HasImplementation)
8+
if (diagnostic.HasImplementation && diagnostic.Status != "DisabledNoTests")
99
{
1010
<text>success</text>
1111
}
@@ -111,8 +111,12 @@ else
111111
<h3>Commit information</h3>
112112
<table>
113113
<tr>
114-
<td>Current commit</td>
115-
<td>@Model.Git.Sha</td>
114+
<td>Sha1</td>
115+
<td><a href="https://github.com/DotNetAnalyzers/StyleCopAnalyzers/tree/@Model.Git.Sha">@Model.Git.Sha</a></td>
116+
</tr>
117+
<tr>
118+
<td>Message</td>
119+
<td>@Model.Git.Message</td>
116120
</tr>
117121
<tr>
118122
<td>Author</td>

0 commit comments

Comments
 (0)