License | BSD-3-Clause |
---|---|
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Safe Haskell | None |
Language | Haskell2010 |
The pull request review comments API as described at http://developer.github.com/v3/pulls/comments/.
Synopsis
- pullRequestCommentsIO :: Name Owner -> Name Repo -> IssueNumber -> IO (Either Error (Vector Comment))
- pullRequestCommentsR :: Name Owner -> Name Repo -> IssueNumber -> FetchCount -> Request k (Vector Comment)
- pullRequestComment :: Name Owner -> Name Repo -> Id Comment -> IO (Either Error Comment)
- pullRequestCommentR :: Name Owner -> Name Repo -> Id Comment -> Request k Comment
- createPullComment :: Auth -> Name Owner -> Name Repo -> IssueNumber -> Text -> Text -> Int -> Text -> IO (Either Error Comment)
- createPullCommentR :: Name Owner -> Name Repo -> IssueNumber -> Text -> Text -> Int -> Text -> Request RW Comment
- module GitHub.Data
Documentation
pullRequestCommentsIO :: Name Owner -> Name Repo -> IssueNumber -> IO (Either Error (Vector Comment)) Source #
All the comments on a pull request with the given ID.
pullRequestComments "thoughtbot" "factory_girl" (Id 256)
pullRequestCommentsR :: Name Owner -> Name Repo -> IssueNumber -> FetchCount -> Request k (Vector Comment) Source #
List comments on a pull request. See https://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request
pullRequestComment :: Name Owner -> Name Repo -> Id Comment -> IO (Either Error Comment) Source #
One comment on a pull request, by the comment's ID.
pullRequestComment "thoughtbot" "factory_girl" (Id 301819)
pullRequestCommentR :: Name Owner -> Name Repo -> Id Comment -> Request k Comment Source #
Query a single comment. See https://developer.github.com/v3/pulls/comments/#get-a-single-comment
createPullComment :: Auth -> Name Owner -> Name Repo -> IssueNumber -> Text -> Text -> Int -> Text -> IO (Either Error Comment) Source #
Create a new comment.
createPullComment (User (user, password)) user repo issue commit path position "some words"
createPullCommentR :: Name Owner -> Name Repo -> IssueNumber -> Text -> Text -> Int -> Text -> Request RW Comment Source #
Create a comment.
See https://developer.github.com/v3/pulls/comments/#create-a-comment
module GitHub.Data