ubclaunchpad / rocket

:rocket: Slack bot, team management, and onboarding system for UBC Launch Pad - superseded by Rocket2: https://github.com/ubclaunchpad/rocket2
2 stars 0 forks source link

Add /api/stats endpoint and github org stats generation #91

Closed bobheadxi closed 5 years ago

bobheadxi commented 6 years ago

I have some things in mind for the website

type OrgStats struct {
    Repositories int            `json:"repositories"`
    Stargazers   int            `json:"stargazers"`
    Topics       map[string]int `json:"topics"`
    Languages    map[string]int `json:"languages"`

    CommitTotal int               `json:"commit_total"`
    CommitGraph map[time.Time]int `json:"commit_graph"`
}

Sneak peek:

image

Pending #87

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-3.01%) to 37.247% when pulling a6fff547fb81d3c9f4b7343b5c127461c237f644 on gh-stats into aa209cf19859b426725940e6f879fd7fae8e4dc3 on master.

bobheadxi commented 6 years ago

Yep, I'll hold off on merging this as I work on the website - I'll keep trying to tackle what's going on with master as well (not much progress on that front unfortunately)

bobheadxi commented 5 years ago

with rocket2 up-and-coming, should be fine to just have this merged