@@ -110,16 +110,33 @@ func (r Repository) String() string {
110110// RepositoryListOptions specifies the optional parameters to the
111111// RepositoriesService.List method.
112112type RepositoryListOptions struct {
113- // Type of repositories to list. Possible values are: all, owner, public,
114- // private, member. Default is "all".
113+ // Visibility of repositories to list. Can be one of all, public, or private.
114+ // Default: all
115+ Visibility string `url:"visibility,omitempty"`
116+
117+ // List repos of given affiliation[s].
118+ // Comma-separated list of values. Can include:
119+ // * owner: Repositories that are owned by the authenticated user.
120+ // * collaborator: Repositories that the user has been added to as a
121+ // collaborator.
122+ // * organization_member: Repositories that the user has access to through
123+ // being a member of an organization. This includes every repository on
124+ // every team that the user is on.
125+ // Default: owner,collaborator,organization_member
126+ Affiliation string `url:"affiliation,omitempty"`
127+
128+ // Type of repositories to list.
129+ // Can be one of all, owner, public, private, member. Default: all
130+ // Will cause a 422 error if used in the same request as visibility or
131+ // affiliation.
115132 Type string `url:"type,omitempty"`
116133
117- // How to sort the repository list. Possible values are: created, updated,
118- // pushed, full_name. Default is " full_name".
134+ // How to sort the repository list. Can be one of created, updated, pushed ,
135+ // full_name. Default: full_name
119136 Sort string `url:"sort,omitempty"`
120137
121- // Direction in which to sort repositories. Possible values are: asc, desc.
122- // Default is "asc" when sort is " full_name", otherwise default is " desc".
138+ // Direction in which to sort repositories. Can be one of asc or desc.
139+ // Default: when using full_name: asc; otherwise desc
123140 Direction string `url:"direction,omitempty"`
124141
125142 ListOptions
0 commit comments