put ResolvedRepo back in...

This commit is contained in:
Jeremy Rans
2018-12-15 01:56:18 -06:00
parent bc2d93b8a4
commit 8303ff5c02

View File

@@ -69,6 +69,7 @@ type checksResp struct {
Files int `json:"files"`
Issues int `json:"issues"`
Repo string `json:"repo"`
ResolvedRepo string `json:"resolvedRepo"`
LastRefresh time.Time `json:"last_refresh"`
LastRefreshFormatted string `json:"formatted_last_refresh"`
LastRefreshHumanized string `json:"humanized_last_refresh"`
@@ -106,6 +107,7 @@ func newChecksResp(repo string, forceRefresh bool) (checksResp, error) {
Files: checkResult.Files,
Issues: checkResult.Issues,
Repo: repo,
ResolvedRepo: repoRoot.Repo,
LastRefresh: t,
LastRefreshFormatted: t.Format(time.UnixDate),
LastRefreshHumanized: humanize.Time(t),