Merge pull request #1623 from bdougie/bdougie-filter-credit-bots

Filter gh credits for humans
This commit is contained in:
Mislav Marohnić 2020-09-07 11:44:59 +02:00 committed by GitHub
commit 5e11fe8fa0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 {