Copyright | (c) Finlay Thompson 2015 |
---|---|
License | BSD3 |
Maintainer | finlay.thompson@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Most of the types only parse part of the data availble in the return values from the GitHub API. These will be added to as required.
- data CountedList name a = CountedList {
- totalCount :: Int
- items :: [a]
- data Organisation = Organisation {}
- data OrganisationMember = OrganisationMember {}
- type OrgLogin = Text
- type Owner = Text
- newtype UserLogin = UserLogin Text
- data Team = Team {
- teamId :: TeamId
- teamName :: Text
- teamDescription :: Maybe Text
- teamPermission :: Maybe Text
- type TeamId = Integer
- data Member = Member {
- memberId :: MemberId
- memberLogin :: Text
- type MemberId = Integer
- data Repository = Repository {}
- type Repositories = CountedList "repositories" Repository
- data Permission
- type RepositoryName = Text
- data User = User {}
- type RepoName = Text
- type Sha = Text
- data Commit = Commit {
- commitMessage :: Text
- commitUrl :: Text
- data Content = Content {
- contentType :: Text
- contentEncoding :: Text
- contentSize :: Int
- contentName :: Text
- contentPath :: Text
- contentContent :: Text
- data Issue = Issue {
- issueNumber :: Int
- issueUrl :: Text
- issueState :: Text
- issueTitle :: Text
- issueBody :: Text
- issueUser :: UserLogin
- issueAssignee :: Maybe UserLogin
- issueMilestone :: Maybe Milestone
- issueLabels :: [Label]
- issueLocked :: Bool
- issueComments :: Int
- issueCreated :: UTCTime
- issueUpdated :: UTCTime
- issueClosed :: Maybe UTCTime
- newtype Label = Label Text
- data Milestone = Milestone {
- milestoneNumber :: Int
- milestoneState :: Text
- milestoneTitle :: Text
- milestoneDescripiton :: Maybe Text
- milestoneCreator :: UserLogin
- milestoneOpenIssues :: Int
- milestoneClosedIssues :: Int
- milestoneCreated :: UTCTime
- milestoneUpdated :: Maybe UTCTime
- milestoneClosed :: Maybe UTCTime
- milestoneDueOn :: Maybe UTCTime
- data EarlyAccessJSON
- data Installation = Installation {}
- type Installations = CountedList "integration_installations" Installation
- data InstallationAccessToken = InstallationAccessToken {}
- data InstallationUser = InstallationUser {}
Documentation
data CountedList name a Source #
List of results including a total count
CountedList | |
|
(FromJSON a, KnownSymbol name) => FromJSON (CountedList name a) Source # | |
Team
Member
Member | |
|
type Repositories = CountedList "repositories" Repository Source #
Repositories
data Permission Source #
type RepositoryName = Text Source #
repositories are identified by their name
Organisation
Commit | |
|
Content
Content | |
|
Issue
Issue | |
|
data EarlyAccessJSON Source #
type Installations = CountedList "integration_installations" Installation Source #
IntegrationInstallations