github-0.21: Access to the GitHub API, v3.

LicenseBSD-3-Clause
MaintainerOleg Grenrus <oleg.grenrus@iki.fi>
Safe HaskellNone
LanguageHaskell2010

GitHub.Endpoints.Issues

Description

The issues API as described on http://developer.github.com/v3/issues/.

Synopsis

Documentation

issue :: Name Owner -> Name Repo -> Id Issue -> IO (Either Error Issue) Source #

Details on a specific issue, given the repo owner and name, and the issue number.

issue "thoughtbot" "paperclip" (Id "462")

issue' :: Maybe Auth -> Name Owner -> Name Repo -> Id Issue -> IO (Either Error Issue) Source #

Details on a specific issue, given the repo owner and name, and the issue number.'

issue' (Just ("github-username", "github-password")) "thoughtbot" "paperclip" "462"

issuesForRepo :: Name Owner -> Name Repo -> IssueRepoMod -> IO (Either Error (Vector Issue)) Source #

All issues for a repo (given the repo owner and name), with optional restrictions as described in the IssueRepoMod data type.

issuesForRepo "thoughtbot" "paperclip" [NoMilestone, OnlyClosed, Mentions "jyurek", Ascending]

issuesForRepo' :: Maybe Auth -> Name Owner -> Name Repo -> IssueRepoMod -> IO (Either Error (Vector Issue)) Source #

All issues for a repo (given the repo owner and name), with optional restrictions as described in the IssueRepoMod data type.

issuesForRepo' (Just ("github-username", "github-password")) "thoughtbot" "paperclip" [NoMilestone, OnlyClosed, Mentions "jyurek", Ascending]

createIssue :: Auth -> Name Owner -> Name Repo -> NewIssue -> IO (Either Error Issue) Source #

Create a new issue.

createIssue (User (user, password)) user repo
 (newIssue "some_repo") {...}

editIssue :: Auth -> Name Owner -> Name Repo -> Id Issue -> EditIssue -> IO (Either Error Issue) Source #

Edit an issue.

editIssue (User (user, password)) user repo issue
 editOfIssue {...}