Convenience functions for the GitHub Teams REST API.
Thin wrappers over GhEx.REST that return the same {:ok, body, meta} /
{:error, reason} shape; opts pass through to Req.
Summary
Functions
Creates a team in an organization. attrs is the JSON body (name, description, ...).
Gets a team by slug.
Lists teams in an organization.
Lists members of a team.
Auto-paginates an organization's teams into a lazy Stream (see GhEx.REST.stream/3).
Auto-paginates a team's members into a lazy Stream.
Functions
@spec create(GhEx.Client.t(), String.t(), map(), keyword()) :: GhEx.REST.result()
Creates a team in an organization. attrs is the JSON body (name, description, ...).
@spec get_by_slug(GhEx.Client.t(), String.t(), String.t(), keyword()) :: GhEx.REST.result()
Gets a team by slug.
@spec list(GhEx.Client.t(), String.t(), keyword()) :: GhEx.REST.result()
Lists teams in an organization.
@spec list_members(GhEx.Client.t(), String.t(), String.t(), keyword()) :: GhEx.REST.result()
Lists members of a team.
@spec stream(GhEx.Client.t(), String.t(), keyword()) :: Enumerable.t()
Auto-paginates an organization's teams into a lazy Stream (see GhEx.REST.stream/3).
@spec stream_members(GhEx.Client.t(), String.t(), String.t(), keyword()) :: Enumerable.t()
Auto-paginates a team's members into a lazy Stream.