License | BSD-3-Clause |
---|---|
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Safe Haskell | None |
Language | Haskell2010 |
The Github Repos API, as documented at http://developer.github.com/v3/repos/
Synopsis
- currentUserReposR :: RepoPublicity -> FetchCount -> Request k (Vector Repo)
- userReposR :: Name Owner -> RepoPublicity -> FetchCount -> Request k (Vector Repo)
- organizationReposR :: Name Organization -> RepoPublicity -> FetchCount -> Request k (Vector Repo)
- repositoryR :: Name Owner -> Name Repo -> Request k Repo
- contributorsR :: Name Owner -> Name Repo -> Bool -> FetchCount -> Request k (Vector Contributor)
- languagesForR :: Name Owner -> Name Repo -> Request k Languages
- tagsForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Tag)
- branchesForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Branch)
- createRepoR :: NewRepo -> Request RW Repo
- createOrganizationRepoR :: Name Organization -> NewRepo -> Request RW Repo
- forkExistingRepoR :: Name Owner -> Name Repo -> Maybe (Name Owner) -> Request RW Repo
- editRepoR :: Name Owner -> Name Repo -> EditRepo -> Request RW Repo
- deleteRepoR :: Name Owner -> Name Repo -> GenRequest MtUnit RW ()
- module GitHub.Data
Querying repositories
currentUserReposR :: RepoPublicity -> FetchCount -> Request k (Vector Repo) Source #
List your repositories. See https://developer.github.com/v3/repos/#list-your-repositories
userReposR :: Name Owner -> RepoPublicity -> FetchCount -> Request k (Vector Repo) Source #
List user repositories. See https://developer.github.com/v3/repos/#list-user-repositories
organizationReposR :: Name Organization -> RepoPublicity -> FetchCount -> Request k (Vector Repo) Source #
List organization repositories. See https://developer.github.com/v3/repos/#list-organization-repositories
repositoryR :: Name Owner -> Name Repo -> Request k Repo Source #
Query single repository. See https://developer.github.com/v3/repos/#get
:: Name Owner | |
-> Name Repo | |
-> Bool | Include anonymous |
-> FetchCount | |
-> Request k (Vector Contributor) |
List contributors. See https://developer.github.com/v3/repos/#list-contributors
languagesForR :: Name Owner -> Name Repo -> Request k Languages Source #
List languages. See https://developer.github.com/v3/repos/#list-languages
tagsForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Tag) Source #
List tags. See https://developer.github.com/v3/repos/#list-tags
branchesForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Branch) Source #
List branches. See https://developer.github.com/v3/repos/#list-branches
Create
createRepoR :: NewRepo -> Request RW Repo Source #
Create a new repository. See https://developer.github.com/v3/repos/#create
createOrganizationRepoR :: Name Organization -> NewRepo -> Request RW Repo Source #
Create a new repository for an organization. See https://developer.github.com/v3/repos/#create
forkExistingRepoR :: Name Owner -> Name Repo -> Maybe (Name Owner) -> Request RW Repo Source #
Fork an existing repository. See https://developer.github.com/v3/repos/forks/#create-a-fork TODO: The third paramater (an optional Organisation) is not used yet.
Edit
editRepoR :: Name Owner -> Name Repo -> EditRepo -> Request RW Repo Source #
Edit an existing repository. See https://developer.github.com/v3/repos/#edit
Delete
deleteRepoR :: Name Owner -> Name Repo -> GenRequest MtUnit RW () Source #
Delete a repository,. See https://developer.github.com/v3/repos/#delete-a-repository
Data
module GitHub.Data