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.
15 lines
423 B
Go
15 lines
423 B
Go
package card
|
|
|
|
import (
|
|
"github.com/tiennm99/ghglance/internal/github"
|
|
"github.com/tiennm99/ghglance/internal/theme"
|
|
)
|
|
|
|
type mostCommitLanguageCard struct{}
|
|
|
|
func (mostCommitLanguageCard) Filename() string { return "most-commit-language.svg" }
|
|
|
|
func (mostCommitLanguageCard) SVG(p *github.Profile, t theme.Theme) ([]byte, error) {
|
|
return renderDonutCard("Most Commit Language (last year)", p.CommitsByLanguage, t), nil
|
|
}
|