License | BSD-3-Clause |
---|---|
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Safe Haskell | None |
Language | Haskell2010 |
The issues API as described on http://developer.github.com/v3/issues/.
Synopsis
- currentUserIssuesR :: IssueMod -> FetchCount -> Request RA (Vector Issue)
- organizationIssuesR :: Name Organization -> IssueMod -> FetchCount -> Request k (Vector Issue)
- issue :: Name Owner -> Name Repo -> Id Issue -> IO (Either Error Issue)
- issue' :: Maybe Auth -> Name Owner -> Name Repo -> Id Issue -> IO (Either Error Issue)
- issueR :: Name Owner -> Name Repo -> Id Issue -> Request k Issue
- issuesForRepo :: Name Owner -> Name Repo -> IssueRepoMod -> IO (Either Error (Vector Issue))
- issuesForRepo' :: Maybe Auth -> Name Owner -> Name Repo -> IssueRepoMod -> IO (Either Error (Vector Issue))
- issuesForRepoR :: Name Owner -> Name Repo -> IssueRepoMod -> FetchCount -> Request k (Vector Issue)
- createIssue :: Auth -> Name Owner -> Name Repo -> NewIssue -> IO (Either Error Issue)
- createIssueR :: Name Owner -> Name Repo -> NewIssue -> Request RW Issue
- newIssue :: Text -> NewIssue
- editIssue :: Auth -> Name Owner -> Name Repo -> Id Issue -> EditIssue -> IO (Either Error Issue)
- editIssueR :: Name Owner -> Name Repo -> Id Issue -> EditIssue -> Request RW Issue
- editOfIssue :: EditIssue
- module GitHub.Data
Documentation
currentUserIssuesR :: IssueMod -> FetchCount -> Request RA (Vector Issue) Source #
organizationIssuesR :: Name Organization -> IssueMod -> FetchCount -> Request k (Vector Issue) Source #
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"
issueR :: Name Owner -> Name Repo -> Id Issue -> Request k Issue Source #
Query a single issue. See https://developer.github.com/v3/issues/#get-a-single-issue
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]
issuesForRepoR :: Name Owner -> Name Repo -> IssueRepoMod -> FetchCount -> Request k (Vector Issue) Source #
List issues for a repository. See https://developer.github.com/v3/issues/#list-issues-for-a-repository
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") {...}
createIssueR :: Name Owner -> Name Repo -> NewIssue -> Request RW Issue Source #
Create an issue. See https://developer.github.com/v3/issues/#create-an-issue
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 {...}
editIssueR :: Name Owner -> Name Repo -> Id Issue -> EditIssue -> Request RW Issue Source #
Edit an issue. See https://developer.github.com/v3/issues/#edit-an-issue
module GitHub.Data