File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ module GitHub (
156156 -- * Edit an organization
157157 publicOrganizationsForR ,
158158 publicOrganizationR ,
159+ organizationsR ,
159160 -- ** Members
160161 -- | See <https://developer.github.com/v3/orgs/members/>
161162 --
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ module GitHub.Endpoints.Organizations (
1111 publicOrganization ,
1212 publicOrganization' ,
1313 publicOrganizationR ,
14+ organizationsR ,
1415 module GitHub.Data ,
1516 ) where
1617
@@ -32,7 +33,12 @@ publicOrganizationsFor' auth org =
3233publicOrganizationsFor :: Name User -> IO (Either Error (Vector SimpleOrganization ))
3334publicOrganizationsFor = publicOrganizationsFor' Nothing
3435
35- -- | List user organizations.
36+ -- | List all user organizations.
37+ -- See <https://developer.github.com/v3/orgs/#list-your-organizations>
38+ organizationsR :: FetchCount -> Request k (Vector SimpleOrganization )
39+ organizationsR = pagedQuery [" user" , " orgs" ] []
40+
41+ -- | List public user organizations.
3642-- See <https://developer.github.com/v3/orgs/#list-user-organizations>
3743publicOrganizationsForR :: Name User -> FetchCount -> Request k (Vector SimpleOrganization )
3844publicOrganizationsForR user = pagedQuery [" users" , toPathPart user, " orgs" ] []
You can’t perform that action at this time.
0 commit comments