Skip to content

Commit

Permalink
🐛 fix wrong variable using in github report format
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhupesh-V committed Jul 4, 2022
1 parent b9a736c commit b2bf500
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions report/formats/report_github.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h3>
<ol>
{{- range $k, $v := $.ValidFiles}}
{{- range $url := $v}}
{{- if ne (index (index $.ReLinks $url) "message") "OK"}}
{{- if ne (index (index $.CompleteHealthData $url) "message") "OK"}}
<li>
<p class="filepath"><b><a href="{{$.RepoURL}}/blob/{{$.BranchName}}/{{$k}}">{{$k}}</a></b></p>
<table style="width:100%;margin-left: 0px;">
Expand All @@ -17,11 +17,11 @@ <h3>
<th>Message</th>
<th>Response Time</th>
</tr>
<tr class="c{{index (index $.ReLinks $url) "code" -}}">
<tr class="c{{index (index $.CompleteHealthData $url) "code" -}}">
<td><a href="{{$url}}">{{$url}}</a></td>
<td align="center">{{index (index $.ReLinks $url) "code"}}</td>
<td align="center">{{index (index $.ReLinks $url) "message"}}</td>
<td align="center">{{index (index $.ReLinks $url) "response_time"}}</td>
<td align="center">{{index (index $.CompleteHealthData $url) "code"}}</td>
<td align="center">{{index (index $.CompleteHealthData $url) "message"}}</td>
<td align="center">{{index (index $.CompleteHealthData $url) "response_time"}}</td>
</tr>
</table>
</li>
Expand All @@ -44,11 +44,11 @@ <h3>
<th>Response Time</th>
</tr>
{{- range $url := $v}}
<tr class="c{{index (index $.ReLinks $url) "code" -}}">
<tr class="c{{index (index $.CompleteHealthData $url) "code" -}}">
<td><a href="{{$url}}">{{$url}}</a></td>
<td align="center">{{index (index $.ReLinks $url) "code"}}</td>
<td align="center">{{index (index $.ReLinks $url) "message"}}</td>
<td align="center">{{index (index $.ReLinks $url) "response_time"}}</td>
<td align="center">{{index (index $.CompleteHealthData $url) "code"}}</td>
<td align="center">{{index (index $.CompleteHealthData $url) "message"}}</td>
<td align="center">{{index (index $.CompleteHealthData $url) "response_time"}}</td>
</tr>
{{- end}}
</table>
Expand All @@ -57,5 +57,5 @@ <h3>
</ol>
</details>

<i><p>Report Generated at {{.Time}} on {{.Date}}</p></i>
<i><p>Report Generated at {{.ReportMetaData.Time}} on {{.ReportMetaData.Date}}</p></i>
<i><p><a href="https://github.com/Bhupesh-V/areyouok/issues/new/choose"><b>🐞 Report Bug </b></a> | <a href="https://bhupesh-v.github.io/about/#-support"><b>💰 Support</b></a> | <a href="https://github.com/Bhupesh-V/areyouok"><b>⭐ Give us a Star</b></a></p></i>

0 comments on commit b2bf500

Please sign in to comment.