octohat-0.1.4.2: A tested, minimal wrapper around GitHub's API.

Safe HaskellNone
LanguageHaskell2010

Network.Octohat.Members

Description

Execute the result of these functions using runGitHub or runGitHub'

Synopsis

Documentation

membersForOrganization Source

Arguments

:: OrganizationName

The organization name

-> GitHub [Member] 

Returns a list of members of an organization with the given name.

teamsForOrganization Source

Arguments

:: OrganizationName

The organization name

-> GitHub [Team] 

Returns a list of teams for the organization with the given name

membersForTeam Source

Arguments

:: Integer

The team ID

-> GitHub [Member] 

Returns a list of members of a team with the given team ID.

reposForTeam Source

Arguments

:: Integer

The team ID

-> GitHub [Repo] 

Returns a list of repos of a team with the given team ID.

addMemberToTeam Source

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

addRepoToTeam Source

Arguments

:: 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

deleteMemberFromTeam Source

Arguments

:: Text

GitHub username

-> Integer

GitHub team ID

-> GitHub DidDelete 

Deletes a member with the given name from a team with the given ID. Might or might not delete

deleteTeamFromOrganization Source

Arguments

:: Integer

ID of Team to delete

-> GitHub DidDelete 

Deletes a team from an organization using its team ID.

publicKeysForUser Source

Arguments

:: Text

GitHub username

-> GitHub [PublicKey] 

Returns the public keys of the user with the given name

addTeamToOrganization Source

Arguments

:: 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

userForUsername Source

Arguments

:: Text

GitHub username

-> GitHub Member 

Finds a user ID given their username

repoForReponame Source

Arguments

:: Text

GitHub org

-> Text

GitHub repo

-> GitHub Repo 

Finds a repo ID given their reponame

addPublicKey Source

Arguments

:: Text

Base64 RSA Key (ssh-rsa AA..)

-> Text

Key title, e.g octocatstackbuilders@

-> GitHub PublicKey 

Add a key for the currently authenticated user