anchor.diff:              Error
       end.
   
  +-spec team_membership(credentials(), integer(), string()) -> active | pending | none.
  +team_membership(Cred, TeamId, Username) ->
  +    Url = make_url(team_membership, {TeamId, Username}),
  +    case api_call_json_result(Cred, Url) of
  +        {ok, #{<<"state">> := <<"active">>}} -> active;
  +        {ok, #{<<"state">> := <<"pending">>}} -> pending;
  +        {error, {"404", _, _}} -> none
  +    end.
  +
   %% Hooks
   
   -spec hooks(credentials(), repository()) -> result().
  
positive.code: make_url(teams_repos, {TeamId, RepoFullName}) ->
      Url = ?GITHUB_API ++ "/teams/~p/repos/~s",
      io_lib:format(Url, [TeamId, RepoFullName]);
  
  %% Repositories
  make_url(repo, {RepoFullName}) ->
  
negative.code:          add_team_repository/3,
           add_team_member/3,
           delete_team_member/3,
           team_membership/3,
           %% Hooks
           hooks/2,
           create_webhook/4,
  