github-0.23: Access to the GitHub API, v3.

LicenseBSD-3-Clause
MaintainerOleg Grenrus <oleg.grenrus@iki.fi>
Safe HaskellNone
LanguageHaskell2010

GitHub.Endpoints.Issues.Comments

Description

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

Synopsis

Documentation

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

A specific comment, by ID.

comment "thoughtbot" "paperclip" 1468184

comments :: Name Owner -> Name Repo -> IssueNumber -> IO (Either Error (Vector IssueComment)) Source #

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

comments "thoughtbot" "paperclip" 635

comments' :: Maybe Auth -> Name Owner -> Name Repo -> IssueNumber -> IO (Either Error (Vector IssueComment)) Source #

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

comments' (Just $ BasicAuth "github-username" "github-password") "thoughtbot" "paperclip" 635

createComment :: Auth -> Name Owner -> Name Repo -> IssueNumber -> Text -> IO (Either Error Comment) Source #

Create a new comment.

createComment (BasicAuth "github-username" "github-password") user repo issue
 "some words"

deleteComment :: Auth -> Name Owner -> Name Repo -> Id Comment -> IO (Either Error ()) Source #

Delete a comment.

deleteComment (BasicAuth "github-username" "github-password") user repo commentid

editComment :: Auth -> Name Owner -> Name Repo -> Id Comment -> Text -> IO (Either Error Comment) Source #

Edit a comment.

editComment (BasicAuth "github-username" "github-password") user repo commentid
 "new words"