Skip to content

Commit

Permalink
Update util_permissions.go
Browse files Browse the repository at this point in the history
  • Loading branch information
romaninsh authored Apr 7, 2020
1 parent b9ba9f9 commit 17b6004
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions github/util_permissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ func getInvitationPermission(i *github.RepositoryInvitation) (string, error) {
return pushPermission, nil
} else if *i.Permissions == adminPermission {
return adminPermission, nil
} else if *i.Permissions == maintainPermission {
return maintainPermission, nil
} else if *i.Permissions == triagePermission {
return triagePermission, nil
}

return "", fmt.Errorf("unexpected permission value: %v", *i.Permissions)
Expand Down

0 comments on commit 17b6004

Please sign in to comment.