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