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.
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.