From d83c99f87f44eccd44442f6230fd71631f0f5e97 Mon Sep 17 00:00:00 2001 From: Brian 'bdougie' Douglas Date: Fri, 28 Aug 2020 08:36:52 -0700 Subject: [PATCH] filter by contributor type --- pkg/cmd/repo/credits/credits.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/cmd/repo/credits/credits.go b/pkg/cmd/repo/credits/credits.go index 40aff56d1..c69ce1f3e 100644 --- a/pkg/cmd/repo/credits/credits.go +++ b/pkg/cmd/repo/credits/credits.go @@ -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 {