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

Safe HaskellNone

Github.Issues.Comments

Contents

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

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"