Add networks, subscribers, and watchers to github input (#6161)

This commit is contained in:
Greg
2019-07-23 16:04:51 -07:00
committed by Daniel Nelson
parent eb0f493998
commit 4e59d51844
3 changed files with 20 additions and 6 deletions
+3
View File
@@ -168,6 +168,9 @@ func getTags(repositoryInfo *github.Repository) map[string]string {
func getFields(repositoryInfo *github.Repository) map[string]interface{} {
return map[string]interface{}{
"stars": repositoryInfo.GetStargazersCount(),
"subscribers": repositoryInfo.GetSubscribersCount(),
"watchers": repositoryInfo.GetWatchersCount(),
"networks": repositoryInfo.GetNetworkCount(),
"forks": repositoryInfo.GetForksCount(),
"open_issues": repositoryInfo.GetOpenIssuesCount(),
"size": repositoryInfo.GetSize(),