Safe Haskell | None |
---|---|
Language | Haskell2010 |
The Github Repos API, as documented at http://developer.github.com/v3/repos/
- currentUserRepos :: GithubAuth -> RepoPublicity -> IO (Either Error (Vector Repo))
- currentUserReposR :: RepoPublicity -> Maybe Count -> GithubRequest k (Vector Repo)
- userRepos :: Name GithubOwner -> RepoPublicity -> IO (Either Error (Vector Repo))
- userRepos' :: Maybe GithubAuth -> Name GithubOwner -> RepoPublicity -> IO (Either Error (Vector Repo))
- userReposR :: Name GithubOwner -> RepoPublicity -> Maybe Count -> GithubRequest k (Vector Repo)
- organizationRepos :: Name Organization -> IO (Either Error (Vector Repo))
- organizationRepos' :: Maybe GithubAuth -> Name Organization -> RepoPublicity -> IO (Either Error (Vector Repo))
- organizationReposR :: Name Organization -> RepoPublicity -> Maybe Count -> GithubRequest k (Vector Repo)
- repository :: Name GithubOwner -> Name Repo -> IO (Either Error Repo)
- repository' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error Repo)
- repositoryR :: Name GithubOwner -> Name Repo -> GithubRequest k Repo
- contributors :: Name GithubOwner -> Name Repo -> IO (Either Error (Vector Contributor))
- contributors' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error (Vector Contributor))
- contributorsR :: Name GithubOwner -> Name Repo -> Bool -> Maybe Count -> GithubRequest k (Vector Contributor)
- contributorsWithAnonymous :: Name GithubOwner -> Name Repo -> IO (Either Error (Vector Contributor))
- contributorsWithAnonymous' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error (Vector Contributor))
- languagesFor :: Name GithubOwner -> Name Repo -> IO (Either Error Languages)
- languagesFor' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error Languages)
- languagesForR :: Name GithubOwner -> Name Repo -> GithubRequest k Languages
- tagsFor :: Name GithubOwner -> Name Repo -> IO (Either Error (Vector Tag))
- tagsFor' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error (Vector Tag))
- tagsForR :: Name GithubOwner -> Name Repo -> Maybe Count -> GithubRequest k (Vector Tag)
- branchesFor :: Name GithubOwner -> Name Repo -> IO (Either Error (Vector Branch))
- branchesFor' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error (Vector Branch))
- branchesForR :: Name GithubOwner -> Name Repo -> Maybe Count -> GithubRequest k (Vector Branch)
- contentsFor :: Name GithubOwner -> Name Repo -> String -> Maybe String -> IO (Either Error Content)
- contentsFor' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> String -> Maybe String -> IO (Either Error Content)
- readmeFor :: Name GithubOwner -> Name Repo -> IO (Either Error Content)
- readmeFor' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error Content)
- createRepo' :: GithubAuth -> NewRepo -> IO (Either Error Repo)
- createRepoR :: NewRepo -> GithubRequest True Repo
- createOrganizationRepo' :: GithubAuth -> Name Organization -> NewRepo -> IO (Either Error Repo)
- createOrganizationRepoR :: Name Organization -> NewRepo -> GithubRequest True Repo
- editRepo :: GithubAuth -> Name GithubOwner -> Name Repo -> EditRepo -> IO (Either Error Repo)
- editRepoR :: Name GithubOwner -> Name Repo -> EditRepo -> GithubRequest True Repo
- deleteRepo :: GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error ())
- deleteRepoR :: Name GithubOwner -> Name Repo -> GithubRequest True ()
- module Github.Data
Querying repositories
currentUserRepos :: GithubAuth -> RepoPublicity -> IO (Either Error (Vector Repo)) Source
List your repositories.
currentUserReposR :: RepoPublicity -> Maybe Count -> GithubRequest k (Vector Repo) Source
List your repositories. See https://developer.github.com/v3/repos/#list-your-repositories
userRepos :: Name GithubOwner -> RepoPublicity -> IO (Either Error (Vector Repo)) Source
The repos for a user, by their login. Can be restricted to just repos they own, are a member of, or publicize. Private repos will return empty list.
userRepos "mike-burns" All
userRepos' :: Maybe GithubAuth -> Name GithubOwner -> RepoPublicity -> IO (Either Error (Vector Repo)) Source
The repos for a user, by their login. With authentication.
userRepos' (Just (GithubBasicAuth (user, password))) "mike-burns" All
userReposR :: Name GithubOwner -> RepoPublicity -> Maybe Count -> GithubRequest k (Vector Repo) Source
List user repositories. See https://developer.github.com/v3/repos/#list-user-repositories
organizationRepos :: Name Organization -> IO (Either Error (Vector Repo)) Source
The repos for an organization, by the organization name.
organizationRepos "thoughtbot"
organizationRepos' :: Maybe GithubAuth -> Name Organization -> RepoPublicity -> IO (Either Error (Vector Repo)) Source
The repos for an organization, by the organization name. With authentication.
organizationRepos (Just (GithubBasicAuth (user, password))) "thoughtbot" All
organizationReposR :: Name Organization -> RepoPublicity -> Maybe Count -> GithubRequest k (Vector Repo) Source
List organization repositories. See https://developer.github.com/v3/repos/#list-organization-repositories
repository :: Name GithubOwner -> Name Repo -> IO (Either Error Repo) Source
Details on a specific repo, given the owner and repo name.
userRepo "mike-burns" "github"
repository' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error Repo) Source
Details on a specific repo, given the owner and repo name. With authentication.
userRepo' (Just (GithubBasicAuth (user, password))) "mike-burns" "github"
repositoryR :: Name GithubOwner -> Name Repo -> GithubRequest k Repo Source
Get single repository. See https://developer.github.com/v3/repos/#get
contributors :: Name GithubOwner -> Name Repo -> IO (Either Error (Vector Contributor)) Source
The contributors to a repo, given the owner and repo name.
contributors "thoughtbot" "paperclip"
contributors' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error (Vector Contributor)) Source
The contributors to a repo, given the owner and repo name. With authentication.
contributors' (Just (GithubBasicAuth (user, password))) "thoughtbot" "paperclip"
:: Name GithubOwner | |
-> Name Repo | |
-> Bool | Include anonymous |
-> Maybe Count | |
-> GithubRequest k (Vector Contributor) |
List contributors. See https://developer.github.com/v3/repos/#list-contributors
contributorsWithAnonymous :: Name GithubOwner -> Name Repo -> IO (Either Error (Vector Contributor)) Source
The contributors to a repo, including anonymous contributors (such as deleted users or git commits with unknown email addresses), given the owner and repo name.
contributorsWithAnonymous "thoughtbot" "paperclip"
contributorsWithAnonymous' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error (Vector Contributor)) Source
The contributors to a repo, including anonymous contributors (such as deleted users or git commits with unknown email addresses), given the owner and repo name. With authentication.
contributorsWithAnonymous' (Just (GithubBasicAuth (user, password))) "thoughtbot" "paperclip"
languagesFor :: Name GithubOwner -> Name Repo -> IO (Either Error Languages) Source
The programming languages used in a repo along with the number of characters written in that language. Takes the repo owner and name.
languagesFor "mike-burns" "ohlaunch"
languagesFor' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error Languages) Source
The programming languages used in a repo along with the number of characters written in that language. Takes the repo owner and name. With authentication.
languagesFor' (Just (GithubBasicAuth (user, password))) "mike-burns" "ohlaunch"
languagesForR :: Name GithubOwner -> Name Repo -> GithubRequest k Languages Source
List languages. See https://developer.github.com/v3/repos/#list-languages
tagsFor :: Name GithubOwner -> Name Repo -> IO (Either Error (Vector Tag)) Source
The git tags on a repo, given the repo owner and name.
tagsFor "thoughtbot" "paperclip"
tagsFor' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error (Vector Tag)) Source
The git tags on a repo, given the repo owner and name. With authentication.
tagsFor' (Just (GithubBasicAuth (user, password))) "thoughtbot" "paperclip"
tagsForR :: Name GithubOwner -> Name Repo -> Maybe Count -> GithubRequest k (Vector Tag) Source
List tags. See https://developer.github.com/v3/repos/#list-tags
branchesFor :: Name GithubOwner -> Name Repo -> IO (Either Error (Vector Branch)) Source
The git branches on a repo, given the repo owner and name.
branchesFor "thoughtbot" "paperclip"
branchesFor' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error (Vector Branch)) Source
The git branches on a repo, given the repo owner and name. With authentication.
branchesFor' (Just (GithubBasicAuth (user, password))) "thoughtbot" "paperclip"
branchesForR :: Name GithubOwner -> Name Repo -> Maybe Count -> GithubRequest k (Vector Branch) Source
List branches. See https://developer.github.com/v3/repos/#list-branches
contentsFor :: Name GithubOwner -> Name Repo -> String -> Maybe String -> IO (Either Error Content) Source
The contents of a file or directory in a repo, given the repo owner, name, and path to the file
contentsFor "thoughtbot" "paperclip" "README.md"
contentsFor' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> String -> Maybe String -> IO (Either Error Content) Source
The contents of a file or directory in a repo, given the repo owner, name, and path to the file With Authentication
contentsFor' (Just (GithubBasicAuth (user, password))) "thoughtbot" "paperclip" "README.md" Nothing
readmeFor :: Name GithubOwner -> Name Repo -> IO (Either Error Content) Source
The contents of a README file in a repo, given the repo owner and name
readmeFor "thoughtbot" "paperclip"
readmeFor' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error Content) Source
The contents of a README file in a repo, given the repo owner and name With Authentication
readmeFor' (Just (GithubBasicAuth (user, password))) "thoughtbot" "paperclip"
Create
createRepo' :: GithubAuth -> NewRepo -> IO (Either Error Repo) Source
Create a new repository.
createRepo' (GithubBasicAuth (user, password)) (newRepo "some_repo") {newRepoHasIssues = Just False}
createRepoR :: NewRepo -> GithubRequest True Repo Source
Create a new repository. See https://developer.github.com/v3/repos/#create
createOrganizationRepo' :: GithubAuth -> Name Organization -> NewRepo -> IO (Either Error Repo) Source
Create a new repository for an organization.
createOrganizationRepo (GithubBasicAuth (user, password)) "thoughtbot" (newRepo "some_repo") {newRepoHasIssues = Just False}
createOrganizationRepoR :: Name Organization -> NewRepo -> GithubRequest True Repo Source
Create a new repository for an organization. See https://developer.github.com/v3/repos/#create
Edit
:: GithubAuth | |
-> Name GithubOwner | owner |
-> Name Repo | repository name |
-> EditRepo | |
-> IO (Either Error Repo) |
Edit an existing repository.
editRepo (GithubBasicAuth (user, password)) "some_user" "some_repo" def {editDescription = Just "some description"}
editRepoR :: Name GithubOwner -> Name Repo -> EditRepo -> GithubRequest True Repo Source
Edit an existing repository. See https://developer.github.com/v3/repos/#edit
Delete
deleteRepo :: GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error ()) Source
Delete an existing repository.
deleteRepo (GithubBasicAuth (user, password)) "thoughtbot" "some_repo"
deleteRepoR :: Name GithubOwner -> Name Repo -> GithubRequest True () Source
Data
module Github.Data