filter by contributor type

This commit is contained in:
Brian 'bdougie' Douglas 2020-08-28 08:36:52 -07:00
parent 987e95f0c8
commit d83c99f87f

View file

@ -135,6 +135,7 @@ func creditsRun(opts *CreditsOptions) error {
type Contributor struct {
Login string
Type string
}
type Result []Contributor
@ -161,6 +162,10 @@ func creditsRun(opts *CreditsOptions) error {
logins := []string{}
for x, c := range result {
if c.Type != "User" {
continue
}
if isTTY && !static {
logins = append(logins, getColor(x)(c.Login))
} else {