| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.Octohat.Members
Description
Execute the result of these functions using runGitHub or runGitHub'
- membersForOrganization :: Text -> GitHub [Member]
- membersForTeam :: Integer -> GitHub [Member]
- teamsForOrganization :: Text -> GitHub [Team]
- addMemberToTeam :: Text -> Integer -> GitHub StatusInTeam
- deleteMemberFromTeam :: Text -> Integer -> GitHub DidDelete
- deleteTeamFromOrganization :: Integer -> GitHub DidDelete
- publicKeysForUser :: Text -> GitHub [PublicKey]
- addTeamToOrganization :: Text -> Text -> Text -> GitHub Team
- userForUsername :: Text -> GitHub Member
- addPublicKey :: Text -> Text -> GitHub PublicKey
Documentation
Returns a list of members of an organization with the given name.
Returns a list of members of a team with the given team ID.
Returns a list of teams for the organization with the given name
Arguments
| :: Text | The GitHub username to add to a team |
| -> Integer | The Team ID |
| -> GitHub StatusInTeam |
Adds a member to a team, might invite or add the member. Refer to StatusInTeam
Deletes a member with the given name from a team with the given ID. Might or might not delete
deleteTeamFromOrganization Source
Deletes a team from an organization using its team ID.
Returns the public keys of the user with the given name
Arguments
| :: Text | Name of new team |
| -> Text | Description of new team |
| -> Text | Organization name where the team will be created |
| -> GitHub Team |
Takes a new team name, the description of a team and the organization where to create the team and creates a new team. Regular GitHub authorization/authentication applies.
Finds a user ID given their username