module GitHub.Endpoints.PullRequests.Reviews
( pullRequestReviewsR
, pullRequestReviewR
, pullRequestReviewCommentsR
, module GitHub.Data
) where
import GitHub.Data
import GitHub.Internal.Prelude
import Prelude ()
pullRequestReviewsR
:: Name Owner
-> Name Repo
-> IssueNumber
-> FetchCount
-> Request k (Vector Review)
pullRequestReviewsR :: Name Owner
-> Name Repo
-> IssueNumber
-> FetchCount
-> Request k (Vector Review)
pullRequestReviewsR Name Owner
owner Name Repo
repo IssueNumber
prid =
Paths -> QueryString -> FetchCount -> Request k (Vector Review)
forall a (mt :: RW).
FromJSON a =>
Paths -> QueryString -> FetchCount -> Request mt (Vector a)
pagedQuery
[ Text
"repos"
, Name Owner -> Text
forall a. IsPathPart a => a -> Text
toPathPart Name Owner
owner
, Name Repo -> Text
forall a. IsPathPart a => a -> Text
toPathPart Name Repo
repo
, Text
"pulls"
, IssueNumber -> Text
forall a. IsPathPart a => a -> Text
toPathPart IssueNumber
prid
, Text
"reviews"
]
[]
pullRequestReviewR
:: Name Owner
-> Name Repo
-> IssueNumber
-> Id Review
-> Request k Review
pullRequestReviewR :: Name Owner
-> Name Repo -> IssueNumber -> Id Review -> Request k Review
pullRequestReviewR Name Owner
owner Name Repo
repo IssueNumber
prid Id Review
rid =
Paths -> QueryString -> Request k Review
forall (mt :: RW) a. Paths -> QueryString -> Request mt a
query
[ Text
"repos"
, Name Owner -> Text
forall a. IsPathPart a => a -> Text
toPathPart Name Owner
owner
, Name Repo -> Text
forall a. IsPathPart a => a -> Text
toPathPart Name Repo
repo
, Text
"pulls"
, IssueNumber -> Text
forall a. IsPathPart a => a -> Text
toPathPart IssueNumber
prid
, Text
"reviews"
, Id Review -> Text
forall a. IsPathPart a => a -> Text
toPathPart Id Review
rid
]
[]
pullRequestReviewCommentsR
:: Name Owner
-> Name Repo
-> IssueNumber
-> Id Review
-> Request k [ReviewComment]
Name Owner
owner Name Repo
repo IssueNumber
prid Id Review
rid =
Paths -> QueryString -> Request k [ReviewComment]
forall (mt :: RW) a. Paths -> QueryString -> Request mt a
query
[ Text
"repos"
, Name Owner -> Text
forall a. IsPathPart a => a -> Text
toPathPart Name Owner
owner
, Name Repo -> Text
forall a. IsPathPart a => a -> Text
toPathPart Name Repo
repo
, Text
"pulls"
, IssueNumber -> Text
forall a. IsPathPart a => a -> Text
toPathPart IssueNumber
prid
, Text
"reviews"
, Id Review -> Text
forall a. IsPathPart a => a -> Text
toPathPart Id Review
rid
, Text
"comments"
]
[]