-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Access to the Github API, v3. -- -- The Github API provides programmatic access to the full Github Web -- site, from Issues to Gists to repos down to the underlying git data -- like references and trees. This library wraps all of that, exposing a -- basic but Haskell-friendly set of functions and data structures. -- -- For more of an overview please see the README: -- https://github.com/fpco/github/blob/master/README.md @package github @version 0.11.1 -- | Verification of incomming webhook payloads, as described at -- https://developer.github.com/webhooks/securing/ module Github.Repos.Webhooks.Validate -- | Validates a given payload against a given HMAC hexdigest using a given -- secret. Returns True iff the given hash is non-empty and it's a -- valid signature of the payload. isValidPayload :: String -> Maybe String -> ByteString -> Bool module Github.Data.Definitions -- | Errors have been tagged according to their source, so you can more -- easily dispatch and handle them. data Error -- | A HTTP error occurred. The actual caught error is included. HTTPConnectionError :: SomeException -> Error -- | An error in the parser itself. ParseError :: String -> Error -- | The JSON is malformed or unexpected. JsonError :: String -> Error -- | Incorrect input. UserError :: String -> Error -- | A date in the Github format, which is a special case of ISO-8601. newtype GithubDate GithubDate :: UTCTime -> GithubDate fromGithubDate :: GithubDate -> UTCTime data Commit Commit :: String -> [Tree] -> String -> GitCommit -> Maybe GithubOwner -> Maybe GithubOwner -> [File] -> Maybe Stats -> Commit commitSha :: Commit -> String commitParents :: Commit -> [Tree] commitUrl :: Commit -> String commitGitCommit :: Commit -> GitCommit commitCommitter :: Commit -> Maybe GithubOwner commitAuthor :: Commit -> Maybe GithubOwner commitFiles :: Commit -> [File] commitStats :: Commit -> Maybe Stats data Tree Tree :: String -> String -> [GitTree] -> Tree treeSha :: Tree -> String treeUrl :: Tree -> String treeGitTrees :: Tree -> [GitTree] data GitTree GitTree :: String -> String -> Maybe String -> Maybe Int -> String -> String -> GitTree gitTreeType :: GitTree -> String gitTreeSha :: GitTree -> String gitTreeUrl :: GitTree -> Maybe String gitTreeSize :: GitTree -> Maybe Int gitTreePath :: GitTree -> String gitTreeMode :: GitTree -> String data GitCommit GitCommit :: String -> String -> GitUser -> GitUser -> Tree -> Maybe String -> [Tree] -> GitCommit gitCommitMessage :: GitCommit -> String gitCommitUrl :: GitCommit -> String gitCommitCommitter :: GitCommit -> GitUser gitCommitAuthor :: GitCommit -> GitUser gitCommitTree :: GitCommit -> Tree gitCommitSha :: GitCommit -> Maybe String gitCommitParents :: GitCommit -> [Tree] data GithubOwner GithubUser :: String -> String -> String -> Int -> Maybe String -> GithubOwner githubOwnerAvatarUrl :: GithubOwner -> String githubOwnerLogin :: GithubOwner -> String githubOwnerUrl :: GithubOwner -> String githubOwnerId :: GithubOwner -> Int githubOwnerGravatarId :: GithubOwner -> Maybe String GithubOrganization :: String -> String -> String -> Int -> GithubOwner githubOwnerAvatarUrl :: GithubOwner -> String githubOwnerLogin :: GithubOwner -> String githubOwnerUrl :: GithubOwner -> String githubOwnerId :: GithubOwner -> Int data GitUser GitUser :: String -> String -> GithubDate -> GitUser gitUserName :: GitUser -> String gitUserEmail :: GitUser -> String gitUserDate :: GitUser -> GithubDate data File File :: String -> String -> String -> Int -> String -> Int -> String -> String -> Int -> File fileBlobUrl :: File -> String fileStatus :: File -> String fileRawUrl :: File -> String fileAdditions :: File -> Int fileSha :: File -> String fileChanges :: File -> Int filePatch :: File -> String fileFilename :: File -> String fileDeletions :: File -> Int data Stats Stats :: Int -> Int -> Int -> Stats statsAdditions :: Stats -> Int statsTotal :: Stats -> Int statsDeletions :: Stats -> Int data Comment Comment :: Maybe Int -> Maybe Int -> String -> Maybe String -> UTCTime -> Maybe String -> String -> Maybe UTCTime -> Maybe String -> GithubOwner -> Int -> Comment commentPosition :: Comment -> Maybe Int commentLine :: Comment -> Maybe Int commentBody :: Comment -> String commentCommitId :: Comment -> Maybe String commentUpdatedAt :: Comment -> UTCTime commentHtmlUrl :: Comment -> Maybe String commentUrl :: Comment -> String commentCreatedAt :: Comment -> Maybe UTCTime commentPath :: Comment -> Maybe String commentUser :: Comment -> GithubOwner commentId :: Comment -> Int data NewComment NewComment :: String -> NewComment newCommentBody :: NewComment -> String data EditComment EditComment :: String -> EditComment editCommentBody :: EditComment -> String data Diff Diff :: String -> Int -> String -> String -> Commit -> [Commit] -> Int -> String -> [File] -> Int -> String -> String -> Diff diffStatus :: Diff -> String diffBehindBy :: Diff -> Int diffPatchUrl :: Diff -> String diffUrl :: Diff -> String diffBaseCommit :: Diff -> Commit diffCommits :: Diff -> [Commit] diffTotalCommits :: Diff -> Int diffHtmlUrl :: Diff -> String diffFiles :: Diff -> [File] diffAheadBy :: Diff -> Int diffDiffUrl :: Diff -> String diffPermalinkUrl :: Diff -> String data Gist Gist :: GithubOwner -> String -> String -> Maybe String -> GithubDate -> Bool -> Int -> GithubDate -> String -> String -> [GistFile] -> String -> Gist gistUser :: Gist -> GithubOwner gistGitPushUrl :: Gist -> String gistUrl :: Gist -> String gistDescription :: Gist -> Maybe String gistCreatedAt :: Gist -> GithubDate gistPublic :: Gist -> Bool gistComments :: Gist -> Int gistUpdatedAt :: Gist -> GithubDate gistHtmlUrl :: Gist -> String gistId :: Gist -> String gistFiles :: Gist -> [GistFile] gistGitPullUrl :: Gist -> String data GistFile GistFile :: String -> String -> Int -> Maybe String -> String -> Maybe String -> GistFile gistFileType :: GistFile -> String gistFileRawUrl :: GistFile -> String gistFileSize :: GistFile -> Int gistFileLanguage :: GistFile -> Maybe String gistFileFilename :: GistFile -> String gistFileContent :: GistFile -> Maybe String data GistComment GistComment :: GithubOwner -> String -> GithubDate -> String -> GithubDate -> Int -> GistComment gistCommentUser :: GistComment -> GithubOwner gistCommentUrl :: GistComment -> String gistCommentCreatedAt :: GistComment -> GithubDate gistCommentBody :: GistComment -> String gistCommentUpdatedAt :: GistComment -> GithubDate gistCommentId :: GistComment -> Int data Blob Blob :: String -> String -> String -> String -> Int -> Blob blobUrl :: Blob -> String blobEncoding :: Blob -> String blobContent :: Blob -> String blobSha :: Blob -> String blobSize :: Blob -> Int data GitReference GitReference :: GitObject -> String -> String -> GitReference gitReferenceObject :: GitReference -> GitObject gitReferenceUrl :: GitReference -> String gitReferenceRef :: GitReference -> String data GitObject GitObject :: String -> String -> String -> GitObject gitObjectType :: GitObject -> String gitObjectSha :: GitObject -> String gitObjectUrl :: GitObject -> String data Issue Issue :: Maybe GithubDate -> GithubDate -> String -> Maybe String -> Maybe GithubOwner -> [IssueLabel] -> Int -> Maybe GithubOwner -> GithubOwner -> String -> Maybe PullRequestReference -> String -> GithubDate -> Maybe String -> String -> Int -> Int -> Maybe Milestone -> Issue issueClosedAt :: Issue -> Maybe GithubDate issueUpdatedAt :: Issue -> GithubDate issueEventsUrl :: Issue -> String issueHtmlUrl :: Issue -> Maybe String issueClosedBy :: Issue -> Maybe GithubOwner issueLabels :: Issue -> [IssueLabel] issueNumber :: Issue -> Int issueAssignee :: Issue -> Maybe GithubOwner issueUser :: Issue -> GithubOwner issueTitle :: Issue -> String issuePullRequest :: Issue -> Maybe PullRequestReference issueUrl :: Issue -> String issueCreatedAt :: Issue -> GithubDate issueBody :: Issue -> Maybe String issueState :: Issue -> String issueId :: Issue -> Int issueComments :: Issue -> Int issueMilestone :: Issue -> Maybe Milestone data NewIssue NewIssue :: String -> Maybe String -> Maybe String -> Maybe Int -> Maybe [String] -> NewIssue newIssueTitle :: NewIssue -> String newIssueBody :: NewIssue -> Maybe String newIssueAssignee :: NewIssue -> Maybe String newIssueMilestone :: NewIssue -> Maybe Int newIssueLabels :: NewIssue -> Maybe [String] data EditIssue EditIssue :: Maybe String -> Maybe String -> Maybe String -> Maybe String -> Maybe Int -> Maybe [String] -> EditIssue editIssueTitle :: EditIssue -> Maybe String editIssueBody :: EditIssue -> Maybe String editIssueAssignee :: EditIssue -> Maybe String editIssueState :: EditIssue -> Maybe String editIssueMilestone :: EditIssue -> Maybe Int editIssueLabels :: EditIssue -> Maybe [String] data Milestone Milestone :: GithubOwner -> Maybe GithubDate -> Int -> Int -> Int -> Maybe String -> String -> String -> GithubDate -> String -> Milestone milestoneCreator :: Milestone -> GithubOwner milestoneDueOn :: Milestone -> Maybe GithubDate milestoneOpenIssues :: Milestone -> Int milestoneNumber :: Milestone -> Int milestoneClosedIssues :: Milestone -> Int milestoneDescription :: Milestone -> Maybe String milestoneTitle :: Milestone -> String milestoneUrl :: Milestone -> String milestoneCreatedAt :: Milestone -> GithubDate milestoneState :: Milestone -> String data IssueLabel IssueLabel :: String -> String -> String -> IssueLabel labelColor :: IssueLabel -> String labelUrl :: IssueLabel -> String labelName :: IssueLabel -> String data PullRequestReference PullRequestReference :: Maybe String -> Maybe String -> Maybe String -> PullRequestReference pullRequestReferenceHtmlUrl :: PullRequestReference -> Maybe String pullRequestReferencePatchUrl :: PullRequestReference -> Maybe String pullRequestReferenceDiffUrl :: PullRequestReference -> Maybe String data IssueComment IssueComment :: GithubDate -> GithubOwner -> String -> GithubDate -> String -> Int -> IssueComment issueCommentUpdatedAt :: IssueComment -> GithubDate issueCommentUser :: IssueComment -> GithubOwner issueCommentUrl :: IssueComment -> String issueCommentCreatedAt :: IssueComment -> GithubDate issueCommentBody :: IssueComment -> String issueCommentId :: IssueComment -> Int -- | Data describing an Event. data EventType Mentioned :: EventType -- | The actor subscribed to receive notifications for an issue. Subscribed :: EventType -- | The issue was unsubscribed from by the actor. Unsubscribed :: EventType -- | The issue was referenced from a commit message. The commit_id -- attribute is the commit SHA1 of where that happened. Referenced :: EventType -- | The issue was merged by the actor. The commit_id attribute is the SHA1 -- of the HEAD commit that was merged. Merged :: EventType -- | The issue was assigned to the actor. Assigned :: EventType -- | The issue was closed by the actor. When the commit_id is present, it -- identifies the commit that closed the issue using “closes / fixes #NN” -- syntax. Closed :: EventType -- | The issue was reopened by the actor. Reopened :: EventType -- | The issue was unassigned to the actor ActorUnassigned :: EventType -- | A label was added to the issue. Labeled :: EventType -- | A label was removed from the issue. Unlabeled :: EventType -- | The issue was added to a milestone. Milestoned :: EventType -- | The issue was removed from a milestone. Demilestoned :: EventType -- | The issue title was changed. Renamed :: EventType -- | The issue was locked by the actor. Locked :: EventType -- | The issue was unlocked by the actor. Unlocked :: EventType -- | The pull request’s branch was deleted. HeadRefDeleted :: EventType -- | The pull request’s branch was restored. HeadRefRestored :: EventType data Event Event :: GithubOwner -> EventType -> Maybe String -> String -> GithubDate -> Int -> Maybe Issue -> Event eventActor :: Event -> GithubOwner eventType :: Event -> EventType eventCommitId :: Event -> Maybe String eventUrl :: Event -> String eventCreatedAt :: Event -> GithubDate eventId :: Event -> Int eventIssue :: Event -> Maybe Issue data SimpleOrganization SimpleOrganization :: String -> String -> Int -> String -> SimpleOrganization simpleOrganizationUrl :: SimpleOrganization -> String simpleOrganizationAvatarUrl :: SimpleOrganization -> String simpleOrganizationId :: SimpleOrganization -> Int simpleOrganizationLogin :: SimpleOrganization -> String data Organization Organization :: String -> Maybe String -> Maybe String -> String -> Int -> Maybe String -> String -> Int -> String -> Maybe String -> Int -> Int -> String -> GithubDate -> Maybe String -> Int -> Organization organizationType :: Organization -> String organizationBlog :: Organization -> Maybe String organizationLocation :: Organization -> Maybe String organizationLogin :: Organization -> String organizationFollowers :: Organization -> Int organizationCompany :: Organization -> Maybe String organizationAvatarUrl :: Organization -> String organizationPublicGists :: Organization -> Int organizationHtmlUrl :: Organization -> String organizationEmail :: Organization -> Maybe String organizationFollowing :: Organization -> Int organizationPublicRepos :: Organization -> Int organizationUrl :: Organization -> String organizationCreatedAt :: Organization -> GithubDate organizationName :: Organization -> Maybe String organizationId :: Organization -> Int data PullRequest PullRequest :: Maybe GithubDate -> GithubDate -> GithubOwner -> String -> String -> Int -> String -> GithubDate -> String -> String -> String -> String -> PullRequestLinks -> Maybe GithubDate -> String -> Int -> PullRequest pullRequestClosedAt :: PullRequest -> Maybe GithubDate pullRequestCreatedAt :: PullRequest -> GithubDate pullRequestUser :: PullRequest -> GithubOwner pullRequestPatchUrl :: PullRequest -> String pullRequestState :: PullRequest -> String pullRequestNumber :: PullRequest -> Int pullRequestHtmlUrl :: PullRequest -> String pullRequestUpdatedAt :: PullRequest -> GithubDate pullRequestBody :: PullRequest -> String pullRequestIssueUrl :: PullRequest -> String pullRequestDiffUrl :: PullRequest -> String pullRequestUrl :: PullRequest -> String pullRequestLinks :: PullRequest -> PullRequestLinks pullRequestMergedAt :: PullRequest -> Maybe GithubDate pullRequestTitle :: PullRequest -> String pullRequestId :: PullRequest -> Int data DetailedPullRequest DetailedPullRequest :: Maybe GithubDate -> GithubDate -> GithubOwner -> String -> String -> Int -> String -> GithubDate -> String -> String -> String -> String -> PullRequestLinks -> Maybe GithubDate -> String -> Int -> Maybe GithubOwner -> Int -> PullRequestCommit -> Int -> Int -> Int -> Int -> PullRequestCommit -> Int -> Bool -> Maybe Bool -> DetailedPullRequest detailedPullRequestClosedAt :: DetailedPullRequest -> Maybe GithubDate detailedPullRequestCreatedAt :: DetailedPullRequest -> GithubDate detailedPullRequestUser :: DetailedPullRequest -> GithubOwner detailedPullRequestPatchUrl :: DetailedPullRequest -> String detailedPullRequestState :: DetailedPullRequest -> String detailedPullRequestNumber :: DetailedPullRequest -> Int detailedPullRequestHtmlUrl :: DetailedPullRequest -> String detailedPullRequestUpdatedAt :: DetailedPullRequest -> GithubDate detailedPullRequestBody :: DetailedPullRequest -> String detailedPullRequestIssueUrl :: DetailedPullRequest -> String detailedPullRequestDiffUrl :: DetailedPullRequest -> String detailedPullRequestUrl :: DetailedPullRequest -> String detailedPullRequestLinks :: DetailedPullRequest -> PullRequestLinks detailedPullRequestMergedAt :: DetailedPullRequest -> Maybe GithubDate detailedPullRequestTitle :: DetailedPullRequest -> String detailedPullRequestId :: DetailedPullRequest -> Int detailedPullRequestMergedBy :: DetailedPullRequest -> Maybe GithubOwner detailedPullRequestChangedFiles :: DetailedPullRequest -> Int detailedPullRequestHead :: DetailedPullRequest -> PullRequestCommit detailedPullRequestComments :: DetailedPullRequest -> Int detailedPullRequestDeletions :: DetailedPullRequest -> Int detailedPullRequestAdditions :: DetailedPullRequest -> Int detailedPullRequestReviewComments :: DetailedPullRequest -> Int detailedPullRequestBase :: DetailedPullRequest -> PullRequestCommit detailedPullRequestCommits :: DetailedPullRequest -> Int detailedPullRequestMerged :: DetailedPullRequest -> Bool detailedPullRequestMergeable :: DetailedPullRequest -> Maybe Bool data EditPullRequest EditPullRequest :: Maybe String -> Maybe String -> Maybe EditPullRequestState -> EditPullRequest editPullRequestTitle :: EditPullRequest -> Maybe String editPullRequestBody :: EditPullRequest -> Maybe String editPullRequestState :: EditPullRequest -> Maybe EditPullRequestState data PullRequestLinks PullRequestLinks :: String -> String -> String -> String -> PullRequestLinks pullRequestLinksReviewComments :: PullRequestLinks -> String pullRequestLinksComments :: PullRequestLinks -> String pullRequestLinksHtml :: PullRequestLinks -> String pullRequestLinksSelf :: PullRequestLinks -> String data PullRequestCommit PullRequestCommit :: String -> String -> String -> GithubOwner -> Repo -> PullRequestCommit pullRequestCommitLabel :: PullRequestCommit -> String pullRequestCommitRef :: PullRequestCommit -> String pullRequestCommitSha :: PullRequestCommit -> String pullRequestCommitUser :: PullRequestCommit -> GithubOwner pullRequestCommitRepo :: PullRequestCommit -> Repo data SearchReposResult SearchReposResult :: Int -> [Repo] -> SearchReposResult searchReposTotalCount :: SearchReposResult -> Int searchReposRepos :: SearchReposResult -> [Repo] data Repo Repo :: Maybe String -> Maybe String -> Maybe GithubDate -> String -> Maybe String -> Maybe Int -> Maybe String -> Maybe Bool -> Maybe String -> Bool -> Maybe String -> Maybe Int -> Maybe GithubDate -> Maybe Int -> GithubOwner -> String -> Maybe String -> Maybe String -> Maybe GithubDate -> Int -> String -> Maybe Int -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe RepoRef -> Maybe RepoRef -> String -> Repo repoSshUrl :: Repo -> Maybe String repoDescription :: Repo -> Maybe String repoCreatedAt :: Repo -> Maybe GithubDate repoHtmlUrl :: Repo -> String repoSvnUrl :: Repo -> Maybe String repoForks :: Repo -> Maybe Int repoHomepage :: Repo -> Maybe String repoFork :: Repo -> Maybe Bool repoGitUrl :: Repo -> Maybe String repoPrivate :: Repo -> Bool repoCloneUrl :: Repo -> Maybe String repoSize :: Repo -> Maybe Int repoUpdatedAt :: Repo -> Maybe GithubDate repoWatchers :: Repo -> Maybe Int repoOwner :: Repo -> GithubOwner repoName :: Repo -> String repoLanguage :: Repo -> Maybe String repoMasterBranch :: Repo -> Maybe String -- | this is Nothing for new repositories repoPushedAt :: Repo -> Maybe GithubDate repoId :: Repo -> Int repoUrl :: Repo -> String repoOpenIssues :: Repo -> Maybe Int repoHasWiki :: Repo -> Maybe Bool repoHasIssues :: Repo -> Maybe Bool repoHasDownloads :: Repo -> Maybe Bool repoParent :: Repo -> Maybe RepoRef repoSource :: Repo -> Maybe RepoRef repoHooksUrl :: Repo -> String data RepoRef RepoRef :: GithubOwner -> String -> RepoRef data SearchCodeResult SearchCodeResult :: Int -> [Code] -> SearchCodeResult searchCodeTotalCount :: SearchCodeResult -> Int searchCodeCodes :: SearchCodeResult -> [Code] data Code Code :: String -> String -> String -> String -> String -> String -> Repo -> Code codeName :: Code -> String codePath :: Code -> String codeSha :: Code -> String codeUrl :: Code -> String codeGitUrl :: Code -> String codeHtmlUrl :: Code -> String codeRepo :: Code -> Repo data Content ContentFile :: ContentData -> Content ContentDirectory :: [ContentData] -> Content data ContentData ContentData :: String -> String -> Int -> String -> String -> String -> String -> String -> String -> String -> ContentData contentType :: ContentData -> String contentEncoding :: ContentData -> String contentSize :: ContentData -> Int contentName :: ContentData -> String contentPath :: ContentData -> String contentData :: ContentData -> String contentSha :: ContentData -> String contentUrl :: ContentData -> String contentGitUrl :: ContentData -> String contentHtmlUrl :: ContentData -> String data Contributor -- | An existing Github user, with their number of contributions, avatar -- URL, login, URL, ID, and Gravatar ID. KnownContributor :: Int -> String -> String -> String -> Int -> String -> Contributor -- | An unknown Github user with their number of contributions and recorded -- name. AnonymousContributor :: Int -> String -> Contributor -- | This is only used for the FromJSON instance. data Languages Languages :: [Language] -> Languages getLanguages :: Languages -> [Language] -- | A programming language with the name and number of characters written -- in it. data Language Language :: String -> Int -> Language data Tag Tag :: String -> String -> String -> BranchCommit -> Tag tagName :: Tag -> String tagZipballUrl :: Tag -> String tagTarballUrl :: Tag -> String tagCommit :: Tag -> BranchCommit data Branch Branch :: String -> BranchCommit -> Branch branchName :: Branch -> String branchCommit :: Branch -> BranchCommit data BranchCommit BranchCommit :: String -> String -> BranchCommit branchCommitSha :: BranchCommit -> String branchCommitUrl :: BranchCommit -> String data DetailedOwner DetailedUser :: GithubDate -> String -> Int -> String -> Int -> Int -> Maybe Bool -> Maybe String -> Maybe String -> Maybe String -> Int -> Maybe String -> Maybe String -> Maybe String -> Maybe String -> String -> Int -> String -> String -> DetailedOwner detailedOwnerCreatedAt :: DetailedOwner -> GithubDate detailedOwnerType :: DetailedOwner -> String detailedOwnerPublicGists :: DetailedOwner -> Int detailedOwnerAvatarUrl :: DetailedOwner -> String detailedOwnerFollowers :: DetailedOwner -> Int detailedOwnerFollowing :: DetailedOwner -> Int detailedOwnerHireable :: DetailedOwner -> Maybe Bool detailedOwnerGravatarId :: DetailedOwner -> Maybe String detailedOwnerBlog :: DetailedOwner -> Maybe String detailedOwnerBio :: DetailedOwner -> Maybe String detailedOwnerPublicRepos :: DetailedOwner -> Int detailedOwnerName :: DetailedOwner -> Maybe String detailedOwnerLocation :: DetailedOwner -> Maybe String detailedOwnerCompany :: DetailedOwner -> Maybe String detailedOwnerEmail :: DetailedOwner -> Maybe String detailedOwnerUrl :: DetailedOwner -> String detailedOwnerId :: DetailedOwner -> Int detailedOwnerHtmlUrl :: DetailedOwner -> String detailedOwnerLogin :: DetailedOwner -> String DetailedOrganization :: GithubDate -> String -> Int -> String -> Int -> Int -> Maybe String -> Maybe String -> Int -> Maybe String -> Maybe String -> Maybe String -> String -> Int -> String -> String -> DetailedOwner detailedOwnerCreatedAt :: DetailedOwner -> GithubDate detailedOwnerType :: DetailedOwner -> String detailedOwnerPublicGists :: DetailedOwner -> Int detailedOwnerAvatarUrl :: DetailedOwner -> String detailedOwnerFollowers :: DetailedOwner -> Int detailedOwnerFollowing :: DetailedOwner -> Int detailedOwnerBlog :: DetailedOwner -> Maybe String detailedOwnerBio :: DetailedOwner -> Maybe String detailedOwnerPublicRepos :: DetailedOwner -> Int detailedOwnerName :: DetailedOwner -> Maybe String detailedOwnerLocation :: DetailedOwner -> Maybe String detailedOwnerCompany :: DetailedOwner -> Maybe String detailedOwnerUrl :: DetailedOwner -> String detailedOwnerId :: DetailedOwner -> Int detailedOwnerHtmlUrl :: DetailedOwner -> String detailedOwnerLogin :: DetailedOwner -> String data RepoWebhook RepoWebhook :: String -> String -> Integer -> String -> Bool -> [RepoWebhookEvent] -> Map String String -> RepoWebhookResponse -> GithubDate -> GithubDate -> RepoWebhook repoWebhookUrl :: RepoWebhook -> String repoWebhookTestUrl :: RepoWebhook -> String repoWebhookId :: RepoWebhook -> Integer repoWebhookName :: RepoWebhook -> String repoWebhookActive :: RepoWebhook -> Bool repoWebhookEvents :: RepoWebhook -> [RepoWebhookEvent] repoWebhookConfig :: RepoWebhook -> Map String String repoWebhookLastResponse :: RepoWebhook -> RepoWebhookResponse repoWebhookUpdatedAt :: RepoWebhook -> GithubDate repoWebhookCreatedAt :: RepoWebhook -> GithubDate data RepoWebhookEvent WebhookWildcardEvent :: RepoWebhookEvent WebhookCommitCommentEvent :: RepoWebhookEvent WebhookCreateEvent :: RepoWebhookEvent WebhookDeleteEvent :: RepoWebhookEvent WebhookDeploymentEvent :: RepoWebhookEvent WebhookDeploymentStatusEvent :: RepoWebhookEvent WebhookForkEvent :: RepoWebhookEvent WebhookGollumEvent :: RepoWebhookEvent WebhookIssueCommentEvent :: RepoWebhookEvent WebhookIssuesEvent :: RepoWebhookEvent WebhookMemberEvent :: RepoWebhookEvent WebhookPageBuildEvent :: RepoWebhookEvent WebhookPublicEvent :: RepoWebhookEvent WebhookPullRequestReviewCommentEvent :: RepoWebhookEvent WebhookPullRequestEvent :: RepoWebhookEvent WebhookPushEvent :: RepoWebhookEvent WebhookReleaseEvent :: RepoWebhookEvent WebhookStatusEvent :: RepoWebhookEvent WebhookTeamAddEvent :: RepoWebhookEvent WebhookWatchEvent :: RepoWebhookEvent data RepoWebhookResponse RepoWebhookResponse :: Maybe Int -> String -> Maybe String -> RepoWebhookResponse repoWebhookResponseCode :: RepoWebhookResponse -> Maybe Int repoWebhookResponseStatus :: RepoWebhookResponse -> String repoWebhookResponseMessage :: RepoWebhookResponse -> Maybe String data PullRequestEvent PullRequestEvent :: PullRequestEventType -> Int -> DetailedPullRequest -> Repo -> GithubOwner -> PullRequestEvent pullRequestEventAction :: PullRequestEvent -> PullRequestEventType pullRequestEventNumber :: PullRequestEvent -> Int pullRequestEventPullRequest :: PullRequestEvent -> DetailedPullRequest pullRequestRepository :: PullRequestEvent -> Repo pullRequestSender :: PullRequestEvent -> GithubOwner data PullRequestEventType PullRequestOpened :: PullRequestEventType PullRequestClosed :: PullRequestEventType PullRequestSynchronized :: PullRequestEventType PullRequestReopened :: PullRequestEventType PullRequestAssigned :: PullRequestEventType PullRequestUnassigned :: PullRequestEventType PullRequestLabeled :: PullRequestEventType PullRequestUnlabeled :: PullRequestEventType data PingEvent PingEvent :: String -> RepoWebhook -> Int -> PingEvent pingEventZen :: PingEvent -> String pingEventHook :: PingEvent -> RepoWebhook pingEventHookId :: PingEvent -> Int data EditPullRequestState EditPullRequestStateOpen :: EditPullRequestState EditPullRequestStateClosed :: EditPullRequestState instance Typeable GithubDate instance Typeable GitTree instance Typeable Tree instance Typeable GithubOwner instance Typeable GitUser instance Typeable GitCommit instance Typeable File instance Typeable Stats instance Typeable Commit instance Typeable Comment instance Typeable NewComment instance Typeable EditComment instance Typeable Diff instance Typeable GistFile instance Typeable Gist instance Typeable GistComment instance Typeable Blob instance Typeable GitObject instance Typeable GitReference instance Typeable NewIssue instance Typeable EditIssue instance Typeable Milestone instance Typeable IssueLabel instance Typeable PullRequestReference instance Typeable Issue instance Typeable IssueComment instance Typeable EventType instance Typeable Event instance Typeable SimpleOrganization instance Typeable Organization instance Typeable PullRequestLinks instance Typeable PullRequest instance Typeable RepoRef instance Typeable Repo instance Typeable SearchReposResult instance Typeable PullRequestCommit instance Typeable DetailedPullRequest instance Typeable Code instance Typeable SearchCodeResult instance Typeable ContentData instance Typeable Content instance Typeable Contributor instance Typeable Language instance Typeable Languages instance Typeable BranchCommit instance Typeable Branch instance Typeable Tag instance Typeable DetailedOwner instance Typeable RepoWebhookEvent instance Typeable RepoWebhookResponse instance Typeable RepoWebhook instance Typeable PullRequestEventType instance Typeable PullRequestEvent instance Typeable PingEvent instance Show Error instance Show GithubDate instance Data GithubDate instance Eq GithubDate instance Ord GithubDate instance Show GitTree instance Data GitTree instance Eq GitTree instance Ord GitTree instance Show Tree instance Data Tree instance Eq Tree instance Ord Tree instance Show GithubOwner instance Data GithubOwner instance Eq GithubOwner instance Ord GithubOwner instance Show GitUser instance Data GitUser instance Eq GitUser instance Ord GitUser instance Show GitCommit instance Data GitCommit instance Eq GitCommit instance Ord GitCommit instance Show File instance Data File instance Eq File instance Ord File instance Show Stats instance Data Stats instance Eq Stats instance Ord Stats instance Show Commit instance Data Commit instance Eq Commit instance Ord Commit instance Show Comment instance Data Comment instance Eq Comment instance Ord Comment instance Show NewComment instance Data NewComment instance Eq NewComment instance Ord NewComment instance Show EditComment instance Data EditComment instance Eq EditComment instance Ord EditComment instance Show Diff instance Data Diff instance Eq Diff instance Ord Diff instance Show GistFile instance Data GistFile instance Eq GistFile instance Ord GistFile instance Show Gist instance Data Gist instance Eq Gist instance Ord Gist instance Show GistComment instance Data GistComment instance Eq GistComment instance Ord GistComment instance Show Blob instance Data Blob instance Eq Blob instance Ord Blob instance Show GitObject instance Data GitObject instance Eq GitObject instance Ord GitObject instance Show GitReference instance Data GitReference instance Eq GitReference instance Ord GitReference instance Show NewIssue instance Data NewIssue instance Eq NewIssue instance Ord NewIssue instance Show EditIssue instance Data EditIssue instance Eq EditIssue instance Ord EditIssue instance Show Milestone instance Data Milestone instance Eq Milestone instance Ord Milestone instance Show IssueLabel instance Data IssueLabel instance Eq IssueLabel instance Ord IssueLabel instance Show PullRequestReference instance Data PullRequestReference instance Eq PullRequestReference instance Ord PullRequestReference instance Show Issue instance Data Issue instance Eq Issue instance Ord Issue instance Show IssueComment instance Data IssueComment instance Eq IssueComment instance Ord IssueComment instance Show EventType instance Data EventType instance Eq EventType instance Ord EventType instance Show Event instance Data Event instance Eq Event instance Ord Event instance Show SimpleOrganization instance Data SimpleOrganization instance Eq SimpleOrganization instance Ord SimpleOrganization instance Show Organization instance Data Organization instance Eq Organization instance Ord Organization instance Show PullRequestLinks instance Data PullRequestLinks instance Eq PullRequestLinks instance Ord PullRequestLinks instance Show PullRequest instance Data PullRequest instance Eq PullRequest instance Ord PullRequest instance Show RepoRef instance Data RepoRef instance Eq RepoRef instance Ord RepoRef instance Show Repo instance Data Repo instance Eq Repo instance Ord Repo instance Show SearchReposResult instance Data SearchReposResult instance Eq SearchReposResult instance Ord SearchReposResult instance Show PullRequestCommit instance Data PullRequestCommit instance Eq PullRequestCommit instance Ord PullRequestCommit instance Show DetailedPullRequest instance Data DetailedPullRequest instance Eq DetailedPullRequest instance Ord DetailedPullRequest instance Show Code instance Data Code instance Eq Code instance Ord Code instance Show SearchCodeResult instance Data SearchCodeResult instance Eq SearchCodeResult instance Ord SearchCodeResult instance Show ContentData instance Data ContentData instance Eq ContentData instance Ord ContentData instance Show Content instance Data Content instance Eq Content instance Ord Content instance Show Contributor instance Data Contributor instance Eq Contributor instance Ord Contributor instance Show Language instance Data Language instance Eq Language instance Ord Language instance Show Languages instance Data Languages instance Eq Languages instance Ord Languages instance Show BranchCommit instance Data BranchCommit instance Eq BranchCommit instance Ord BranchCommit instance Show Branch instance Data Branch instance Eq Branch instance Ord Branch instance Show Tag instance Data Tag instance Eq Tag instance Ord Tag instance Show DetailedOwner instance Data DetailedOwner instance Eq DetailedOwner instance Ord DetailedOwner instance Show RepoWebhookEvent instance Data RepoWebhookEvent instance Eq RepoWebhookEvent instance Ord RepoWebhookEvent instance Show RepoWebhookResponse instance Data RepoWebhookResponse instance Eq RepoWebhookResponse instance Ord RepoWebhookResponse instance Show RepoWebhook instance Data RepoWebhook instance Eq RepoWebhook instance Ord RepoWebhook instance Show PullRequestEventType instance Data PullRequestEventType instance Eq PullRequestEventType instance Ord PullRequestEventType instance Show PullRequestEvent instance Data PullRequestEvent instance Eq PullRequestEvent instance Ord PullRequestEvent instance Show PingEvent instance Data PingEvent instance Eq PingEvent instance Ord PingEvent instance Show EditPullRequestState instance Show EditPullRequest -- | This module re-exports the Github.Data.Definitions module, -- adding instances of FromJSON to it. If you wish to use the -- data without the instances, use the Github.Data.Definitions -- module instead. module Github.Data instance FromJSON ContentData instance FromJSON Content instance FromJSON RepoWebhookResponse instance FromJSON RepoWebhook instance FromJSON DetailedOwner instance FromJSON BranchCommit instance FromJSON Branch instance FromJSON Tag instance FromJSON Languages instance FromJSON Contributor instance FromJSON RepoRef instance FromJSON Code instance FromJSON SearchCodeResult instance FromJSON Repo instance FromJSON SearchReposResult instance FromJSON PingEvent instance ToJSON RepoWebhookEvent instance FromJSON RepoWebhookEvent instance FromJSON PullRequestEventType instance FromJSON PullRequestEvent instance FromJSON PullRequestCommit instance FromJSON PullRequestLinks instance FromJSON DetailedPullRequest instance ToJSON EditPullRequest instance ToJSON EditPullRequestState instance FromJSON PullRequest instance FromJSON Organization instance FromJSON SimpleOrganization instance FromJSON EventType instance FromJSON Event instance FromJSON IssueComment instance FromJSON PullRequestReference instance FromJSON IssueLabel instance FromJSON Milestone instance ToJSON EditIssue instance ToJSON NewIssue instance FromJSON Issue instance FromJSON GitObject instance FromJSON GitReference instance FromJSON Blob instance FromJSON GistComment instance FromJSON GistFile instance FromJSON Gist instance FromJSON Diff instance ToJSON EditComment instance ToJSON NewComment instance FromJSON Comment instance FromJSON Stats instance FromJSON File instance FromJSON GitUser instance FromJSON GithubOwner instance FromJSON GitCommit instance FromJSON GitTree instance FromJSON Tree instance FromJSON Commit instance FromJSON GithubDate module Github.Events parseEvent :: (FromJSON b, Show b) => ByteString -> Either Error b -- | The gists API as described at -- http://developer.github.com/v3/gists/. module Github.Gists -- | The list of all public gists created by the user. -- --
--   gists "mike-burns"
--   
gists :: String -> IO (Either Error [Gist]) -- | The list of all gists created by the user -- --
--   gists' (Just ("github-username", "github-password")) "mike-burns"
--   
gists' :: Maybe GithubAuth -> String -> IO (Either Error [Gist]) -- | A specific gist, given its id. -- --
--   gist "225074"
--   
gist :: String -> IO (Either Error Gist) -- | A specific gist, given its id, with authentication credentials -- --
--   gist' (Just ("github-username", "github-password")) "225074"
--   
gist' :: Maybe GithubAuth -> String -> IO (Either Error Gist) -- | The loving comments people have left on Gists, described on -- http://developer.github.com/v3/gists/comments/. module Github.Gists.Comments -- | All the comments on a Gist, given the Gist ID. -- --
--   commentsOn "1174060"
--   
commentsOn :: String -> IO (Either Error [GistComment]) -- | A specific comment, by the comment ID. -- --
--   comment "62449"
--   
comment :: String -> IO (Either Error GistComment) -- | The API for underlying git commits of a Github repo, as described on -- http://developer.github.com/v3/git/commits/. module Github.GitData.Commits -- | A single commit, by SHA1. -- --
--   commit "thoughtbot" "paperclip" "bc5c51d1ece1ee45f94b056a0f5a1674d7e8cba9"
--   
commit :: String -> String -> String -> IO (Either Error GitCommit) -- | The underlying git references on a Github repo, exposed for the world -- to see. The git internals documentation will also prove handy for -- understanding these. API documentation at -- http://developer.github.com/v3/git/refs/. module Github.GitData.References -- | A single reference by the ref name. -- --
--   reference "mike-burns" "github" "heads/master"
--   
reference :: String -> String -> String -> IO (Either Error GitReference) -- | The history of references for a repo. -- --
--   references "mike-burns" "github"
--   
references :: String -> String -> IO (Either Error [GitReference]) -- | Limited references by a namespace. -- --
--   namespacedReferences "thoughtbot" "paperclip" "tags"
--   
namespacedReferences :: String -> String -> String -> IO (Either Error [GitReference]) -- | The underlying tree of SHA1s and files that make up a git repo. The -- API is described on http://developer.github.com/v3/git/trees/. module Github.GitData.Trees -- | A tree for a SHA1. -- --
--   tree "thoughtbot" "paperclip" "fe114451f7d066d367a1646ca7ac10e689b46844"
--   
tree :: String -> String -> String -> IO (Either Error Tree) -- | A recursively-nested tree for a SHA1. -- --
--   nestedTree "thoughtbot" "paperclip" "fe114451f7d066d367a1646ca7ac10e689b46844"
--   
nestedTree :: String -> String -> String -> IO (Either Error Tree) -- | The API for dealing with git blobs from Github repos, as described in -- http://developer.github.com/v3/git/blobs/. module Github.GitData.Blobs -- | Get a blob by SHA1. -- --
--   blob "thoughtbot" "paperclip" "bc5c51d1ece1ee45f94b056a0f5a1674d7e8cba9"
--   
blob :: String -> String -> String -> IO (Either Error Blob) -- | The issues API as described on -- http://developer.github.com/v3/issues/. module Github.Issues -- | Details on a specific issue, given the repo owner and name, and the -- issue number. -- --
--   issue "thoughtbot" "paperclip" "462"
--   
issue :: String -> String -> Int -> IO (Either Error Issue) -- | Details on a specific issue, given the repo owner and name, and the -- issue number.' -- --
--   issue' (Just ("github-username", "github-password")) "thoughtbot" "paperclip" "462"
--   
issue' :: Maybe GithubAuth -> String -> String -> Int -> IO (Either Error Issue) -- | All issues for a repo (given the repo owner and name), with optional -- restrictions as described in the IssueLimitation data type. -- --
--   issuesForRepo "thoughtbot" "paperclip" [NoMilestone, OnlyClosed, Mentions "jyurek", Ascending]
--   
issuesForRepo :: String -> String -> [IssueLimitation] -> IO (Either Error [Issue]) -- | All issues for a repo (given the repo owner and name), with optional -- restrictions as described in the IssueLimitation data type. -- --
--   issuesForRepo' (Just ("github-username", "github-password")) "thoughtbot" "paperclip" [NoMilestone, OnlyClosed, Mentions "jyurek", Ascending]
--   
issuesForRepo' :: Maybe GithubAuth -> String -> String -> [IssueLimitation] -> IO (Either Error [Issue]) -- | A data structure for describing how to filter issues. This is used by -- issuesForRepo. data IssueLimitation -- | Issues appearing in any milestone. [default] AnyMilestone :: IssueLimitation -- | Issues without a milestone. NoMilestone :: IssueLimitation -- | Only issues that are in the milestone with the given id. MilestoneId :: Int -> IssueLimitation -- | Only open issues. [default] Open :: IssueLimitation -- | Only closed issues. OnlyClosed :: IssueLimitation -- | Issues to which no one has been assigned ownership. Unassigned :: IssueLimitation -- | All issues regardless of assignment. [default] AnyAssignment :: IssueLimitation -- | Only issues assigned to the user with the given login. AssignedTo :: String -> IssueLimitation -- | Issues which mention the given string, taken to be a user's login. Mentions :: String -> IssueLimitation -- | A list of labels to filter by. Labels :: [String] -> IssueLimitation -- | Sort ascending. Ascending :: IssueLimitation -- | Sort descending. [default] Descending :: IssueLimitation -- | Only issues created since the specified date and time. Since :: UTCTime -> IssueLimitation -- | Download this many issues per query PerPage :: Int -> IssueLimitation -- | Create a new issue. -- --
--   createIssue (GithubUser (user, password)) user repo
--    (newIssue "some_repo") {...}
--   
createIssue :: GithubAuth -> String -> String -> NewIssue -> IO (Either Error Issue) newIssue :: String -> NewIssue -- | Edit an issue. -- --
--   editIssue (GithubUser (user, password)) user repo issue
--    editOfIssue {...}
--   
editIssue :: GithubAuth -> String -> String -> Int -> EditIssue -> IO (Either Error Issue) editOfIssue :: EditIssue -- | The Github issue comments API from -- http://developer.github.com/v3/issues/comments/. module Github.Issues.Comments -- | A specific comment, by ID. -- --
--   comment "thoughtbot" "paperclip" 1468184
--   
comment :: String -> String -> Int -> IO (Either Error IssueComment) -- | All comments on an issue, by the issue's number. -- --
--   comments "thoughtbot" "paperclip" 635
--   
comments :: String -> String -> Int -> IO (Either Error [IssueComment]) -- | All comments on an issue, by the issue's number, using authentication. -- --
--   comments' (GithubUser (user, password)) "thoughtbot" "paperclip" 635
--   
comments' :: Maybe GithubAuth -> String -> String -> Int -> IO (Either Error [IssueComment]) -- | Create a new comment. -- --
--   createComment (GithubUser (user, password)) user repo issue
--    "some words"
--   
createComment :: GithubAuth -> String -> String -> Int -> String -> IO (Either Error Comment) -- | Edit a comment. -- --
--   editComment (GithubUser (user, password)) user repo commentid
--    "new words"
--   
editComment :: GithubAuth -> String -> String -> Int -> String -> IO (Either Error Comment) -- | The Github issue events API, which is described on -- http://developer.github.com/v3/issues/events/ module Github.Issues.Events -- | All events that have happened on an issue. -- --
--   eventsForIssue "thoughtbot" "paperclip" 49
--   
eventsForIssue :: String -> String -> Int -> IO (Either Error [Event]) -- | All the events for all issues in a repo. -- --
--   eventsForRepo "thoughtbot" "paperclip"
--   
eventsForRepo :: String -> String -> IO (Either Error [Event]) -- | Details on a specific event, by the event's ID. -- --
--   event "thoughtbot" "paperclip" 5335772
--   
event :: String -> String -> Int -> IO (Either Error Event) -- | The API for dealing with labels on Github issues, as described on -- http://developer.github.com/v3/issues/labels/. module Github.Issues.Labels -- | A label, by name. -- --
--   Github.label "thoughtbot" "paperclip" "bug"
--   
label :: String -> String -> String -> IO (Either Error IssueLabel) -- | All the labels available to use on any issue in the repo. -- --
--   labelsOnRepo "thoughtbot" "paperclip"
--   
labelsOnRepo :: String -> String -> IO (Either Error [IssueLabel]) -- | The labels on an issue in a repo. -- --
--   labelsOnIssue "thoughtbot" "paperclip" 585
--   
labelsOnIssue :: String -> String -> Int -> IO (Either Error [IssueLabel]) -- | All the labels on a repo's milestone, given the milestone ID. -- --
--   labelsOnMilestone "thoughtbot" "paperclip" 2
--   
labelsOnMilestone :: String -> String -> Int -> IO (Either Error [IssueLabel]) -- | The milestones API as described on -- http://developer.github.com/v3/issues/milestones/. module Github.Issues.Milestones -- | All milestones in the repo. -- --
--   milestones "thoughtbot" "paperclip"
--   
milestones :: String -> String -> IO (Either Error [Milestone]) -- | All milestones in the repo, using authentication. -- --
--   milestones' (GithubUser (user, password)) "thoughtbot" "paperclip"
--   
milestones' :: Maybe GithubAuth -> String -> String -> IO (Either Error [Milestone]) -- | Details on a specific milestone, given it's milestone number. -- --
--   milestone "thoughtbot" "paperclip" 2
--   
milestone :: String -> String -> Int -> IO (Either Error Milestone) -- | The orgs API as described on -- http://developer.github.com/v3/orgs/. module Github.Organizations -- | The public organizations for a user, given the user's login. -- --
--   publicOrganizationsFor "mike-burns"
--   
publicOrganizationsFor :: String -> IO (Either Error [SimpleOrganization]) -- | The public organizations for a user, given the user's login, with -- authorization -- --
--   publicOrganizationsFor' (Just ("github-username", "github-password")) "mike-burns"
--   
publicOrganizationsFor' :: Maybe GithubAuth -> String -> IO (Either Error [SimpleOrganization]) -- | Details on a public organization. Takes the organization's login. -- --
--   publicOrganization "thoughtbot"
--   
publicOrganization :: String -> IO (Either Error Organization) -- | Details on a public organization. Takes the organization's login. -- --
--   publicOrganization' (Just ("github-username", "github-password")) "thoughtbot"
--   
publicOrganization' :: Maybe GithubAuth -> String -> IO (Either Error Organization) -- | The organization members API as described on -- http://developer.github.com/v3/orgs/members/. module Github.Organizations.Members -- | All the users who are members of the specified organization. -- --
--   membersOf "thoughtbot"
--   
membersOf :: String -> IO (Either Error [GithubOwner]) -- | The pull requests API as documented at -- http://developer.github.com/v3/pulls/. module Github.PullRequests -- | All pull requests for the repo, by owner and repo name. | With -- authentification -- --
--   pullRequestsFor' (Just ("github-username", "github-password")) "rails" "rails"
--   
pullRequestsFor' :: Maybe GithubAuth -> String -> String -> IO (Either Error [PullRequest]) -- | A detailed pull request, which has much more information. This takes -- the repo owner and name along with the number assigned to the pull -- request. | With authentification -- --
--   pullRequest' (Just ("github-username", "github-password")) "thoughtbot" "paperclip" 562
--   
pullRequest' :: Maybe GithubAuth -> String -> String -> Int -> IO (Either Error DetailedPullRequest) -- | All the commits on a pull request, given the repo owner, repo name, -- and the number of the pull request. | With authentification -- --
--   pullRequestCommits' (Just ("github-username", "github-password")) "thoughtbot" "paperclip" 688
--   
pullRequestCommits' :: Maybe GithubAuth -> String -> String -> Int -> IO (Either Error [Commit]) -- | The individual files that a pull request patches. Takes the repo owner -- and name, plus the number assigned to the pull request. | With -- authentification -- --
--   pullRequestFiles' (Just ("github-username", "github-password")) "thoughtbot" "paperclip" 688
--   
pullRequestFiles' :: Maybe GithubAuth -> String -> String -> Int -> IO (Either Error [File]) -- | All pull requests for the repo, by owner and repo name. -- --
--   pullRequestsFor "rails" "rails"
--   
pullRequestsFor :: String -> String -> IO (Either Error [PullRequest]) -- | A detailed pull request, which has much more information. This takes -- the repo owner and name along with the number assigned to the pull -- request. -- --
--   pullRequest "thoughtbot" "paperclip" 562
--   
pullRequest :: String -> String -> Int -> IO (Either Error DetailedPullRequest) -- | All the commits on a pull request, given the repo owner, repo name, -- and the number of the pull request. -- --
--   pullRequestCommits "thoughtbot" "paperclip" 688
--   
pullRequestCommits :: String -> String -> Int -> IO (Either Error [Commit]) -- | The individual files that a pull request patches. Takes the repo owner -- and name, plus the number assigned to the pull request. -- --
--   pullRequestFiles "thoughtbot" "paperclip" 688
--   
pullRequestFiles :: String -> String -> Int -> IO (Either Error [File]) -- | Check if pull request has been merged isPullRequestMerged :: GithubAuth -> String -> String -> Int -> IO (Either Error Status) -- | Merge a pull request mergePullRequest :: GithubAuth -> String -> String -> Int -> Maybe String -> IO (Either Error Status) -- | Update a pull request updatePullRequest :: GithubAuth -> String -> String -> Int -> EditPullRequest -> IO (Either Error DetailedPullRequest) -- | The Github Repos API, as documented at -- http://developer.github.com/v3/repos/ module Github.Repos -- | The repos for a user, by their login. Can be restricted to just repos -- they own, are a member of, or publicize. Private repos are currently -- not supported. -- --
--   userRepos "mike-burns" All
--   
userRepos :: String -> RepoPublicity -> IO (Either Error [Repo]) -- | The repos for a user, by their login. With authentication, but note -- that private repos are currently not supported. -- --
--   userRepos' (Just (GithubBasicAuth (user, password))) "mike-burns" All
--   
userRepos' :: Maybe GithubAuth -> String -> RepoPublicity -> IO (Either Error [Repo]) -- | Details on a specific repo, given the owner and repo name. -- --
--   userRepo "mike-burns" "github"
--   
userRepo :: String -> String -> IO (Either Error Repo) -- | Details on a specific repo, given the owner and repo name. With -- authentication. -- --
--   userRepo' (Just (GithubBasicAuth (user, password))) "mike-burns" "github"
--   
userRepo' :: Maybe GithubAuth -> String -> String -> IO (Either Error Repo) -- | The repos for an organization, by the organization name. -- --
--   organizationRepos "thoughtbot"
--   
organizationRepos :: String -> IO (Either Error [Repo]) -- | The repos for an organization, by the organization name. With -- authentication. -- --
--   organizationRepos (Just (GithubBasicAuth (user, password))) "thoughtbot"
--   
organizationRepos' :: Maybe GithubAuth -> String -> IO (Either Error [Repo]) -- | A specific organization repo, by the organization name. -- --
--   organizationRepo "thoughtbot" "github"
--   
organizationRepo :: String -> String -> IO (Either Error Repo) -- | A specific organization repo, by the organization name. With -- authentication. -- --
--   organizationRepo (Just (GithubBasicAuth (user, password))) "thoughtbot" "github"
--   
organizationRepo' :: Maybe GithubAuth -> String -> String -> IO (Either Error Repo) -- | The contributors to a repo, given the owner and repo name. -- --
--   contributors "thoughtbot" "paperclip"
--   
contributors :: String -> String -> IO (Either Error [Contributor]) -- | The contributors to a repo, given the owner and repo name. With -- authentication. -- --
--   contributors' (Just (GithubBasicAuth (user, password))) "thoughtbot" "paperclip"
--   
contributors' :: Maybe GithubAuth -> String -> String -> IO (Either Error [Contributor]) -- | 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 :: String -> String -> IO (Either Error [Contributor]) -- | 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"
--   
contributorsWithAnonymous' :: Maybe GithubAuth -> String -> String -> IO (Either Error [Contributor]) -- | 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 :: String -> String -> IO (Either Error [Language]) -- | 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"
--   
languagesFor' :: Maybe GithubAuth -> String -> String -> IO (Either Error [Language]) -- | The git tags on a repo, given the repo owner and name. -- --
--   tagsFor "thoughtbot" "paperclip"
--   
tagsFor :: String -> String -> IO (Either Error [Tag]) -- | The git tags on a repo, given the repo owner and name. With -- authentication. -- --
--   tagsFor' (Just (GithubBasicAuth (user, password))) "thoughtbot" "paperclip"
--   
tagsFor' :: Maybe GithubAuth -> String -> String -> IO (Either Error [Tag]) -- | The git branches on a repo, given the repo owner and name. -- --
--   branchesFor "thoughtbot" "paperclip"
--   
branchesFor :: String -> String -> IO (Either Error [Branch]) -- | The git branches on a repo, given the repo owner and name. With -- authentication. -- --
--   branchesFor' (Just (GithubBasicAuth (user, password))) "thoughtbot" "paperclip"
--   
branchesFor' :: Maybe GithubAuth -> String -> String -> IO (Either Error [Branch]) -- | 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 :: String -> String -> String -> Maybe String -> IO (Either Error Content) -- | 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"
--   
contentsFor' :: Maybe GithubAuth -> String -> String -> String -> Maybe String -> IO (Either Error Content) -- | Filter the list of the user's repos using any of these constructors. data RepoPublicity -- | All repos accessible to the user. All :: RepoPublicity -- | Only repos owned by the user. Owner :: RepoPublicity -- | Only public repos. Public :: RepoPublicity -- | Only private repos. Private :: RepoPublicity -- | Only repos to which the user is a member but not an owner. Member :: RepoPublicity -- | Create a new repository. -- --
--   createRepo (GithubBasicAuth (user, password)) (newRepo "some_repo") {newRepoHasIssues = Just False}
--   
createRepo :: GithubAuth -> NewRepo -> IO (Either Error Repo) -- | Create a new repository for an organization. -- --
--   createOrganizationRepo (GithubBasicAuth (user, password)) "thoughtbot" (newRepo "some_repo") {newRepoHasIssues = Just False}
--   
createOrganizationRepo :: GithubAuth -> String -> NewRepo -> IO (Either Error Repo) newRepo :: String -> NewRepo data NewRepo NewRepo :: String -> (Maybe String) -> (Maybe String) -> (Maybe Bool) -> (Maybe Bool) -> (Maybe Bool) -> (Maybe Bool) -> NewRepo newRepoName :: NewRepo -> String newRepoDescription :: NewRepo -> (Maybe String) newRepoHomepage :: NewRepo -> (Maybe String) newRepoPrivate :: NewRepo -> (Maybe Bool) newRepoHasIssues :: NewRepo -> (Maybe Bool) newRepoHasWiki :: NewRepo -> (Maybe Bool) newRepoAutoInit :: NewRepo -> (Maybe Bool) -- | Edit an existing repository. -- --
--   editRepo (GithubBasicAuth (user, password)) "some_user" "some_repo" def {editDescription = Just "some description"}
--   
editRepo :: GithubAuth -> String -> String -> Edit -> IO (Either Error Repo) -- | The default value for this type. def :: Default a => a data Edit Edit :: Maybe String -> Maybe String -> Maybe String -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Edit editName :: Edit -> Maybe String editDescription :: Edit -> Maybe String editHomepage :: Edit -> Maybe String editPublic :: Edit -> Maybe Bool editHasIssues :: Edit -> Maybe Bool editHasWiki :: Edit -> Maybe Bool editHasDownloads :: Edit -> Maybe Bool -- | Delete an existing repository. -- --
--   deleteRepo (GithubBasicAuth (user, password)) "thoughtbot" "some_repo"
--   
deleteRepo :: GithubAuth -> String -> String -> IO (Either Error ()) instance Show RepoPublicity instance Eq RepoPublicity instance Show NewRepo instance Show Edit instance ToJSON Edit instance Default Edit instance ToJSON NewRepo -- | The repo collaborators API as described on -- http://developer.github.com/v3/repos/collaborators/. module Github.Repos.Collaborators -- | All the users who have collaborated on a repo. -- --
--   collaboratorsOn "thoughtbot" "paperclip"
--   
collaboratorsOn :: String -> String -> IO (Either Error [GithubOwner]) -- | Whether the user is collaborating on a repo. Takes the user in -- question, the user who owns the repo, and the repo name. -- --
--   isCollaboratorOn "mike-burns" "thoughtbot" "paperclip"
--   isCollaboratorOn "johnson" "thoughtbot" "paperclip"
--   
isCollaboratorOn :: String -> String -> String -> IO (Either Error Bool) -- | The repo commits API as described on -- http://developer.github.com/v3/repos/commits/. module Github.Repos.Commits -- | The commit history for a repo. -- --
--   commitsFor "mike-burns" "github"
--   
commitsFor :: String -> String -> IO (Either Error [Commit]) -- | Details on a specific SHA1 for a repo. -- --
--   commit "mike-burns" "github" "9d1a9a361266c3c890b1108ad2fdf52f824b1b81"
--   
commit :: String -> String -> String -> IO (Either Error Commit) -- | All the comments on a Github repo. -- --
--   commentsFor "thoughtbot" "paperclip"
--   
commentsFor :: String -> String -> IO (Either Error [Comment]) -- | Just the comments on a specific SHA for a given Github repo. -- --
--   commitCommentsFor "thoughtbot" "paperclip" "41f685f6e01396936bb8cd98e7cca517e2c7d96b"
--   
commitCommentsFor :: String -> String -> String -> IO (Either Error [Comment]) -- | A comment, by its ID, relative to the Github repo. -- --
--   commitCommentFor "thoughtbot" "paperclip" "669575"
--   
commitCommentFor :: String -> String -> String -> IO (Either Error Comment) -- | The diff between two treeishes on a repo. -- --
--   diff "thoughtbot" "paperclip" "41f685f6e01396936bb8cd98e7cca517e2c7d96b" "HEAD"
--   
diff :: String -> String -> String -> String -> IO (Either Error Diff) -- | Hot forking action, as described at -- http://developer.github.com/v3/repos/forks/. module Github.Repos.Forks -- | All the repos that are forked off the given repo. -- --
--   forksFor "thoughtbot" "paperclip"
--   
forksFor :: String -> String -> IO (Either Error [Repo]) -- | All the repos that are forked off the given repo. | With -- authentication -- --
--   forksFor' (Just (GithubUser (user, password))) "thoughtbot" "paperclip"
--   
forksFor' :: Maybe GithubAuth -> String -> String -> IO (Either Error [Repo]) -- | The repo watching API as described on -- http://developer.github.com/v3/repos/watching/. module Github.Repos.Watching -- | The list of users that are watching the specified Github repo. -- --
--   watchersFor "thoughtbot" "paperclip"
--   
watchersFor :: String -> String -> IO (Either Error [GithubOwner]) -- | The list of users that are watching the specified Github repo. | With -- authentication -- --
--   watchersFor' (Just (GithubUser (user, password))) "thoughtbot" "paperclip"
--   
watchersFor' :: Maybe GithubAuth -> String -> String -> IO (Either Error [GithubOwner]) -- | All the public repos watched by the specified user. -- --
--   reposWatchedBy "croaky"
--   
reposWatchedBy :: String -> IO (Either Error [Repo]) -- | All the public repos watched by the specified user. | With -- authentication -- --
--   reposWatchedBy' (Just (GithubUser (user, password))) "croaky"
--   
reposWatchedBy' :: Maybe GithubAuth -> String -> IO (Either Error [Repo]) -- | The repo starring API as described on -- http://developer.github.com/v3/repos/starring/. module Github.Repos.Starring -- | The list of users that have starred the specified Github repo. -- --
--   userInfoFor' Nothing "mike-burns"
--   
stargazersFor :: Maybe GithubAuth -> String -> String -> IO (Either Error [GithubOwner]) -- | All the public repos starred by the specified user. -- --
--   reposStarredBy Nothing "croaky"
--   
reposStarredBy :: Maybe GithubAuth -> String -> IO (Either Error [Repo]) -- | All the repos starred by the authenticated user. myStarred :: GithubAuth -> IO (Either Error [Repo]) -- | The webhooks API, as described at -- https://developer.github.com/v3/repos/hooks/ -- https://developer.github.com/webhooks module Github.Repos.Webhooks webhooksFor' :: GithubAuth -> RepoOwner -> RepoName -> IO (Either Error [RepoWebhook]) webhookFor' :: GithubAuth -> RepoOwner -> RepoName -> RepoWebhookId -> IO (Either Error RepoWebhook) createRepoWebhook' :: GithubAuth -> RepoOwner -> RepoName -> NewRepoWebhook -> IO (Either Error RepoWebhook) editRepoWebhook' :: GithubAuth -> RepoOwner -> RepoName -> RepoWebhookId -> EditRepoWebhook -> IO (Either Error RepoWebhook) testPushRepoWebhook' :: GithubAuth -> RepoOwner -> RepoName -> RepoWebhookId -> IO (Either Error Status) pingRepoWebhook' :: GithubAuth -> RepoOwner -> RepoName -> RepoWebhookId -> IO (Either Error Status) deleteRepoWebhook' :: GithubAuth -> RepoOwner -> RepoName -> RepoWebhookId -> IO (Either Error Status) data NewRepoWebhook NewRepoWebhook :: String -> Map String String -> Maybe [RepoWebhookEvent] -> Maybe Bool -> NewRepoWebhook newRepoWebhookName :: NewRepoWebhook -> String newRepoWebhookConfig :: NewRepoWebhook -> Map String String newRepoWebhookEvents :: NewRepoWebhook -> Maybe [RepoWebhookEvent] newRepoWebhookActive :: NewRepoWebhook -> Maybe Bool data EditRepoWebhook EditRepoWebhook :: Maybe (Map String String) -> Maybe [RepoWebhookEvent] -> Maybe [RepoWebhookEvent] -> Maybe [RepoWebhookEvent] -> Maybe Bool -> EditRepoWebhook editRepoWebhookConfig :: EditRepoWebhook -> Maybe (Map String String) editRepoWebhookEvents :: EditRepoWebhook -> Maybe [RepoWebhookEvent] editRepoWebhookAddEvents :: EditRepoWebhook -> Maybe [RepoWebhookEvent] editRepoWebhookRemoveEvents :: EditRepoWebhook -> Maybe [RepoWebhookEvent] editRepoWebhookActive :: EditRepoWebhook -> Maybe Bool type RepoOwner = String type RepoName = String type RepoWebhookId = Int instance Show NewRepoWebhook instance Show EditRepoWebhook instance ToJSON EditRepoWebhook instance ToJSON NewRepoWebhook -- | The Github Users API, as described at -- http://developer.github.com/v3/users/. module Github.Users -- | The information for a single user, by login name. -- --
--   userInfoFor "mike-burns"
--   
userInfoFor :: String -> IO (Either Error DetailedOwner) -- | The information for a single user, by login name. | With -- authentification -- --
--   userInfoFor' (Just ("github-username", "github-password")) "mike-burns"
--   
userInfoFor' :: Maybe GithubAuth -> String -> IO (Either Error DetailedOwner) -- | The user followers API as described on -- http://developer.github.com/v3/users/followers/. module Github.Users.Followers -- | All the users following the given user. -- --
--   usersFollowing "mike-burns"
--   
usersFollowing :: String -> IO (Either Error [GithubOwner]) -- | All the users that the given user follows. -- --
--   usersFollowedBy "mike-burns"
--   
usersFollowedBy :: String -> IO (Either Error [GithubOwner]) -- | The Github Search API, as described at -- http://developer.github.com/v3/search/. module Github.Search -- | Perform a repository search. | With authentication. -- --
--   searchRepos' (Just $ GithubBasicAuth "github-username" "github-password') "q=a in%3Aname language%3Ahaskell created%3A>2013-10-01&per_page=100"
--   
searchRepos' :: Maybe GithubAuth -> String -> IO (Either Error SearchReposResult) -- | Perform a repository search. | Without authentication. -- --
--   searchRepos "q=a in%3Aname language%3Ahaskell created%3A>2013-10-01&per_page=100"
--   
searchRepos :: String -> IO (Either Error SearchReposResult) -- | Perform a code search. | With authentication. -- --
--   searchCode' (Just $ GithubBasicAuth "github-username" "github-password') "q=a in%3Aname language%3Ahaskell created%3A>2013-10-01&per_page=100"
--   
searchCode' :: Maybe GithubAuth -> String -> IO (Either Error SearchCodeResult) -- | Perform a code search. | Without authentication. -- --
--   searchCode "q=addClass+in:file+language:js+repo:jquery/jquery"
--   
searchCode :: String -> IO (Either Error SearchCodeResult) -- | The Github auth data type module Github.Auth -- | user/password for HTTP basic access authentication data GithubAuth GithubBasicAuth :: ByteString -> ByteString -> GithubAuth GithubOAuth :: String -> GithubAuth