github-0.12: Access to the Github API, v3.

Safe HaskellNone
LanguageHaskell98

Github.Issues.Comments

Description

The Github issue comments API from http://developer.github.com/v3/issues/comments/.

Synopsis

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

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"