Safe Haskell | None |
---|---|
Language | Haskell2010 |
The GithubOwner teams API as described on http://developer.github.com/v3/orgs/teams/.
- teamsOf :: Name Organization -> IO (Either Error (Vector SimpleTeam))
- teamsOf' :: Maybe GithubAuth -> Name Organization -> IO (Either Error (Vector SimpleTeam))
- teamsOfR :: Name Organization -> Maybe Count -> GithubRequest k (Vector SimpleTeam)
- teamInfoFor :: Id Team -> IO (Either Error Team)
- teamInfoFor' :: Maybe GithubAuth -> Id Team -> IO (Either Error Team)
- teamInfoForR :: Id Team -> GithubRequest k Team
- createTeamFor' :: GithubAuth -> Name Organization -> CreateTeam -> IO (Either Error Team)
- createTeamForR :: Name Organization -> CreateTeam -> GithubRequest True Team
- editTeam' :: GithubAuth -> Id Team -> EditTeam -> IO (Either Error Team)
- editTeamR :: Id Team -> EditTeam -> GithubRequest True Team
- deleteTeam' :: GithubAuth -> Id Team -> IO (Either Error ())
- deleteTeamR :: Id Team -> GithubRequest True ()
- teamMembershipInfoFor :: Id Team -> Name GithubOwner -> IO (Either Error TeamMembership)
- teamMembershipInfoFor' :: Maybe GithubAuth -> Id Team -> Name GithubOwner -> IO (Either Error TeamMembership)
- teamMembershipInfoForR :: Id Team -> Name GithubOwner -> GithubRequest k TeamMembership
- addTeamMembershipFor' :: GithubAuth -> Id Team -> Name GithubOwner -> Role -> IO (Either Error TeamMembership)
- addTeamMembershipForR :: Id Team -> Name GithubOwner -> Role -> GithubRequest True TeamMembership
- deleteTeamMembershipFor' :: GithubAuth -> Id Team -> Name GithubOwner -> IO (Either Error ())
- deleteTeamMembershipForR :: Id Team -> Name GithubOwner -> GithubRequest True ()
- listTeamsCurrent' :: GithubAuth -> IO (Either Error (Vector Team))
- listTeamsCurrentR :: Maybe Count -> GithubRequest True (Vector Team)
- module Github.Data
Documentation
teamsOf :: Name Organization -> IO (Either Error (Vector SimpleTeam)) Source
List the public teams of an GithubOwner.
teamsOf "thoughtbot"
teamsOf' :: Maybe GithubAuth -> Name Organization -> IO (Either Error (Vector SimpleTeam)) Source
List teams. List the teams of an GithubOwner. When authenticated, lists private teams visible to the authenticated user. When unauthenticated, lists only public teams for an GithubOwner.
teamsOf' (Just $ GithubOAuth "token") "thoughtbot"
teamsOfR :: Name Organization -> Maybe Count -> GithubRequest 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 $ GithubOAuth "token") 1010101
teamInfoFor' :: Maybe GithubAuth -> Id Team -> IO (Either Error Team) Source
The information for a single team, by team id. | With authentication
teamInfoFor' (Just $ GithubOAuth "token") 1010101
teamInfoForR :: Id Team -> GithubRequest k Team Source
Get team. See https://developer.github.com/v3/orgs/teams/#get-team
createTeamFor' :: GithubAuth -> Name Organization -> CreateTeam -> IO (Either Error Team) Source
Create a team under an GithubOwner
createTeamFor' (GithubOAuth "token") "GithubOwner" (CreateTeam "newteamname" "some description" [] PermssionPull)
createTeamForR :: Name Organization -> CreateTeam -> GithubRequest True Team Source
Create team. See https://developer.github.com/v3/orgs/teams/#create-team
editTeam' :: GithubAuth -> Id Team -> EditTeam -> IO (Either Error Team) Source
Edit a team, by id.
editTeamFor'
editTeamR :: Id Team -> EditTeam -> GithubRequest True Team Source
Edit team. See https://developer.github.com/v3/orgs/teams/#edit-team
deleteTeam' :: GithubAuth -> Id Team -> IO (Either Error ()) Source
Delete a team, by id.
deleteTeam' (GithubOAuth "token") 1010101
deleteTeamR :: Id Team -> GithubRequest True () Source
Delete team. See https://developer.github.com/v3/orgs/teams/#delete-team
teamMembershipInfoFor :: Id Team -> Name GithubOwner -> IO (Either Error TeamMembership) Source
Retrieve team mebership information for a user.
teamMembershipInfoFor 1010101 "mburns"
teamMembershipInfoFor' :: Maybe GithubAuth -> Id Team -> Name GithubOwner -> IO (Either Error TeamMembership) Source
Retrieve team mebership information for a user. | With authentication
teamMembershipInfoFor' (Just $ GithubOAuth "token") 1010101 "mburns"
teamMembershipInfoForR :: Id Team -> Name GithubOwner -> GithubRequest k TeamMembership Source
Get team membership. See <https://developer.github.com/v3/orgs/teams/#get-team-membership
addTeamMembershipFor' :: GithubAuth -> Id Team -> Name GithubOwner -> Role -> IO (Either Error TeamMembership) Source
Add (or invite) a member to a team.
addTeamMembershipFor' (GithubOAuth "token") 1010101 "mburns" RoleMember
addTeamMembershipForR :: Id Team -> Name GithubOwner -> Role -> GithubRequest True TeamMembership Source
Add team membership. See https://developer.github.com/v3/orgs/teams/#add-team-membership
deleteTeamMembershipFor' :: GithubAuth -> Id Team -> Name GithubOwner -> IO (Either Error ()) Source
Delete a member of a team.
deleteTeamMembershipFor' (GithubOAuth "token") 1010101 "mburns"
deleteTeamMembershipForR :: Id Team -> Name GithubOwner -> GithubRequest True () Source
Remove team membership. See https://developer.github.com/v3/orgs/teams/#remove-team-membership
listTeamsCurrent' :: GithubAuth -> IO (Either Error (Vector Team)) Source
List teams for current authenticated user
listTeamsCurrent' (GithubOAuth "token")
listTeamsCurrentR :: Maybe Count -> GithubRequest True (Vector Team) Source
List user teams. See https://developer.github.com/v3/orgs/teams/#list-user-teams
module Github.Data