Safe Haskell | None |
---|---|
Language | Haskell2010 |
The issues API as described on http://developer.github.com/v3/issues/.
- issue :: Name GithubOwner -> Name Repo -> Id Issue -> IO (Either Error Issue)
- issue' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> Id Issue -> IO (Either Error Issue)
- issueR :: Name GithubOwner -> Name Repo -> Id Issue -> GithubRequest k Issue
- issuesForRepo :: Name GithubOwner -> Name Repo -> [IssueLimitation] -> IO (Either Error (Vector Issue))
- issuesForRepo' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> [IssueLimitation] -> IO (Either Error (Vector Issue))
- issuesForRepoR :: Name GithubOwner -> Name Repo -> [IssueLimitation] -> Maybe Count -> GithubRequest k (Vector Issue)
- data IssueLimitation
- createIssue :: GithubAuth -> Name GithubOwner -> Name Repo -> NewIssue -> IO (Either Error Issue)
- createIssueR :: Name GithubOwner -> Name Repo -> NewIssue -> GithubRequest True Issue
- newIssue :: Text -> NewIssue
- editIssue :: GithubAuth -> Name GithubOwner -> Name Repo -> Id Issue -> EditIssue -> IO (Either Error Issue)
- editIssueR :: Name GithubOwner -> Name Repo -> Id Issue -> EditIssue -> GithubRequest True Issue
- editOfIssue :: EditIssue
- module Github.Data
Documentation
issue :: Name GithubOwner -> 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 GithubAuth -> Name GithubOwner -> 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 GithubOwner -> Name Repo -> Id Issue -> GithubRequest k Issue Source
Get a single issue. See https://developer.github.com/v3/issues/#get-a-single-issue
issuesForRepo :: Name GithubOwner -> Name Repo -> [IssueLimitation] -> IO (Either Error (Vector Issue)) Source
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' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> [IssueLimitation] -> IO (Either Error (Vector Issue)) Source
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]
issuesForRepoR :: Name GithubOwner -> Name Repo -> [IssueLimitation] -> Maybe Count -> GithubRequest k (Vector Issue) Source
List issues for a repository. See https://developer.github.com/v3/issues/#list-issues-for-a-repository
data IssueLimitation Source
A data structure for describing how to filter issues. This is used by
issuesForRepo
.
AnyMilestone | Issues appearing in any milestone. [default] |
NoMilestone | Issues without a milestone. |
MilestoneId Int | Only issues that are in the milestone with the given id. |
Open | Only open issues. [default] |
OnlyClosed | Only closed issues. |
Unassigned | Issues to which no one has been assigned ownership. |
AnyAssignment | All issues regardless of assignment. [default] |
AssignedTo String | Only issues assigned to the user with the given login. |
Mentions String | Issues which mention the given string, taken to be a user's login. |
Labels [String] | A list of labels to filter by. |
Ascending | Sort ascending. |
Descending | Sort descending. [default] |
Since UTCTime | Only issues created since the specified date and time. |
PerPage Int | Download this many issues per query |
createIssue :: GithubAuth -> Name GithubOwner -> Name Repo -> NewIssue -> IO (Either Error Issue) Source
Create a new issue.
createIssue (GithubUser (user, password)) user repo (newIssue "some_repo") {...}
createIssueR :: Name GithubOwner -> Name Repo -> NewIssue -> GithubRequest True Issue Source
Create an issue. See https://developer.github.com/v3/issues/#create-an-issue
editIssue :: GithubAuth -> Name GithubOwner -> Name Repo -> Id Issue -> EditIssue -> IO (Either Error Issue) Source
Edit an issue.
editIssue (GithubUser (user, password)) user repo issue editOfIssue {...}
editIssueR :: Name GithubOwner -> Name Repo -> Id Issue -> EditIssue -> GithubRequest True Issue Source
Edit an issue. See https://developer.github.com/v3/issues/#edit-an-issue
module Github.Data