Safe Haskell | None |
---|---|
Language | Haskell2010 |
Execute the result of these functions using runGitHub
or runGitHub'
- membersForOrganization :: OrganizationName -> GitHub [Member]
- teamsForOrganization :: OrganizationName -> GitHub [Team]
- membersForTeam :: Integer -> GitHub [Member]
- reposForTeam :: Integer -> GitHub [Repo]
- addMemberToTeam :: Text -> Integer -> GitHub StatusInTeam
- addRepoToTeam :: OrganizationName -> Text -> Integer -> GitHub StatusInTeam
- deleteMemberFromTeam :: Text -> Integer -> GitHub DidDelete
- deleteTeamFromOrganization :: Integer -> GitHub DidDelete
- publicKeysForUser :: Text -> GitHub [PublicKey]
- addTeamToOrganization :: TeamName -> Text -> TeamPermission -> OrganizationName -> GitHub Team
- organizations :: GitHub [Organization]
- userForUsername :: Text -> GitHub Member
- repoForReponame :: Text -> Text -> GitHub Repo
- addPublicKey :: Text -> Text -> GitHub PublicKey
Documentation
:: OrganizationName | The organization name |
-> GitHub [Member] |
Returns a list of members of an organization with the given name.
:: OrganizationName | The organization name |
-> GitHub [Team] |
Returns a list of teams for the organization with the given name
Returns a list of members of a team with the given team ID.
Returns a list of repos of a team with the given team ID.
:: 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
:: OrganizationName | The GitHub organization name |
-> Text | The GitHub repo name |
-> Integer | The Team ID |
-> GitHub StatusInTeam |
Adds a repo 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
:: TeamName | Name of new team |
-> Text | Description of new team |
-> TeamPermission | Permission setting for team (push, pull, or admin) |
-> OrganizationName | 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.
organizations :: GitHub [Organization] Source
Returns a list of all organizations for the user
Finds a repo ID given their reponame