add star count to status output

This commit is contained in:
Alvaro Muñoz
2023-03-29 10:31:01 +02:00
parent 376db37e8f
commit c51c66e52d

View File

@@ -694,6 +694,7 @@ Usage:
Nwo string `json:"nwo"`
Count int `json:"count"`
RunId int `json:"run_id"`
Stars int `json:"stars"`
}
type Results struct {
Runs []RunStatus `json:"runs"`
@@ -746,6 +747,7 @@ Usage:
Nwo: repoInfo["full_name"].(string),
Count: int(repo.(map[string]interface{})["result_count"].(float64)),
RunId: run.Id,
Stars: int(repoInfo["stargazers_count"].(float64)),
})
}
} else if repo.(map[string]interface{})["analysis_status"].(string) == "failed" {