Safe Haskell | None |
---|
The Github issue comments API from http://developer.github.com/v3/issues/comments/.
- comment :: String -> String -> Int -> IO (Either Error IssueComment)
- comments :: String -> String -> Int -> IO (Either Error [IssueComment])
- comments' :: Maybe GithubAuth -> String -> String -> Int -> IO (Either Error [IssueComment])
- data GithubAuth
- createComment :: GithubAuth -> String -> String -> Int -> String -> IO (Either Error Comment)
- editComment :: GithubAuth -> String -> String -> Int -> String -> IO (Either Error Comment)
- module Github.Data
Documentation
comment :: String -> String -> Int -> IO (Either Error IssueComment)Source
A specific comment, by ID.
comment "thoughtbot" "paperclip" 1468184
comments :: String -> String -> Int -> IO (Either Error [IssueComment])Source
All comments on an issue, by the issue's number.
comments "thoughtbot" "paperclip" 635
comments' :: Maybe GithubAuth -> String -> String -> Int -> IO (Either Error [IssueComment])Source
All comments on an issue, by the issue's number, using authentication.
comments' (GithubUser (user, password)) "thoughtbot" "paperclip" 635
Modifying Comments
Only authenticated users may create and edit comments.
data GithubAuth Source
user/password for HTTP basic access authentication
createComment :: GithubAuth -> String -> String -> Int -> String -> IO (Either Error Comment)Source
Create a new comment.
createComment (GithubUser (user, password)) user repo issue "some words"
editComment :: GithubAuth -> String -> String -> Int -> String -> IO (Either Error Comment)Source
Edit a comment.
editComment (GithubUser (user, password)) user repo commentid "new words"
module Github.Data