Skip to content

Commit d83c99f

Browse files
committed
filter by contributor type
1 parent 987e95f commit d83c99f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/cmd/repo/credits/credits.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ func creditsRun(opts *CreditsOptions) error {
135135

136136
type Contributor struct {
137137
Login string
138+
Type string
138139
}
139140

140141
type Result []Contributor
@@ -161,6 +162,10 @@ func creditsRun(opts *CreditsOptions) error {
161162

162163
logins := []string{}
163164
for x, c := range result {
165+
if c.Type != "User" {
166+
continue
167+
}
168+
164169
if isTTY && !static {
165170
logins = append(logins, getColor(x)(c.Login))
166171
} else {

0 commit comments

Comments
 (0)