License | BSD-3-Clause |
---|---|
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Safe Haskell | None |
Language | Haskell2010 |
The Owner teams API as described on http://developer.github.com/v3/orgs/teams/.
Synopsis
- teamsOf :: Name Organization -> IO (Either Error (Vector SimpleTeam))
- teamsOf' :: Maybe Auth -> Name Organization -> IO (Either Error (Vector SimpleTeam))
- teamsOfR :: Name Organization -> FetchCount -> Request k (Vector SimpleTeam)
- teamInfoFor :: Id Team -> IO (Either Error Team)
- teamInfoFor' :: Maybe Auth -> Id Team -> IO (Either Error Team)
- teamInfoForR :: Id Team -> Request k Team
- createTeamFor' :: Auth -> Name Organization -> CreateTeam -> IO (Either Error Team)
- createTeamForR :: Name Organization -> CreateTeam -> Request RW Team
- editTeam' :: Auth -> Id Team -> EditTeam -> IO (Either Error Team)
- editTeamR :: Id Team -> EditTeam -> Request RW Team
- deleteTeam' :: Auth -> Id Team -> IO (Either Error ())
- deleteTeamR :: Id Team -> GenRequest MtUnit RW ()
- listTeamMembersR :: Id Team -> TeamMemberRole -> FetchCount -> Request RA (Vector SimpleUser)
- listTeamRepos :: Id Team -> IO (Either Error (Vector Repo))
- listTeamRepos' :: Maybe Auth -> Id Team -> IO (Either Error (Vector Repo))
- listTeamReposR :: Id Team -> FetchCount -> Request k (Vector Repo)
- addOrUpdateTeamRepo' :: Auth -> Id Team -> Name Organization -> Name Repo -> Permission -> IO (Either Error ())
- addOrUpdateTeamRepoR :: Id Team -> Name Organization -> Name Repo -> Permission -> GenRequest MtUnit RW ()
- teamMembershipInfoFor :: Id Team -> Name Owner -> IO (Either Error TeamMembership)
- teamMembershipInfoFor' :: Maybe Auth -> Id Team -> Name Owner -> IO (Either Error TeamMembership)
- teamMembershipInfoForR :: Id Team -> Name Owner -> Request k TeamMembership
- addTeamMembershipFor' :: Auth -> Id Team -> Name Owner -> Role -> IO (Either Error TeamMembership)
- addTeamMembershipForR :: Id Team -> Name Owner -> Role -> Request RW TeamMembership
- deleteTeamMembershipFor' :: Auth -> Id Team -> Name Owner -> IO (Either Error ())
- deleteTeamMembershipForR :: Id Team -> Name Owner -> GenRequest MtUnit RW ()
- listTeamsCurrent' :: Auth -> IO (Either Error (Vector Team))
- listTeamsCurrentR :: FetchCount -> Request RA (Vector Team)
- module GitHub.Data
Documentation
teamsOf :: Name Organization -> IO (Either Error (Vector SimpleTeam)) Source #
List the public teams of an Owner.
teamsOf "thoughtbot"
teamsOf' :: Maybe Auth -> Name Organization -> IO (Either Error (Vector SimpleTeam)) Source #
List teams. List the teams of an Owner. When authenticated, lists private teams visible to the authenticated user. When unauthenticated, lists only public teams for an Owner.
teamsOf' (Just $ OAuth "token") "thoughtbot"
teamsOfR :: Name Organization -> FetchCount -> Request k (Vector SimpleTeam) Source #
List teams. See https://developer.github.com/v3/orgs/teams/#list-teams
teamInfoFor :: Id Team -> IO (Either Error Team) Source #
The information for a single team, by team id.
teamInfoFor' (Just $ OAuth "token") 1010101
teamInfoFor' :: Maybe Auth -> Id Team -> IO (Either Error Team) Source #
The information for a single team, by team id. With authentication
teamInfoFor' (Just $ OAuth "token") 1010101
teamInfoForR :: Id Team -> Request k Team Source #
Query team. See https://developer.github.com/v3/orgs/teams/#get-team
createTeamFor' :: Auth -> Name Organization -> CreateTeam -> IO (Either Error Team) Source #
Create a team under an Owner
createTeamFor' (OAuth "token") "Owner" (CreateTeam "newteamname" "some description" [] PermssionPull)
createTeamForR :: Name Organization -> CreateTeam -> Request RW Team Source #
Create team. See https://developer.github.com/v3/orgs/teams/#create-team
editTeam' :: Auth -> Id Team -> EditTeam -> IO (Either Error Team) Source #
Edit a team, by id.
editTeamFor'
editTeamR :: Id Team -> EditTeam -> Request RW Team Source #
Edit team. See https://developer.github.com/v3/orgs/teams/#edit-team
deleteTeam' :: Auth -> Id Team -> IO (Either Error ()) Source #
Delete a team, by id.
deleteTeam' (OAuth "token") 1010101
deleteTeamR :: Id Team -> GenRequest MtUnit RW () Source #
Delete team.
listTeamMembersR :: Id Team -> TeamMemberRole -> FetchCount -> Request RA (Vector SimpleUser) Source #
List team members.
See https://developer.github.com/v3/orgs/teams/#list-team-members
listTeamRepos :: Id Team -> IO (Either Error (Vector Repo)) Source #
Retrieve repositories for a team.
listTeamRepos (GitHub.mkTeamId team_id)
listTeamRepos' :: Maybe Auth -> Id Team -> IO (Either Error (Vector Repo)) Source #
The repositories of a single team, by team id. With authentication
listTeamRepos' (Just $ GitHub.OAuth token) (GitHub.mkTeamId team_id)
listTeamReposR :: Id Team -> FetchCount -> Request k (Vector Repo) Source #
Query team repositories. See https://developer.github.com/v3/orgs/teams/#list-team-repos
addOrUpdateTeamRepo' :: Auth -> Id Team -> Name Organization -> Name Repo -> Permission -> IO (Either Error ()) Source #
Add a repository to a team or update the permission on the repository.
addOrUpdateTeamRepo' (OAuth "token") 1010101 "mburns" (Just PermissionPull)
addOrUpdateTeamRepoR :: Id Team -> Name Organization -> Name Repo -> Permission -> GenRequest MtUnit RW () Source #
Add or update a team repository. See https://developer.github.com/v3/orgs/teams/#add-or-update-team-repository
teamMembershipInfoFor :: Id Team -> Name Owner -> IO (Either Error TeamMembership) Source #
Retrieve team mebership information for a user.
teamMembershipInfoFor 1010101 "mburns"
teamMembershipInfoFor' :: Maybe Auth -> Id Team -> Name Owner -> IO (Either Error TeamMembership) Source #
Retrieve team mebership information for a user. With authentication
teamMembershipInfoFor' (Just $ OAuth "token") 1010101 "mburns"
teamMembershipInfoForR :: Id Team -> Name Owner -> Request k TeamMembership Source #
Query team membership. See <https://developer.github.com/v3/orgs/teams/#get-team-membership
addTeamMembershipFor' :: Auth -> Id Team -> Name Owner -> Role -> IO (Either Error TeamMembership) Source #
Add (or invite) a member to a team.
addTeamMembershipFor' (OAuth "token") 1010101 "mburns" RoleMember
addTeamMembershipForR :: Id Team -> Name Owner -> Role -> Request RW TeamMembership Source #
Add team membership. See https://developer.github.com/v3/orgs/teams/#add-team-membership
deleteTeamMembershipFor' :: Auth -> Id Team -> Name Owner -> IO (Either Error ()) Source #
Delete a member of a team.
deleteTeamMembershipFor' (OAuth "token") 1010101 "mburns"
deleteTeamMembershipForR :: Id Team -> Name Owner -> GenRequest MtUnit RW () Source #
Remove team membership. See https://developer.github.com/v3/orgs/teams/#remove-team-membership
listTeamsCurrent' :: Auth -> IO (Either Error (Vector Team)) Source #
List teams for current authenticated user
listTeamsCurrent' (OAuth "token")
listTeamsCurrentR :: FetchCount -> Request RA (Vector Team) Source #
List user teams. See https://developer.github.com/v3/orgs/teams/#list-user-teams
module GitHub.Data