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

Safe HaskellNone
LanguageHaskell2010

Github.Issues.Comments

Description

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

Synopsis

Documentation

comment :: Name GithubOwner -> Name Repo -> Id Comment -> IO (Either Error IssueComment) Source

A specific comment, by ID.

comment "thoughtbot" "paperclip" 1468184

comments :: Name GithubOwner -> Name Repo -> Id Issue -> IO (Either Error (Vector IssueComment)) Source

All comments on an issue, by the issue's number.

comments "thoughtbot" "paperclip" 635

comments' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> Id Issue -> IO (Either Error (Vector IssueComment)) Source

All comments on an issue, by the issue's number, using authentication.

comments' (GithubUser (user, password)) "thoughtbot" "paperclip" 635

createComment :: GithubAuth -> Name GithubOwner -> Name Repo -> Id Issue -> Text -> IO (Either Error Comment) Source

Create a new comment.

createComment (GithubUser (user, password)) user repo issue
 "some words"

editComment :: GithubAuth -> Name GithubOwner -> Name Repo -> Id Comment -> Text -> IO (Either Error Comment) Source

Edit a comment.

editComment (GithubUser (user, password)) user repo commentid
 "new words"