Merge pull request #1623 from bdougie/bdougie-filter-credit-bots
Filter gh credits for humans
This commit is contained in:
commit
5e11fe8fa0
1 changed files with 5 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue