mirror of
https://github.com/tiennm99/ghglance.git
synced 2026-10-11 03:13:20 +00:00
The Marketplace rejects ghstats as an action name, so the repo, Go module, binary, and action share the name ghglance instead. The demo workflow keeps reading the existing GHSTATS_TOKEN repo secret.
17 lines
460 B
Go
17 lines
460 B
Go
package card
|
|
|
|
import (
|
|
"github.com/tiennm99/ghglance/internal/github"
|
|
"github.com/tiennm99/ghglance/internal/theme"
|
|
)
|
|
|
|
type mostCommitLanguageAllTimeCard struct{}
|
|
|
|
func (mostCommitLanguageAllTimeCard) Filename() string {
|
|
return "most-commit-language-all-time.svg"
|
|
}
|
|
|
|
func (mostCommitLanguageAllTimeCard) SVG(p *github.Profile, t theme.Theme) ([]byte, error) {
|
|
return renderDonutCard("Most Commit Language (all time)", p.CommitsByLanguageAllTime, t), nil
|
|
}
|