License | BSD-3-Clause |
---|---|
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data Repo = Repo {
- repoId :: !(Id Repo)
- repoName :: !(Name Repo)
- repoOwner :: !SimpleOwner
- repoPrivate :: !Bool
- repoHtmlUrl :: !URL
- repoDescription :: !(Maybe Text)
- repoFork :: !(Maybe Bool)
- repoUrl :: !URL
- repoGitUrl :: !(Maybe URL)
- repoSshUrl :: !(Maybe URL)
- repoCloneUrl :: !(Maybe URL)
- repoHooksUrl :: !URL
- repoSvnUrl :: !(Maybe URL)
- repoHomepage :: !(Maybe Text)
- repoLanguage :: !(Maybe Language)
- repoForksCount :: !Int
- repoStargazersCount :: !Int
- repoWatchersCount :: !Int
- repoSize :: !(Maybe Int)
- repoDefaultBranch :: !(Maybe Text)
- repoOpenIssuesCount :: !Int
- repoHasIssues :: !(Maybe Bool)
- repoHasProjects :: !(Maybe Bool)
- repoHasWiki :: !(Maybe Bool)
- repoHasPages :: !(Maybe Bool)
- repoHasDownloads :: !(Maybe Bool)
- repoArchived :: !Bool
- repoDisabled :: !Bool
- repoPushedAt :: !(Maybe UTCTime)
- repoCreatedAt :: !(Maybe UTCTime)
- repoUpdatedAt :: !(Maybe UTCTime)
- repoPermissions :: !(Maybe RepoPermissions)
- data CodeSearchRepo = CodeSearchRepo {
- codeSearchRepoId :: !(Id Repo)
- codeSearchRepoName :: !(Name Repo)
- codeSearchRepoOwner :: !SimpleOwner
- codeSearchRepoPrivate :: !Bool
- codeSearchRepoHtmlUrl :: !URL
- codeSearchRepoDescription :: !(Maybe Text)
- codeSearchRepoFork :: !(Maybe Bool)
- codeSearchRepoUrl :: !URL
- codeSearchRepoGitUrl :: !(Maybe URL)
- codeSearchRepoSshUrl :: !(Maybe URL)
- codeSearchRepoCloneUrl :: !(Maybe URL)
- codeSearchRepoHooksUrl :: !URL
- codeSearchRepoSvnUrl :: !(Maybe URL)
- codeSearchRepoHomepage :: !(Maybe Text)
- codeSearchRepoLanguage :: !(Maybe Language)
- codeSearchRepoSize :: !(Maybe Int)
- codeSearchRepoDefaultBranch :: !(Maybe Text)
- codeSearchRepoHasIssues :: !(Maybe Bool)
- codeSearchRepoHasProjects :: !(Maybe Bool)
- codeSearchRepoHasWiki :: !(Maybe Bool)
- codeSearchRepoHasPages :: !(Maybe Bool)
- codeSearchRepoHasDownloads :: !(Maybe Bool)
- codeSearchRepoArchived :: !Bool
- codeSearchRepoDisabled :: !Bool
- codeSearchRepoPushedAt :: !(Maybe UTCTime)
- codeSearchRepoCreatedAt :: !(Maybe UTCTime)
- codeSearchRepoUpdatedAt :: !(Maybe UTCTime)
- codeSearchRepoPermissions :: !(Maybe RepoPermissions)
- data RepoPermissions = RepoPermissions {}
- data RepoRef = RepoRef {
- repoRefOwner :: !SimpleOwner
- repoRefRepo :: !(Name Repo)
- data NewRepo = NewRepo {
- newRepoName :: !(Name Repo)
- newRepoDescription :: !(Maybe Text)
- newRepoHomepage :: !(Maybe Text)
- newRepoPrivate :: !(Maybe Bool)
- newRepoHasIssues :: !(Maybe Bool)
- newRepoHasProjects :: !(Maybe Bool)
- newRepoHasWiki :: !(Maybe Bool)
- newRepoAutoInit :: !(Maybe Bool)
- newRepoGitignoreTemplate :: !(Maybe Text)
- newRepoLicenseTemplate :: !(Maybe Text)
- newRepoAllowSquashMerge :: !(Maybe Bool)
- newRepoAllowMergeCommit :: !(Maybe Bool)
- newRepoAllowRebaseMerge :: !(Maybe Bool)
- newRepo :: Name Repo -> NewRepo
- data EditRepo = EditRepo {
- editName :: !(Maybe (Name Repo))
- editDescription :: !(Maybe Text)
- editHomepage :: !(Maybe Text)
- editPrivate :: !(Maybe Bool)
- editHasIssues :: !(Maybe Bool)
- editHasProjects :: !(Maybe Bool)
- editHasWiki :: !(Maybe Bool)
- editDefaultBranch :: !(Maybe Text)
- editAllowSquashMerge :: !(Maybe Bool)
- editAllowMergeCommit :: !(Maybe Bool)
- editAllowRebaseMerge :: !(Maybe Bool)
- editArchived :: !(Maybe Bool)
- data RepoPublicity
- type Languages = HashMap Language Int
- newtype Language = Language Text
- getLanguage :: Language -> Text
- data Contributor
- contributorToSimpleUser :: Contributor -> Maybe SimpleUser
- data CollaboratorPermission
- data CollaboratorWithPermission = CollaboratorWithPermission SimpleUser CollaboratorPermission
- data ArchiveFormat
Documentation
Repo | |
|
Instances
data CodeSearchRepo Source #
Instances
data RepoPermissions Source #
Repository permissions, as they relate to the authenticated user.
Returned by for example currentUserReposR
RepoPermissions | |
|
Instances
RepoRef | |
|
Instances
Eq RepoRef Source # | |
Data RepoRef Source # | |
Defined in GitHub.Data.Repos gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RepoRef -> c RepoRef # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RepoRef # toConstr :: RepoRef -> Constr # dataTypeOf :: RepoRef -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RepoRef) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RepoRef) # gmapT :: (forall b. Data b => b -> b) -> RepoRef -> RepoRef # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RepoRef -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RepoRef -> r # gmapQ :: (forall d. Data d => d -> u) -> RepoRef -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> RepoRef -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> RepoRef -> m RepoRef # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RepoRef -> m RepoRef # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RepoRef -> m RepoRef # | |
Ord RepoRef Source # | |
Show RepoRef Source # | |
Generic RepoRef Source # | |
FromJSON RepoRef Source # | |
Binary RepoRef Source # | |
NFData RepoRef Source # | |
Defined in GitHub.Data.Repos | |
type Rep RepoRef Source # | |
Defined in GitHub.Data.Repos type Rep RepoRef = D1 ('MetaData "RepoRef" "GitHub.Data.Repos" "github-0.28.0.1-Ane44df1Z4EB2fvYeVzY0Q" 'False) (C1 ('MetaCons "RepoRef" 'PrefixI 'True) (S1 ('MetaSel ('Just "repoRefOwner") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SimpleOwner) :*: S1 ('MetaSel ('Just "repoRefRepo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Name Repo)))) |
NewRepo | |
|
Instances
EditRepo | |
|
Instances
data RepoPublicity Source #
Filter the list of the user's repos using any of these constructors.
RepoPublicityAll | All repos accessible to the user. |
RepoPublicityOwner | Only repos owned by the user. |
RepoPublicityPublic | Only public repos. |
RepoPublicityPrivate | Only private repos. |
RepoPublicityMember | Only repos to which the user is a member but not an owner. |
Instances
type Languages = HashMap Language Int Source #
The value is the number of bytes of code written in that language.
A programming language.
Instances
Eq Language Source # | |
Data Language Source # | |
Defined in GitHub.Data.Repos gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Language -> c Language # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Language # toConstr :: Language -> Constr # dataTypeOf :: Language -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Language) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Language) # gmapT :: (forall b. Data b => b -> b) -> Language -> Language # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Language -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Language -> r # gmapQ :: (forall d. Data d => d -> u) -> Language -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Language -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Language -> m Language # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Language -> m Language # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Language -> m Language # | |
Ord Language Source # | |
Defined in GitHub.Data.Repos | |
Show Language Source # | |
IsString Language Source # | |
Defined in GitHub.Data.Repos fromString :: String -> Language # | |
Generic Language Source # | |
Hashable Language Source # | |
Defined in GitHub.Data.Repos | |
ToJSON Language Source # | |
Defined in GitHub.Data.Repos | |
FromJSON Language Source # | |
FromJSONKey Language Source # | |
Defined in GitHub.Data.Repos | |
Binary Language Source # | |
NFData Language Source # | |
Defined in GitHub.Data.Repos | |
type Rep Language Source # | |
Defined in GitHub.Data.Repos |
getLanguage :: Language -> Text Source #
data Contributor Source #
KnownContributor !Int !URL !(Name User) !URL !(Id User) !Text | An existing Github user, with their number of contributions, avatar URL, login, URL, ID, and Gravatar ID. |
AnonymousContributor !Int !Text | An unknown Github user with their number of contributions and recorded name. |
Instances
data CollaboratorPermission Source #
The permission of a collaborator on a repository. See https://developer.github.com/v3/repos/collaborators/#review-a-users-permission-level
CollaboratorPermissionAdmin | |
CollaboratorPermissionWrite | |
CollaboratorPermissionRead | |
CollaboratorPermissionNone |
Instances
data CollaboratorWithPermission Source #
A collaborator and its permission on a repository. See https://developer.github.com/v3/repos/collaborators/#review-a-users-permission-level
Instances
data ArchiveFormat Source #
ArchiveFormatTarball | ".tar.gz" format |
ArchiveFormatZipball | ".zip" format |