module Github.PullRequests.ReviewComments (
pullRequestReviewCommentsIO,
pullRequestReviewCommentsR,
pullRequestReviewComment,
pullRequestReviewCommentR,
module Github.Data,
) where
import Data.Vector (Vector)
import Github.Data
import Github.Request
pullRequestReviewCommentsIO :: Name GithubOwner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector Comment))
pullRequestReviewCommentsIO user repo prid =
executeRequest' $ pullRequestReviewCommentsR user repo prid Nothing
pullRequestReviewCommentsR :: Name GithubOwner -> Name Repo -> Id PullRequest -> Maybe Count -> GithubRequest k (Vector Comment)
pullRequestReviewCommentsR user repo prid =
GithubPagedGet ["repos", toPathPart user, toPathPart repo, "pulls", toPathPart prid, "comments"] []
pullRequestReviewComment :: Name GithubOwner -> Name Repo -> Id Comment -> IO (Either Error Comment)
pullRequestReviewComment user repo cid =
executeRequest' $ pullRequestReviewCommentR user repo cid
pullRequestReviewCommentR :: Name GithubOwner -> Name Repo -> Id Comment -> GithubRequest k Comment
pullRequestReviewCommentR user repo cid =
GithubGet ["repos", toPathPart user, toPathPart repo, "pulls", "comments", toPathPart cid] []