filter by contributor type
This commit is contained in:
parent
987e95f0c8
commit
d83c99f87f
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