Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/owners/owners.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ isorg(owner::Owner) = something(owner.typ, "") == "Organization"
return Owner(result)
end

@api_default function myorgs(api::GitHubAPI; options...)
results, page_data = gh_get_paged_json(api, "/user/orgs"; options...)
return map(Owner, results), page_data
end

@api_default owner(api::GitHubAPI, owner_obj::Owner; options...) = owner(api, name(owner_obj), isorg(owner_obj); options...)

@api_default function owner(api::GitHubAPI, owner_obj, isorg = false; options...)
Expand Down
Loading